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
Headers
formacloud-api-key
string
Yes
API key for authentication
Request Body
user_input
string
Yes
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
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