# ProxyStacks Relay — Full Machine-Readable Reference (llms-full.txt) > Independent multi-model AI API gateway providing native OpenAI Chat Completions (`/v1/chat/completions`), OpenAI Responses (`/v1/responses`), and Anthropic Messages (`/anthropic/v1/messages` & `/v1/messages`) endpoints. > Pay-as-you-go from a single prepaid USD balance (from US$10, never expires, no recurring subscription). Automatic Beijing Time (UTC+8) off-peak discounts on eligible models. ## Machine-Readable Endpoints - Concise index: https://proxystacks.com/llms.txt - Full reference: https://proxystacks.com/llms-full.txt - OpenAPI 3.1 specification: https://proxystacks.com/openapi.json - Live JSON pricing catalog: https://proxystacks.com/public/model-rates (alias: https://proxystacks.com/backend/public/model-rates) - Live gateway status: https://proxystacks.com/en/status ## Gateway Protocol Endpoints - OpenAI Chat Completions: `POST https://proxystacks.com/v1/chat/completions` (`Authorization: Bearer $RELAY_API_KEY`) - OpenAI Responses API (Codex CLI): `POST https://proxystacks.com/v1/responses` (`Authorization: Bearer $RELAY_API_KEY`) - Anthropic Messages API (Claude Code): `POST https://proxystacks.com/anthropic/v1/messages` or `POST https://proxystacks.com/v1/messages` (`x-api-key: $RELAY_API_KEY` or `Authorization: Bearer $RELAY_API_KEY`) - Model list: `GET https://proxystacks.com/v1/models` ## Active Model Pricing Catalog (USD per 1M tokens) | Model ID | Context | Peak Input | Peak Output | Cache Read | Off-Peak Input | Off-Peak Output | Official USD Input / Output | Saving vs Official | URL | | :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | :--- | | `deepseek-v4.1-flash` | 1000K | $0.18 | $0.74 | $0.0039 | $0.0895 | $0.37 | $0.30 / $1.20 | -40% | https://proxystacks.com/en/models/deepseek-v4.1-flash | | `glm-5.3` | 1000K | $0.78 | $2.86 | $0.17 | — | — | $1.20 / $4.40 | -35% | https://proxystacks.com/en/models/glm-5.3 | | `glm-5.3-flash` | 1000K | $0.0975 | $0.33 | $0.0195 | — | — | $0.15 / $0.50 | -35% | https://proxystacks.com/en/models/glm-5.3-flash | | `kimi-k3.1-pro` | 1000K | $1.6 | $8 | $0.16 | — | — | $2.00 / $10.00 | -20% | https://proxystacks.com/en/models/kimi-k3.1-pro | ## Benchmark & Archived Model Reference Pages (HTTP 200 Comparison Bridges) - [Qwen 3.7 Max / Plus (`qwen-3-7-max`)](https://proxystacks.com/en/models/qwen-3-7-max): Official benchmark input $1.6/1M, output $6.4/1M (1000K context). Recommended drop-in alternatives on Relay: `deepseek-v4.1-flash`, `glm-5.3`, `kimi-k3.1-pro`. - [DeepSeek V4 Pro (0813) (`deepseek-v4-pro-0813`)](https://proxystacks.com/en/models/deepseek-v4-pro-0813): Official benchmark input $1.1/1M, output $4.4/1M (1000K context). Recommended drop-in alternatives on Relay: `deepseek-v4.1-flash`, `kimi-k3.1-pro`, `glm-5.3`. - [DeepSeek V4 Pro (`deepseek-v4-pro`)](https://proxystacks.com/en/models/deepseek-v4-pro): Official benchmark input $1.1/1M, output $4.4/1M (1000K context). Recommended drop-in alternatives on Relay: `deepseek-v4.1-flash`, `glm-5.3`, `kimi-k3.1-pro`. - [DeepSeek V3.2 (`deepseek-v3-2`)](https://proxystacks.com/en/models/deepseek-v3-2): Official benchmark input $0.27/1M, output $1.1/1M (128K context). Recommended drop-in alternatives on Relay: `deepseek-v4.1-flash`, `glm-5.3-flash`, `glm-5.3`. - [LongCat 2.0 (`longcat-2-0`)](https://proxystacks.com/en/models/longcat-2-0): Official benchmark input $0.5/1M, output $2/1M (256K context). Recommended drop-in alternatives on Relay: `deepseek-v4.1-flash`, `glm-5.3-flash`, `glm-5.3`. ## Ready-to-Use Coding CLI Configurations ### 1. OpenCode (`./opencode.jsonc` or `~/.config/opencode/opencode.json`) Supports custom OpenAI-compatible providers (`@ai-sdk/openai-compatible`), environment variable interpolation (`{env:RELAY_API_KEY}`), per-model `limit` (`context` and `output` / `max_tokens`), `thinking.budgetTokens`, `reasoningEffort`, and `variants`: ```jsonc { // Project-specific ./opencode.jsonc or global ~/.config/opencode/opencode.jsonc "$schema": "https://opencode.ai/config.json", "provider": { "relay": { "npm": "@ai-sdk/openai-compatible", "name": "ProxyStacks Relay", "options": { "baseURL": "https://proxystacks.com/v1", "apiKey": "{env:RELAY_API_KEY}" }, "models": { "deepseek-v4.1-flash": { "name": "DeepSeek V4.1 Flash", // max_tokens / maxTokens output token limit & context window "limit": { "context": 1000000, "output": 64000 } }, "glm-5.3": { "name": "GLM-5.3", "limit": { "context": 1000000, "output": 64000 }, "options": { "thinking": { "type": "enabled", "budgetTokens": 16000 }, "reasoningEffort": "high" } }, "glm-5.3-flash": { "name": "GLM-5.3 Flash", "limit": { "context": 1000000, "output": 32000 } }, "kimi-k3.1-pro": { "name": "Kimi K3.1 Pro", "limit": { "context": 1000000, "output": 32000 }, "options": { "thinking": { "type": "enabled", "budgetTokens": 16000 }, "reasoningEffort": "high" } } } } }, "model": "relay/deepseek-v4.1-flash", "small_model": "relay/glm-5.3-flash", "experimental": { "subagent_depth": 2 } } ``` ### 2. Claude Code (`~/.claude/settings.json` or `.claude/settings.local.json`) ```json { "env": { "ANTHROPIC_AUTH_TOKEN": "sk-relay-your-key", "ANTHROPIC_BASE_URL": "https://proxystacks.com/anthropic", "ANTHROPIC_DEFAULT_OPUS_MODEL": "kimi-k3.1-pro", "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.3", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4.1-flash", "ANTHROPIC_SMALL_FAST_MODEL": "glm-5.3-flash", "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "64000" } } ``` ### 3. OpenAI Codex CLI (`~/.codex/config.toml`) ```toml model = "deepseek-v4.1-flash" model_provider = "relay" disable_response_storage = true [model_providers.relay] name = "ProxyStacks Relay" base_url = "https://proxystacks.com/v1" env_key = "RELAY_API_KEY" wire_api = "responses" [profiles.fast] model = "glm-5.3-flash" model_provider = "relay" [profiles.balanced] model = "glm-5.3" model_provider = "relay" [profiles.coding] model = "kimi-k3.1-pro" model_provider = "relay" ``` ## Public Documentation & Comparison Pages - [/](https://proxystacks.com/en) - [/pricing](https://proxystacks.com/en/pricing) - [/compare](https://proxystacks.com/en/compare) - [/vs/openrouter](https://proxystacks.com/en/vs/openrouter) - [/vs/glm-coding-plan](https://proxystacks.com/en/vs/glm-coding-plan) - [/status](https://proxystacks.com/en/status) - [/models](https://proxystacks.com/en/models) - [/docs](https://proxystacks.com/en/docs) - [/docs/claude-code](https://proxystacks.com/en/docs/claude-code) - [/docs/codex](https://proxystacks.com/en/docs/codex) - [/docs/opencode](https://proxystacks.com/en/docs/opencode) - [/about](https://proxystacks.com/en/about) - [/support](https://proxystacks.com/en/support) - [/terms](https://proxystacks.com/en/terms) - [/privacy](https://proxystacks.com/en/privacy) - [/refund-policy](https://proxystacks.com/en/refund-policy) - [/acceptable-use](https://proxystacks.com/en/acceptable-use)