Jobs, tools and usage
Job status and results, the list of tools and models, and what your key has used.
The job
Every tool answers with a job, and GET /jobs/{id} returns it again:
{
"job": {
"id": "0b6f1c1e-…",
"tool": "images/remove-background",
"status": "completed",
"created_at": "2026-10-25T08:00:00.000Z",
"completed_at": "2026-10-25T08:00:09.000Z",
"credits": 20,
"error": null,
"outputs": [
{ "id": "7c2e…", "type": "image", "mime_type": "image/png", "size_bytes": 812345, "download_url": "https://…", "download_url_expires_in_seconds": 3600 }
],
"text": null
}
}
| Field | |
|---|---|
status | queued → processing → completed or failed |
credits | What the job costs (held while it runs, charged when done). A failed job costs nothing: 0 |
error | For a failed job: code and a message you can show (see Errors) |
outputs | The pictures or video, once completed. download_url works for an hour - get the job again for a fresh one. It redirects to the file: follow redirects (curl -L) |
text | Image to Text only: kind (document, photo or mixed), text, description, truncated |
GET /jobs/{id}
The job, with fresh download links. Check it every few seconds while it is queued or processing (pictures usually finish in under a minute, videos in 1-5 minutes). Only jobs made with your key can be read.
GET /jobs
Your key's jobs, newest first, without download links. ?limit= (1-100, default 50) and ?offset=.
GET /tools
Every tool, its models and their prices, and the options its fields take (styles, modes, durations, resolutions...):
{
"tools": [
{
"tool": "images/edit",
"name": "Image Editor",
"endpoint": "POST /images/edit",
"scope": "image:edit",
"allowed": true,
"takes_model": true,
"models": [{ "model": "nano-banana", "name": "Nano Banana", "default": false, "credits_per_image": 995, "max_reference_images": 2 }]
}
]
}
Prices and models change - read them from here rather than storing them.
GET /usage
What your key has made: by default this month so far (UTC), or ?from=YYYY-MM-DD&to=YYYY-MM-DD.
{
"key": { "name": "Acme production", "scopes": ["image:edit"] },
"time_zone": "UTC",
"from": "2026-10-01",
"to": "2026-10-25",
"total": { "jobs": 120, "completed": 117, "failed": 3, "in_progress": 0, "credits": 118000 },
"by_tool": [{ "tool": "images/edit", "jobs": 120, "completed": 117, "failed": 3, "in_progress": 0, "credits": 118000 }],
"daily": [{ "date": "2026-10-25", "jobs": 8, "completed": 8, "failed": 0, "in_progress": 0, "credits": 8000 }],
"month": { "credits_used": 118000, "credit_limit": 500000, "credits_remaining": 382000 },
"account": { "credits_available": 640000 }
}
month.credit_limit is the key's own monthly limit (null = none); account.credits_available is the account's balance. A request refused for credits tells you which of the two ran out.