Recharge bonus$3 free with ¥30+ · $8 free with ¥50+ · $20 free with ¥100+ · $50 free with ¥200+ · $150 free with ¥500+ · New users get 20% extra on their first recharge (up to $200)Ends Dec 31, 15:09 (UTC+8)Recharge →

7bit: Claude, GPT and DeepSeek model APIs

One API key for GPT-6.2-Astra, GPT Image 2.6 (ChatGPT) and more. Compatible with the Anthropic and OpenAI APIs: change one URL and Claude Code or Codex CLI just works. You pay for the tokens you actually use.

Why 7bit

Works with Claude Code and Codex

Set ANTHROPIC_BASE_URL and Claude Code runs on 7bit; Codex CLI uses GPT models through the Responses API. Or try the open-source claude-pro: paste an API key and you're ready.

Anthropic and OpenAI compatible

Three APIs, /v1/messages, /v1/responses and /v1/chat/completions, with streaming, tool use, image and PDF input, and reasoning effort.

Pay per use, itemized

You're charged for the tokens each request actually uses (official price × multiplier). Every request's token counts and cost are in your usage log, and failed requests are free.

Many keys, tracked separately

Create an API key for each project or device; requests and spending are tracked per key, and you can disable any key at any time. Top up by scanning a QR code with Alipay.

Available models

GPT models

  • GPT-6.2-Astragpt-6.2-astra
  • GPT-6.2-Solgpt-6.2-sol

Image generation models

  • GPT Image 2.6 (ChatGPT)gpt-image-2.6

All 3 models and prices →

Claude Code in three steps

  1. Sign up and create an API key

    Sign up in the dashboard, add funds, and create a key under “API keys”.

  2. Set two environment variables

    macOS / Linux (for Windows PowerShell, see the docs):

    export ANTHROPIC_BASE_URL=https://7bit.fun
    export ANTHROPIC_AUTH_TOKEN=<your API key>
    claude
  3. Start coding

    Run claude in your project directory and switch models with /model, for example claude-sonnet-4-5.

Setup for Codex CLI, the OpenAI SDK and curl →

Open source · MIT

claude-pro: a coding agent for your terminal

Like Claude Code, it reads code, edits files and runs commands in your terminal, paid for from your 7bit balance: install it with one command, run /connect, choose 7bit.fun and paste an API key. Switch between Claude, GPT and other models, manage it from a desktop app, and with remote access turned on, use your computer's sessions from your phone.

# Windows (PowerShell)
irm https://7bit.fun/claude-pro/install.ps1 | iex

# macOS / Linux
curl -fsSL https://7bit.fun/claude-pro/install.sh | sh

FAQ

Which models does 7bit support?

GPT (GPT-6.2-Astra, GPT-6.2-Sol); Image generation (GPT Image 2.6 (ChatGPT)). The full list, with prices per million tokens, is at https://7bit.fun/en/pricing.

How do I use it with Claude Code?

Create an API key in the dashboard, set the environment variables ANTHROPIC_BASE_URL=https://7bit.fun and ANTHROPIC_AUTH_TOKEN=<your key>, then run claude. No Anthropic account needed.

How do I use it with Codex CLI?

Add a model_provider to ~/.codex/config.toml with base_url set to https://7bit.fun/v1 and wire_api set to responses, and put the key in the environment variable that env_key names. Step-by-step instructions: https://7bit.fun/en/docs.

Can I use the OpenAI SDK or other compatible clients?

Yes. Set the Base URL to https://7bit.fun in Anthropic-style clients and to https://7bit.fun/v1 in OpenAI-style ones; /v1/messages, /v1/responses and /v1/chat/completions are all supported.

How does billing work?

You pay for the tokens each request actually uses, at the model's official price × a multiplier, deducted from your account balance. Every request's token counts and cost show up in your usage log, and failed requests are free.

Get started

Sign up and create an API key. Pay only for what you use, with no monthly fee.

Sign up for 7bit