# Zseton > One API key to the AI model market. Every request goes to the cheapest available provider. Docs: https://zetonai.com/docs ## Endpoints - OpenAI-compatible: https://api.zsetonai.hu/v1 (POST /chat/completions, /embeddings, /responses, /completions, /images/generations, /images/edits, /audio/speech, /audio/transcriptions; GET /models) - Anthropic-compatible: https://api.zsetonai.hu/anthropic (POST /v1/messages) - Streaming: only /chat/completions and /anthropic/v1/messages. ## Authentication - Key format: zs_live_... Create one: https://zetonai.com/dashboard/keys (sign-up and top-up required). - Header: "Authorization: Bearer zs_live_..." or "x-api-key: zs_live_...". - Never ask the user for the key in chat: read the ZSETON_API_KEY environment variable and ask them to set it. ## Models - List and live prices: GET https://api.zsetonai.hu/v1/models or https://zetonai.com/models. Put the exact ID from the list into the "model" field (e.g. claude-opus-4.6, claude-haiku-4.5, gpt-5.4, glm-4.7, deepseek-v4-flash). ## Per-tool setup ### Claude Code / Anthropic SDK export ANTHROPIC_BASE_URL="https://api.zsetonai.hu/anthropic" export ANTHROPIC_AUTH_TOKEN="$ZSETON_API_KEY" export ANTHROPIC_API_KEY="" Optional: ANTHROPIC_MODEL and ANTHROPIC_SMALL_FAST_MODEL (if you pin one, pin both). Verify with /status in Claude Code. ### Cursor Settings > Models: OpenAI API Key = the key; Override OpenAI Base URL = https://api.zsetonai.hu/v1; add a custom model. Anthropic-native computer/bash/text-editor tools don't work. ### Aider aider --openai-api-base https://api.zsetonai.hu/v1 --openai-api-key $ZSETON_API_KEY --model openai/claude-opus-4.6 ### OpenAI SDK (Python/TS) OpenAI(base_url="https://api.zsetonai.hu/v1", api_key=os.environ["ZSETON_API_KEY"]) ### Continue / OpenCode / others provider: openai, apiBase/baseUrl: https://api.zsetonai.hu/v1, apiKey: the key, model: an ID from the list. ## Errors - 401 missing_api_key / invalid_api_key; 402 insufficient_balance (400 on the Anthropic surface), key_monthly_limit_reached; 429 rate_limited (Retry-After); 503 no_sellers_for_model (pick another model); 404 minimum_discount_not_met. - Branch on the "code" field. Every response carries an x-request-id header. - Full list: https://zetonai.com/docs/hibak ## Cost - Every non-streamed response carries the exact cost in USD in usage.cost. - X-Min-Discount: header: the request only goes to capacity at least that much cheaper. ## Privacy - We don't store request/response content, only cost metadata. The serving model provider sees the content. https://zetonai.com/docs/adatvedelem ## See also - https://zetonai.com/docs/gyors-kezdes - https://zetonai.com/docs/korlatok