Invitation for OpenCode users · prices checked 2026-10-04

Claude Opus 5.5 at 81% off

One API key for 45 models with up to 1M context. Paste the config and start coding in OpenCode in 2 minutes.

Claude
−81%
GPT / Codex
−90%
Gemini
−81%
Sign up and get your API keyStarter tasks add trial credit. Pay as you go, only for tokens you use.
  • Shared balance across 45 models
  • Credit valid for 12 months
  • Automatic channel failover
  • Live availability stats

Same models, side-by-side pricing

Official list price next to the discounted channel price, per million tokens (input / output).

ModelThis channelYou save
Claude Opus 5.5$0.76 / $3.8−81%
Claude Fable 5.1$1.9 / $9.5−81%
Claude Sonnet 5.5$0.38 / $1.9−81%
Claude Haiku 4.5$0.19 / $0.95−81%

USD per million tokens (input / output) · Prices checked 2026-10-04; the dashboard is authoritative

More than a lower price

Automatic channel failover

Requests are routed by priority. If the current channel errors, traffic moves to the next available one, so long tasks keep running.

Availability you can check

The dashboard shows availability, cache hit rate and first-token latency for every channel.

One balance for 12 months

Top up once and spend it on any of the 45 models, billed per token. Credit stays valid for 12 months instead of resetting monthly.

One key for every model

Claude, GPT, Gemini, DeepSeek, GLM, Kimi and xAI in one account, without juggling vendor logins.

Connect OpenCode in 3 steps

Takes about 2 minutes after sign-up. The config below is ready to copy.

  1. Sign up and create an API key

    Register with the button on this page, then create a key under API Keys in the dashboard.

  2. Set an environment variable

    Run export AICODEWITH_API_KEY=your-key in your terminal. Keep the key out of project files.

  3. Paste the config and pick a model

    Save this as opencode.json in your project root, start opencode and choose Claude Opus 5.5 with /models.

    opencode.json
    {
      "$schema": "https://opencode.ai/config.json",
      "model": "aicodewith-anthropic/claude-opus-5-5",
      "provider": {
        "aicodewith-anthropic": {
          "npm": "@ai-sdk/anthropic",
          "name": "AI Code With",
          "options": {
            "baseURL": "https://api.aicodewith.ai",
            "apiKey": "{env:AICODEWITH_API_KEY}"
          },
          "models": {
            "claude-opus-5-5": { "name": "Claude Opus 5.5" },
            "claude-sonnet-5-5": { "name": "Claude Sonnet 5.5" }
          }
        }
      }
    }

FAQ

Is this an official OpenCode service?

No. AI Code With is an independent third-party API service, and this is an unofficial community site. The sign-up link carries an invitation code, so this site may earn a referral reward. Your price is not affected.

Why is it so much cheaper than the official API?

The platform relays requests through subscription and cloud-provider channels and bills by channel rate. The dashboard shows each channel’s rate and availability, and you can switch to a more stable enterprise channel.

Does credit expire?

Credit is valid for 12 months from top-up, works across all models and is billed by actual token usage.

What if requests fail after setup?

401 means the key is not set correctly; 404 means the model ID does not match the dashboard; 429 means you hit a balance or rate limit. Usage logs in the dashboard show the result of every request.

Spend the savings on stronger models

Claude Opus 5.5 at 81% off. Create your API key right after sign-up.

Disclosure: AI Code With is a third-party service not affiliated with OpenCode. Links on this page include the invitation code invitation=FNPJ9FQ. Prices and rates were checked on 2026-10-04; the service dashboard is authoritative.