Skip to main content

Image to Prompt

Convert images into descriptive text prompts using various AI models through the 1min.AI API. This endpoint analyzes your images and generates detailed text descriptions that can be used for various purposes.

Image Upload Requirement

Before using this API, you must first upload your image using the Asset API. The imageUrl parameter should contain the file path returned from the Asset API upload response.

📖 See Asset API documentation for details on how to upload images.

Available Models​

Loading available models...

Request Parameters​

All models share the same request structure:

Field NameTypeSupported ValueDescriptionRequired
typetextIMAGE_TO_PROMPTFeature name✔️
modeltextSee available modelsModel identifier✔️
promptObject.imageUrlstringFile pathPath to uploaded image file (from Asset API)✔️
promptObject.modestringdescribeProcessing mode (for some models)❌*
promptObject.nnumber1-10Number of descriptions to generate❌*

*Required for specific models (e.g., Magic Art requires mode and n)

Endpoint​

Request Headers​

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Code Example​

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_TO_PROMPT",
"model": "magic-art",
"promptObject": {
"imageUrl": "development/images/sample_image.jpeg",
"mode": "describe",
"n": 1
}
}'

Interactive Playground​

Try the API directly in your browser:

Loading interactive playground...

Response Format​

{}