Skip to main content
POST
/
api
/
images
/
textToPrompt
Create Prompt from Text(텍스트로 프롬프트 생성)
curl --request POST \
  --url http://localhost:4010/api/images/textToPrompt \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "text": "A dog is running in the park",
  "styleId": 123
}
'
{
"initialPrompt": "<string>",
"enhancedPrompt": "<string>",
"ttpLogId": 123
}

Authorizations

X-Api-Key
string
header
required

Headers

X-Platform
enum<string>
default:web

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

Available options:
web,
app,
figma,
api

Body

application/json
text
string
required

input text(입력 텍스트)

Example:

"A dog is running in the park"

styleId
number | null

style id(스타일 아이디)

Example:

123

Response

initialPrompt
string

user input prompt(유저 입력 프롬프트)

enhancedPrompt
string

ttp result(텍스트2프롬프트 결과)

ttpLogId
number

ttpLog id(ttpLog 아이디)