7API documentation
7API is an LLM API gateway. One API key reaches models from Anthropic, OpenAI, Google, xAI, DeepSeek, Zhipu AI and Moonshot AI. That includes uncensored and abliterated variants, which are models tuned to refuse fewer requests. Billing is per token from a prepaid USD balance, and cached input costs much less than regular input.
The gateway accepts three request formats. Any client or SDK that already speaks one of them works by changing two settings: the base URL and the API key.
| Format | Endpoint | Base URL to configure |
|---|---|---|
| OpenAI Chat Completions | POST /v1/chat/completions | https://7api.st/v1 |
| OpenAI Responses | POST /v1/responses | https://7api.st/v1 |
| Anthropic Messages | POST /v1/messages | https://7api.st |
Every public model works on every format. For example, a Claude model can be called through Chat Completions and a GLM model through Anthropic Messages. The one exception is claude-sonnet-5-5, which only works on Anthropic Messages.
Start here
- Quickstart: create a key and send your first request in under two minutes.
- Authentication: headers, key format and key rotation.
- Model IDs and aliases: the exact strings to send as
model. - Models and pricing: every model with its context window, output limit and per-token rate.
API reference
- OpenAI-compatible API: Chat Completions and Responses.
- Anthropic-compatible API: Messages and token counting.
- List models:
GET /v1/modelswith limits, capabilities and prices. - Balance, usage and status: read your balance, spend and model health with your key.
- Subkeys: issue separately funded keys to teammates or customers.
Features
- Streaming: server-sent events on every endpoint.
- Prompt caching: how cached input is billed and reported.
- Reasoning effort: the effort levels each model family accepts.
- Errors and rate limits.
Coding tools
Step-by-step guides for Claude Code, OpenCode, Codex CLI, Cursor, Cline, Roo Code and Continue, Oh My Pi and CommandCode.
Facts at a glance
| API host | https://7api.st |
| Authentication | Authorization: Bearer sk-… or x-api-key: sk-… |
| Billing | Prepaid USD balance, charged per token. No subscription. |
| Payment | Crypto (BTC, ETH, USDT, LTC and others). Top-ups start at $5. |
| Rate limit | 120 requests per minute and 32 concurrent requests per account |
| Machine-readable docs | /llms.txt, /llms-full.txt, and a .md version of each docs page |
