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: <x-api-key>' \
  --data '{
  "text": "A dog is running in the park",
  "styleId": 123
}'
{
"initialPrompt": "<string>",
"enhancedPrompt": "<string>",
"ttpLogId": 123
}

Headers

X-Api-Key
string
required

API Key(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 아이디)

I