Retrieve image task result
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.
taskId*stringThe task_id of the task. An ID of any other form returns 404.
^[A-Za-z0-9]{16}$16 <= length <= 16The task is still running, or the images it produced
application/json- response
status*"pending""pending"curl -X GET 'https://api.ohmygpt.com/v1/images/generations/omg-task-pull?taskId=stringstringstri'{ "status": "pending"}Still stuck? Live chat · [email protected] · Telegram group
Create image edit POST
Edit images as a prompt describes. Send the images as `multipart/form-data` files in `image`, or in `image[]`, which means the same. You can also send JSON with `images` holding image URLs or file IDs. The request schemas are OpenAI's, and so are the `model` default and the `required` list in them. OhMyGPT uses `openai/gpt-image-1-mini` when `model` is omitted. A model that can't take `mask` or file IDs returns 400 for them. Billing follows each model's pricing, as for image generation.
Retrieve model GET
Returns detailed information about a specific model. Model IDs use the `{creator}/{model}` form, so clients must send both path segments, for example `/v1/models/openai/gpt-4o`.