Live status

Base URL https://arteza.ai/api/v1

OpenAPI 3.1 specification, for SDK generators and agents: /api/v1/openapi.json

Official SDKs for TypeScript and Python, a command line and agent skills: SDKs and CLI

GET /generations/{id}/stream sends the generation as Server-Sent Events every time its status changes and closes once it completes, fails or is canceled. Use it in an app instead of polling: a phone cannot receive a webhook, and polling spends your read rate limit. The stream ends after five minutes; open it again, or read the generation, for a longer job.

curl -N https://arteza.ai/api/v1/generations/GENERATION_ID/stream \
  -H "Authorization: Bearer $ARTEZA_API_KEY"

event: generation
data: {"id":"...","status":"in_progress",...}

event: generation
data: {"id":"...","status":"completed","output":{"files":[...]},...}

event: done
data: {"id":"...","status":"completed",...}

POST /generations/{id}/cancel takes a job back, with a full refund, until the provider starts running it: before dispatch, and while it waits in the provider's queue. Once it is running it is being paid for, and cancel answers 409 not_cancellable.

To follow many jobs at once, open GET /events instead: one Server-Sent Events connection that sends a generation whenever any generation on the account is created or changes status. Every event has an id; pass it back as since, or let EventSource send it as Last-Event-ID when it reconnects, and the stream replays what you missed, up to 24 hours back. The server closes the stream after about five minutes, and the SDKs reconnect on their own. A client token only sees its own end user's generations.

curl -N "https://arteza.ai/api/v1/events?since=2026-12-01T09:00:00Z" \
  -H "Authorization: Bearer $ARTEZA_API_KEY"

event: ready
data: {"object":"events","since":"2026-12-01T09:00:00.000Z"}

id: 2026-12-01T09:00:04.212Z
event: generation
data: {"id":"4f1c...","status":"in_progress",...}

id: 2026-12-01T09:00:07.512Z
event: generation
data: {"id":"4f1c...","status":"completed","output":{"files":[...]},...}