Claude API Redeem and Setup Guide

Redeem the code, create a key and connect Claude API to Claude Code, Cursor, VS Code or 9router, with models, quota checks and error fixes.

What this guide covers

Claude API redeem codes on this site come in two types:

USD credit: 100 USD / 500 USD, valid for 30 days.

Token packs: 10M / 50M / 100M / 500M tokens, valid for 1 / 2 / 3 / 6 days.

Both work the same way: redeem → create an API key → paste it into your tool. The endpoint accepts Anthropic and OpenAI formats and works with Claude Code, Cursor, the Cline or Roo Code extension for VS Code, 9router and your own scripts. Validity starts when you redeem; an unused code does not count down, so redeem only when you are ready.

ProductRedeem and config pageBase URL

100$ / 500$, 30 daysapi.mwapi.devhttps://api.mwapi.dev/v1

10M–500M tokensmiraiapi.com/usagehttps://api.miraiapi.com/v1

Before you start

Copy the redeem code from your order details without leading or trailing spaces.

Use an incognito window so other signed-in accounts do not get mixed up.

USD credit 100$ / 500$

Open If it does not load, switch networks or turn off your proxy.

Go to paste the code and submit. Success looks like: a confirmation and the credited amount. If the code is rejected, check for spaces and compare it with your order. Do not submit the same code again and again.

Open click Create Key, give it any name and copy the value starting with sk-. Save it right away: the full key may not be shown again, and a lost key can only be deleted and recreated.

In your tool, set Base URL and API key sk-....

Verify: paste the key on the balance page. A remaining balance and expiry date mean it is live.

Token packs 10M–500M

Open paste the code and redeem. Success looks like: an active plan, remaining tokens and an expiry date.

Open pick your tool in the App dropdown, then pick a model.

Generate the API key and save the sk- string. The config text shown on the page can be pasted as is.

Base URL: OpenAI-compatible tools usually need /v1; Claude Code sometimes wants the host only.

Check remaining quota and expiry at

Claude Code

Make sure Node.js 18 or later is installed: node -v prints a version.

Install: npm install -g @anthropic-ai/claude-code, then run claude --version to confirm.

Set the environment variables. macOS / Linux:

export ANTHROPIC_BASE_URL="

export ANTHROPIC_AUTH_TOKEN="sk-your-key"

Windows PowerShell:

$env:ANTHROPIC_BASE_URL="

$env:ANTHROPIC_AUTH_TOKEN="sk-your-key"

Run claude in your project and ask anything. A normal reply means you are connected.

Type /status to check the base URL and model. On 404, set ANTHROPIC_BASE_URL to On 401, copy the key again with no spaces or line breaks.

To keep the settings, add the two export lines to ~/.zshrc or ~/.bashrc, or put them under env in ~/.claude/settings.json.

Cursor, VS Code and 9router

9router

Open Provider in 9router and choose Add Anthropic Compatible or Add OpenAI Compatible.

Enter the base URL and API key, then click Create.

Click Add API Key and save once it shows Valid.

Click Import Model to load the models.

VS Code + Cline / Roo Code

Install Cline or Roo Code from the VS Code marketplace.

In the extension settings, set API Provider to OpenAI Compatible.

Base URL: for USD credit use

Paste the sk-... key, set Model ID to claude-sonnet-4-6 or another available model, save and send a test message.

Cursor

Open Settings → Models and expand OpenAI API Key.

Enter the key, turn on Override OpenAI Base URL and set

Add the model name by hand, such as claude-sonnet-4-6, select it and send a test message.

If your Cursor version does not allow custom model names, use VS Code + Cline instead.

Available models

USD credit: claude-haiku-4-5-20251001, claude-opus-4-6, claude-opus-4-7, claude-opus-4-8, claude-opus-5, claude-opus-5-5, claude-sonnet-4-6, claude-sonnet-5.

Token packs: claude-opus-4.6, claude-opus-4.7, claude-opus-4.8, claude-opus-5, claude-sonnet-5, ccmax-claude-opus-5.5, ccmax-claude-5.5, claude-fable-5.

The names differ: USD credit uses hyphens, like claude-opus-4-6; token packs use dots, like claude-opus-4.6. Copy model names from the config page dropdown; one wrong character returns model not found.

Troubleshooting

401 Unauthorized: the key is incomplete, has spaces or line breaks, or was deleted. Generate a new one and copy all of it.

404 / not found: /v1 is missing or extra. OpenAI-compatible tools need it; for Claude Code try without it first.

model not found: the model name does not match your plan. Use the config page list.

Balance is 0 or expired: the redemption failed or the days are used up. Check the redeem page, then the usage page.

Replies stop halfway: the context is too long or too many sessions run at once. Close some sessions and retry.

Can one key be used on several devices? Yes, but they share one quota. Give each person their own key.

Good to know

An API key is a password: never commit it to Git, post it in group chats or share screenshots of it. If it may have leaked, delete it and create a new one.

When the quota runs out or the plan expires, requests are rejected. Check the usage page ahead of time.

Still not working? Contact support with an error screenshot, your order number, the plan and the tool you use.