⚡ NEW: Flux Klein 9B — Faster inference, stunning quality · Try Now
curl --request POST \
--url https://modelslab.com/api/v6/image_editing/caption \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"init_image": "<string>",
"length": "normal",
"base64": false,
"webhook": "<string>",
"track_id": 123
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {}
}This endpoint allows you to caption images.
curl --request POST \
--url https://modelslab.com/api/v6/image_editing/caption \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"init_image": "<string>",
"length": "normal",
"base64": false,
"webhook": "<string>",
"track_id": 123
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {}
}Documentation Index
Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
Use this file to discover all available pages before exploring further.
POST request to below endpoint and pass the required parameters as a request body to the endpoint.
--request POST 'https://modelslab.com/api/v6/image_editing/caption' \
{
"key":"your_api_key",
"init_image":"https://i.pinimg.com/736x/6e/ab/48/6eab481a1ee8fcfaec32a316d2768a61.jpg",
"length":"long",
"base64": false,
"webhook": null,
"track_id": null
}
Your API Key used for request authorization
Link the image you want your generate prompt from. Available formats: png, jpeg, jpg
the length of the caption
short, normal, long Set to true for base64 response
URL to receive POST API call when complete
ID for webhook identification
Caption response
success Time taken to generate the image in seconds
Unique identifier for the generation request
Array of generated image URLs
Array of proxy image URLs
Metadata about the generation process
Was this page helpful?