Skip to main content
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

X-Api-Key
string
header
required

Headers

X-Type
string

API Type(API 유형)

X-Platform
enum<string>
default:web

플랫폼 구분 (web, app, figma)

Available options:
web,
app,
figma,
api

Body

application/json

(Reference Image + Prompt) OR (Style + Prompt) OR (Collection ID + Prompt)(레퍼런스 이미지 + 프롬프트) OR (스타일 + 프롬프트) OR (컬렉션 아이디 + 프롬프트)

prompt
string
required

프롬프트

Maximum string length: 1200
Example:

"유니콘이 인간 그룹과 뛰어놀고 있다"

ratio
enum<string>
required

비율

Available options:
square,
vertical,
horizontal,
1:1,
3:4,
4:3,
9:16,
16:9
image
string
required

이미지 경로

Example:

"1/reference-1423131.png"

randomPrompt
string

랜덤 프롬프트

Example:

"a unicorn is attacking group of humans"

initialPrompt
string

초기 유저 프롬프트(텍스트2프롬프트 이전)

Example:

"a unicorn is attacking group of humans"

enhancedPrompt
string

텍스트2프롬프트 이후

Example:

"a unicorn is attacking group of humans"

captionPrompt
string

img2prompt

Example:

"a unicorn is attacking group of humans"

captionTPrompt
string

img2prompt 번역

Example:

"유니콘이 인간 그룹을 공격하고 있다."

groupId
string

그룹아이디

sample
enum<number>
default:4

생성 개수

Available options:
1,
2,
4
async
boolean
default:false

비동기 생성 여부

Example:

false

Response

Array of Generated Images(생성된 이미지들의 배열)

images
object[]
required

Image Array(이미지 배열)

defaultCredit
number
required

Charge Credit(충전 크레딧)

dailyCredit
number
required

Daily Credit(일일 크레딧)

monthlyCredit
number
required

Monthly Credit(월간 크레딧)