cURL
curl --request GET \ --url https://api.freepik.com/v1/ai/image-to-prompt/{task-id} \ --header 'x-freepik-api-key: <api-key>'
200
Example
{ "data": { "generated": [ "https://openapi-generator.tech", "https://openapi-generator.tech" ], "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "status": "CREATED" }, "examples": "{}" }
Get the status of one image-to-prompt task
Your Freepik API key. Required for authentication. Learn how to obtain an API key
ID of the task
OK - The task exists and the status is returned
Show child attributes
{ "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "status": "CREATED", "generated": [ "https://openapi-generator.tech", "https://openapi-generator.tech" ]}
Was this page helpful?