# quotax.sh > LLM gateway with Anthropic Messages, OpenAI Chat Completions and OpenAI > Responses APIs on one key. Pay-as-you-go wallet or free keys for free models. quotax.sh routes every model to upstream providers with automatic failover. Any catalog model works on all three APIs. Billing is a USD wallet that a human tops up by Vietnamese bank transfer (VietQR); free keys can call the models that are free right now. Agents: read https://quotax.sh/skill.md first. It covers getting a key with one human click, picking a model, configuring clients and fixing errors. Key facts - Anthropic SDKs / Claude Code base URL: https://quotax.sh (no /v1) - OpenAI SDKs / Codex / most tools base URL: https://quotax.sh/v1 - Auth: Authorization: Bearer qtx-… or x-api-key: qtx-… (keys start with qtx-) - Endpoints: POST /v1/messages, POST /v1/messages/count_tokens, POST /v1/chat/completions, POST /v1/responses, GET /v1/models - Live models and prices: GET https://quotax.sh/api/public/catalog (no key). Never hardcode ids. - Models a key can call right now: GET https://quotax.sh/v1/models with that key (free keys see only free models) - Get a key without a browser session: device flow, see https://quotax.sh/skill.md. Agents run two steps: curl -fsSL https://quotax.sh/init | sh -s -- start (show the human the URL and code), then curl -fsSL https://quotax.sh/init | sh -s -- wait. A human in a terminal can run curl -fsSL https://quotax.sh/init | sh - Check a key, balance and callable models: GET https://quotax.sh/api/agent/me with the key - MCP: https://quotax.sh/mcp (Streamable HTTP, Bearer key) - Plans: Free `free` (free models only, 10 rpm, 2 concurrent, 500 requests/day, 2M tokens/day, 1 key max); Pay as you go `payg` (per-token from the wallet, 60 rpm, 8 concurrent, 10 keys max); Standard `standard` (30000 VND/day subscription, 20 rpm, 4 concurrent); Pro `pro` (200000 VND/day subscription, 120 rpm, 16 concurrent) - Errors follow the API you called (Anthropic or OpenAI shape); branch on the HTTP status. 402 (Anthropic billing_error, OpenAI code insufficient_quota) = wallet too low: a human tops up at https://quotax.sh/app/billing - Daily limits reset at 00:00 Asia/Ho_Chi_Minh (17:00 UTC) Common mistakes - Using https://quotax.sh/v1 as the Anthropic SDK or Claude Code base URL: the SDK adds /v1/messages itself, so you get 404 "No such endpoint: POST /v1/v1/messages". Use https://quotax.sh. - Using https://quotax.sh without /v1 for OpenAI SDKs, Codex, OpenCode or Cursor: requests go to /chat/completions and fail (404 or 405). Use https://quotax.sh/v1. - Hardcoding model ids from examples, memory or other gateways. Ids, prices and promotions change; read the catalog every session. - Calling GET /v1/models without a key: 401. Use /api/public/catalog for the keyless list. - Treating a 200 from a keyless endpoint as proof the key works. Smoke-test with one tiny authenticated request. - Calling a model that is not FREE with a free key: 403 permission_error "model … is not free". - Codex without wire_api = "responses": Codex only speaks the Responses API. - Asking the human to paste the key into chat, printing it, or committing it. Use the device flow; it saves the key to ~/.config/quotax/env or $XDG_CONFIG_HOME/quotax/env (mode 0600). - Sending the key to any host other than quotax.sh. ## Models (live, 2026-12-01) No models are enabled right now; check GET https://quotax.sh/api/public/catalog later. ## Start here - [skill.md](https://quotax.sh/skill.md): agent skill: get a key, pick a model, set up clients, errors, security rules - [Agent setup](https://quotax.sh/agents.md): per-client lanes (Claude Code, Codex, OpenCode, Cursor, MCP clients), init script, troubleshooting - [Docs](https://quotax.sh/docs.md): quickstart: base URLs, endpoints, SDK and curl examples, errors and limits ## API - [OpenAPI 3.1](https://quotax.sh/openapi.json): every route above, with auth schemes and error envelopes - [Public catalog](https://quotax.sh/api/public/catalog): JSON models, prices (USD per 1M tokens), promotions, plans and limits; no key - [Models for a key](https://quotax.sh/v1/models): ids the key may call now; OpenAI shape, or Anthropic shape with an anthropic-version or x-api-key header - [API catalog](https://quotax.sh/.well-known/api-catalog): RFC 9727 linkset ## Agent integrations - [Init script](https://quotax.sh/init): POSIX sh device-flow installer: curl -fsSL https://quotax.sh/init | sh (agents: sh -s -- start, then sh -s -- wait) - [MCP server](https://quotax.sh/mcp): claude mcp add --transport http quotax https://quotax.sh/mcp --header "Authorization: Bearer $QUOTAX_API_KEY" - [Agent Skills index](https://quotax.sh/.well-known/agent-skills/index.json): npx skills add https://quotax.sh ## Optional - [llms-full.txt](https://quotax.sh/llms-full.txt): this file plus skill.md, docs.md and agents.md in one file - [Models page](https://quotax.sh/models/): human view of the catalog - [Pricing](https://quotax.sh/pricing/): plans and top-up rules - [Terms](https://quotax.sh/terms/): terms of service - [Health](https://quotax.sh/healthz): returns ok when the gateway is up