Skip to main content
POST
Caption
Caption Endpoint

Request

Make a POST request to below endpoint and pass the required parameters as a request body to the endpoint.
curl

Body

json

Body

application/json
key
string
required

Your API Key used for request authorization

init_image
string
required

Link the image you want your generate prompt from. Available formats: png, jpeg, jpg

length
enum<string>
default:normal

the length of the caption

Available options:
short,
normal,
long
base64
boolean
default:false

Set to true for base64 response

webhook
string<uri>

URL to receive POST API call when complete

track_id
integer

ID for webhook identification

Response

200 - application/json

Caption response

status
enum<string>
Available options:
success
generationTime
number

Time taken to generate the image in seconds

id
integer

Unique identifier for the generation request

output
string<uri>[]

Array of generated image URLs

Array of proxy image URLs

meta
object

Metadata about the generation process