Models → Pricing → Docs → Blog → Changelog → Contact → Status →
Get started freeLog in

Claude Desktop with FreeModel: What to Enter

Claude Desktop speaks the Anthropic format, and so does FreeModel. Here are the values to enter, what the app's connection test actually checks, and what each error means.

Claude Desktop is Anthropic's desktop app. Versions that let you connect a custom API gateway ask for a base URL and an API key, then talk to that gateway in the Anthropic Messages format. FreeModel serves that format, so Claude Desktop can use it like any other Anthropic-compatible endpoint.

FreeModel is an independent service and is not affiliated with Anthropic. This page only covers what to enter and how to read the errors. Where exactly the setting sits depends on your Claude Desktop version, so we do not name menus here; look for the option to use your own API gateway or endpoint.

Before you start: which plan

Claude Haiku 5.5 is on the free plan, so Claude Desktop works on a free key with claude-haiku-5.5. The other Claude models need a paid FreeModel plan. Free tokens (1M after a one-time Telegram verification) work only on the free models, and a free account that asks for another Claude model gets 403 upgrade_required.

Paid plans are prepaid for 30 days with no auto-renew and start at $1.20. Every paid plan reaches every model. You pay by UPI (India) or USDT on BNB Smart Chain (BEP-20); there are no card payments. Unused tokens can be refunded at any time; see refunds.

The values to enter

SettingValue
Base URLhttps://freemodel.in
API keyyour fm_ key from Dashboard → API Keys
Modela Claude id from GET /v1/models, for example claude-sonnet-5

The base URL is the Anthropic-format base: just the domain. The app adds /v1/models and /v1/messages itself. The OpenAI-format address https://freemodel.in/v1/chat/completions is for other tools and produces 404s here.

FreeModel accepts the key as x-api-key or Authorization: Bearer, so whichever header the app sends works.

What the connection test checks

When you test the connection, Claude Desktop does two things in order:

  1. Lists models with GET /v1/models. This checks the base URL and the key.
  2. Sends a tiny message with POST /v1/messages to a model. This checks that the account can actually use that model.

On FreeModel the second step runs the same checks as a real request: the key, the account, Telegram verification, tokens left, and whether the model exists and is available right now. So when the test fails, the error it reports is the real reason, not a generic one.

The app gives the whole test a short time budget. If the test times out once, try it again before changing settings; if it keeps failing, look at the error code.

Choosing a Claude model

Each model uses plan tokens at its own rate. One token on a 3× model counts as three plan tokens. Input and output tokens both count.

ModelIdRate
Claude Opus 5.5claude-opus-5-53×
Claude Sonnet 5claude-sonnet-53×
Claude Opus 4.8claude-opus-4.83×
Claude Haiku 5.5claude-haiku-5.51.5× (1× on the free plan)

Copy ids exactly from GET /v1/models or the models page. FreeModel only serves listed models; older names such as claude-3-5-sonnet are not mapped to a newer model and return 404 model_not_found.

Errors and what they mean

CodeMeaningWhat to do
401Key missing, mistyped or revokedPaste the full fm_ key again, or create a new key
402No tokens leftRenew or upgrade; nothing is charged for the rejected request
403 upgrade_requiredFree account asked for a Claude model other than Haiku 5.5Use claude-haiku-5.5, or choose a paid plan
403 (verification)Telegram verification not done yetVerify in the dashboard
404Wrong base URL, or a model id that is not listedUse https://freemodel.in and an exact id
429Rate limit for your plan, per keyWait a moment and retry
503Model temporarily unavailableTry later or pick another Claude model

To check the key and base URL without the app, run this in a terminal:

curl https://freemodel.in/v1/messages \
  -H "x-api-key: fm_your_key_here" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model": "claude-sonnet-5", "max_tokens": 64, "messages": [{"role": "user", "content": "Say hi"}]}'

A JSON message back means the account, key and model are fine, and any remaining problem is in the app's settings.

Keeping usage in check

  • Long chats cost more per message. Every message resends the conversation. Start a new chat when the topic changes.
  • Attachments count. Files and images you add become input tokens, so a large document attached early in a chat is resent with every later message.
  • Use a dedicated key. A key just for Claude Desktop makes its usage easy to see in your dashboard and easy to revoke.

Also using Claude Code?

The same key works in Claude Code, which is configured with environment variables instead of a settings screen:

export ANTHROPIC_BASE_URL=https://freemodel.in
export ANTHROPIC_AUTH_TOKEN=fm_your_key_here
export ANTHROPIC_MODEL=claude-sonnet-5
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5   # its background model must be a listed model too
claude

More detail is in Claude Code with a custom API and the coding agents docs.

FAQ

Do I need a paid FreeModel plan for Claude Desktop?

Not for Claude Haiku 5.5: it is on the free plan, so Claude Desktop works on a free key with that model. The other Claude models need a paid plan and answer 403 upgrade_required on a free account.

Which base URL do I enter?

https://freemodel.in, the Anthropic-format base. Claude Desktop adds /v1/models and /v1/messages itself. Do not use the OpenAI-format path /v1/chat/completions.

Why does the connection test fail with a 402?

The account has no tokens left. The test runs the same checks as a real request, so it reports the real reason. Nothing is charged for the rejected request.

Is FreeModel part of Anthropic?

No. FreeModel is an independent service, not affiliated with Anthropic. It serves the Anthropic Messages format so Anthropic-format clients can connect to it.

Ready to build?

Grab a free API key — 1M tokens on 8 free models after a one-time Telegram verification, no card. Every model from $1.20.