cURL
curl --request GET \ --url https://api.freepik.com/v1/ai/text-to-image/flux-2-pro \ --header 'x-freepik-api-key: <api-key>'
200
success - return all tasks
{ "data": [ { "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "status": "IN_PROGRESS" }, { "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee92", "status": "COMPLETED" }, { "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee93", "status": "COMPLETED" }, { "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee93", "status": "CREATED" } ]}
Retrieve the status of all Flux 2 Pro text-to-image generation tasks for the authenticated user.
Your Freepik API key. Required for authentication. Learn how to obtain an API key
OK - Successfully retrieved all Flux 2 Pro tasks
Show child attributes
Was this page helpful?