Generations

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

A generation runs one model on one input. These are the endpoints, relative to the base URL:

One model id covers every mode the model has, and the input you send picks the mode. A video model makes a text-to-video clip from a prompt, animates image_url as the first frame, goes from image_url to end_image_url when both are sent, and makes a reference video from two or more reference_images. Some models also take mode "extend" with video_url, or mode "structure" with a control image. GET /models/{id} lists each mode under modes, with the fields that select it and a minimal input, and the price follows the mode: POST /estimate with the same input quotes it.

Send metadata with a generation to tag it with your own ids, such as your end user or an order: up to 16 keys with string values. It comes back on the generation, in its webhooks and in GET /generations, which filters by it, for example GET /generations?metadata[user_id]=u_123.

POST /generationsStart a generation. Body: model, input, and optionally webhook_url.
GET /generations/{id}Get one generation with its status, output and billing.
GET /generationsList your generations, newest first, with cursor paging.
POST /generations/{id}/cancelCancel a generation that has not started yet. You are refunded.
DELETE /generations/{id}Delete a finished generation. It goes to your library trash, restorable for 30 days.
GET /modelsList every model with its input schema and prices.
GET /models/{id}Get one model.
POST /estimatePrice a generation without running it.
POST /uploadsGet a URL to upload a file to use as an input.
GET /generations/{id}/streamFollow one generation live (Server-Sent Events).
GET /eventsFollow every generation on the account live, on one connection.
POST /tokensMint a short-lived client token for an app.
GET /usageSpend and counts, by day, model, key or end user.
GET /balanceYour plan credits and API balance, with USD values.

status is one of queued, in_progress, completed, failed or canceled. A failed or canceled generation is never charged.