curl --request POST \
--url http://localhost:4010/api/images/create \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"prompt": "이미지 캡션 변형",
"image": "1/reference-1423131.png",
"ratio": "1:1"
}
'{
"images": [
{
"imageId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"generationStatus": "COMPLETED",
"generationError": "<string>",
"resolution": "512x512",
"ownerId": 123,
"etc": "<string>",
"bookmarked": false,
"base64": "<string>",
"mimeType": "image/webp",
"Bought": [],
"Bookmarks": [],
"Upscaled": [
{
"imageId": 123,
"type": "upscale",
"scaleSize": [
"1x",
"2x",
"4x",
"8x"
],
"Image": {
"DownloadLog": [
{
"userId": 123,
"imageId": 123
}
],
"CollectionInfo": {
"enabled": true
}
}
}
],
"GenerationInfo": {
"originalPrompt": "<string>",
"super": "<string>",
"main": "<string>",
"variationId": 123,
"groupId": "<string>",
"blurReason": "<string>"
}
}
],
"defaultCredit": 123,
"dailyCredit": 123,
"monthlyCredit": 123
}images
Create a new image(새로운 이미지 생성)
POST
/
api
/
images
/
create
curl --request POST \
--url http://localhost:4010/api/images/create \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"prompt": "이미지 캡션 변형",
"image": "1/reference-1423131.png",
"ratio": "1:1"
}
'{
"images": [
{
"imageId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"generationStatus": "COMPLETED",
"generationError": "<string>",
"resolution": "512x512",
"ownerId": 123,
"etc": "<string>",
"bookmarked": false,
"base64": "<string>",
"mimeType": "image/webp",
"Bought": [],
"Bookmarks": [],
"Upscaled": [
{
"imageId": 123,
"type": "upscale",
"scaleSize": [
"1x",
"2x",
"4x",
"8x"
],
"Image": {
"DownloadLog": [
{
"userId": 123,
"imageId": 123
}
],
"CollectionInfo": {
"enabled": true
}
}
}
],
"GenerationInfo": {
"originalPrompt": "<string>",
"super": "<string>",
"main": "<string>",
"variationId": 123,
"groupId": "<string>",
"blurReason": "<string>"
}
}
],
"defaultCredit": 123,
"dailyCredit": 123,
"monthlyCredit": 123
}Authorizations
Headers
API Type(API 유형)
플랫폼 구분 (web, app, figma)
Available options:
web, app, figma, api Body
application/json
(Reference Image + Prompt) OR (Style + Prompt) OR (Collection ID + Prompt)(레퍼런스 이미지 + 프롬프트) OR (스타일 + 프롬프트) OR (컬렉션 아이디 + 프롬프트)
- Option 1
- Option 2
- Option 3
프롬프트
Maximum string length:
1200Example:
"유니콘이 인간 그룹과 뛰어놀고 있다"
비율
Available options:
square, vertical, horizontal, 1:1, 3:4, 4:3, 9:16, 16:9 이미지 경로
Example:
"1/reference-1423131.png"
랜덤 프롬프트
Example:
"a unicorn is attacking group of humans"
초기 유저 프롬프트(텍스트2프롬프트 이전)
Example:
"a unicorn is attacking group of humans"
텍스트2프롬프트 이후
Example:
"a unicorn is attacking group of humans"
img2prompt
Example:
"a unicorn is attacking group of humans"
img2prompt 번역
Example:
"유니콘이 인간 그룹을 공격하고 있다."
그룹아이디
생성 개수
Available options:
1, 2, 4 비동기 생성 여부
Example:
false