Generations
Get the result
Wait on a job, read its outputs and download the files.
GET /v1/generations/{id}?wait=60 returns the job as soon as it finishes, or after 60 seconds if it is still queued or running; call it again to keep waiting. Without wait it answers at once with the current state. A job nobody is waiting on still finishes or is refunded on its own.
{
"id": "5b0e7c1e-6f0e-4a55-9d9b-3f2a8f1c2d10",
"status": "succeeded",
"charged_usd": 0.141225,
"outputs": [
{
"url": "https://api.opengrid.one/v1/generations/5b0e7c1e-.../content/0?exp=1795546991&sig=...",
"mime": "image/png"
}
],
"error": null,
"finished_at": "2026-11-24T18:03:34.009Z"
}Statuses
| status | Meaning |
|---|---|
queued | Accepted, not yet started on a provider. |
running | A provider is working on it. |
succeeded | Finished. outputs has the result files and charged_usd is final. |
failed | Finished without a result. error says why and charged_usd is 0. |
Result files
- Each
outputs[].urlis an OpenGrid link signed for one hour. Reading the job again returns fresh links. Without the signature, the same path works with your API key. - Download results you want to keep. Providers delete their files after a retention period; when one reports the date, the job carries it as
available_until.
Why a generation failed
| error.code | Meaning |
|---|---|
content_blocked | The model's provider refused the prompt or files under its content policy. Not retried elsewhere. |
invalid_input | The model could not use the input as sent (size, format, a missing file). Not retried elsewhere. |
provider_failed | Every provider in the job's plan failed or timed out. |
unavailable | No provider could take the job when it started. |
internal_error | Something on our side stopped it. |
List generations
GET /v1/generations lists your recent jobs, newest first. limit goes up to 100; page with before.