Image to Prompt
This API extracts information from a given image and user input to generate a detailed prompt description for creating a poster. Note: This API typically requires approximately 15 seconds to process and return a response.
API Endpoint
POST https://api.genaifactory.ai/v1/image_to_promptHeaders
formacloud-api-key
string
Yes
API key for authentication
Request Body
user_input
string
No
The user’s input text describing requirements (max 200 characters)
referring_image
file
No
The image file to be used for inspiration
referring_image_url
string
No
URL of the image to be used for inspiration
Note: referring_image and referring_image_url cannot be provided together.
Example Request
curl --location 'https://api.genaifactory.ai/v1/image_to_prompt' \
--header 'formacloud-api-key: abc123' \
--form 'user_input="Help me extract the contents of the entire image"'\
--form 'referring_image_url="https://example.com/inspiration_image.jpg"'Response
Returns a JSON object containing the generated detailed prompt description.
image_to_prompt
string
Detailed prompt text generated by the API
Example Response
Last updated
Was this helpful?
