OhMyGPT
Images

Retrieve image task result

GET
/v1/images/generations/omg-task-pull

Returns the result of an image generation or edit sent with omg.async_method set to pulling. Request the task's pull_url every few seconds. While the task runs, the response is {"status": "pending"}. When it finishes, the response is the status code and body that the same request without omg would have returned, errors included. Results are kept for 12 hours. The request needs no API key. Each IP address can make 60 requests a minute.

Query Parameters

taskId*string

The task_id of the task. An ID of any other form returns 404.

Match^[A-Za-z0-9]{16}$
Length16 <= length <= 16

Response Body

The task is still running, or the images it produced

application/json
  1. response
status*"pending"
Value in"pending"
Example Request
curl -X GET 'https://api.ohmygpt.com/v1/images/generations/omg-task-pull?taskId=stringstringstri'
Example Response
{  "status": "pending"}

Was this page helpful?

Still stuck? Live chat · [email protected] · Telegram group