🎉 New Year Sale: Get 20% OFF on all plans — Use code NEWYEAR2026.

Upgrade now
Image to Text thumbnail

ModelsLab/Image To Text

Image-Caption
This endpoint enables you to generate descriptive captions for images. By submitting an image to the endpoint, it analyzes the visual content and returns a concise, human-like caption that summarizes what’s depicted in the image.
API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v6/image_editing/caption

API Authentication

Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.

Integration Examples

Production-ready code samples for API integration

{
"init_image": "https://assets.modelslab.com/generations/ec9074fa-6046-4da5-a911-bbb62c7e6c80.jpg",
"length": "short",
"key": "YOUR_API_KEY"
}

SDKs

Official SDKs

Production-ready SDKs and client libraries for all major programming languages

API Parameters

Technical specifications for API request parameters.

Field NameParameterTechnical Description
Imageinit_imageInitial Image
LengthlengthSpecifies the desired length of the generated image caption.