Usage

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 /usage returns what your account spent through the API between two dates (the last 30 days by default), grouped by day, model, key or end user (metadata.user_id). Generations and studio jobs are both counted, and a failed or canceled generation counts as zero because it was refunded.

curl "https://arteza.ai/api/v1/usage?from=2026-11-01&group_by=user" \
  -H "Authorization: Bearer $ARTEZA_API_KEY"

{
  "object": "usage",
  "group_by": "user",
  "data": [
    { "user": "u_123", "requests": 42, "succeeded": 41, "failed": 1, "credits": 96.4, "usd": 0 }
  ],
  "totals": { "requests": 42, "succeeded": 41, "failed": 1, "credits": 96.4, "usd": 0 }
}