Skip to main content
The machine-readable spec is at https://api.antarah.dev/openapi.json (OpenAPI 3.1, no authentication). See Authentication for the keys and their permissions.

Conventions

Pagination

Lists return {"object": "list", "data": [...], "has_more", "first_id", "last_id"}, newest first (projects: oldest first; models: catalog order). Pass limit (1–100, default 20) and after=<last_id> for the next page. Usage and cost endpoints return time buckets in ascending order: {"object": "page", "data": [...], "has_more", "next_page"}. Pass start_time (required), end_time, limit, and page=<next_page>.

Idempotency

Creates require an Idempotency-Key header; every other write accepts one. See Idempotency.