Estimating cost

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

POST /estimate takes the same model and input as a generation and returns the price in credits and in USD, the funding your key uses, and whether your balance covers it. It never runs or charges anything.

curl https://arteza.ai/api/v1/estimate \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "seedance-2", "input": {"prompt": "a fox in snow", "duration": 5}}'

{
  "object": "estimate",
  "model": "seedance-2",
  "funding": "credits",
  "affordable": true,
  "price": {
    "credits": { "amount": 22.8, "usd_equivalent": 2.28 },
    "usd": { "amount": 1.512, "basis": "unit", "unit": "1000 tokens", "quantity": 108 }
  }
}

The price follows the input: a longer clip, a higher resolution or more images costs more, so estimate with the exact input you are about to send. affordable tells you in advance whether the generation would be refused for balance, and the generation is priced the same way when you create it.