v1/img2prompt
POST/v1/img2prompt
img2prompt
Request
- application/json
Body
required
resourceId stringrequired
The resource ID of the image to be tagged.
tagger string
If natural language generation is needed, provide tagger=llm.
Responses
- 200
- 404
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
prompts string[]
The generated prompts for the image.
{
"prompts": [
"string"
]
}
Not Found: img not found
- application/json
- Schema
Schema
- any
Default
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Loading...