ModelsLab/Image To Text
Image-CaptionThis 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 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 Name | Parameter | Technical Description |
|---|---|---|
| Image | init_image | Initial Image |
| Length | length | Specifies the desired length of the generated image caption. |