I work at ModelFold. This is a setup walkthrough: the same mf-... key, three clients, and the values copied from the live docs on 24 November 2026. Model IDs and URLs below are the ones those pages show. For the current rate of a model, open its page under All model IDs. This post does not restate a price the docs page did not print as a number in the article body.
Create the key first: Console · API Keys, then Create key, and copy the mf-... value. The Common API quickstart says every request uses Authorization: Bearer YOUR_API_KEY. The documented API base for that quickstart is https://modelfold.ai/v1/.
1. Cursor
Source: Use Cursor with ModelFold.
The page says you fill in three fields, and that this only applies when your Cursor version and plan expose Override. Tab completion stays on Cursor.
- Open Cursor Settings → Models → API Keys.
- Put the ModelFold key in OpenAI API Key.
- Turn on Override OpenAI Base URL.
- Set the base URL to
https://modelfold.ai/v1. Copy it as written. The page says not to add/v1or/messagesyourself. - Set the model to
claude-opus-5-5, or paste another ID from All model IDs. - Start a new chat, select that model, and send
Reply with OK. A reply of OK means it is working. The same request shows up under Console · Usage.
If the model list is empty, type the model ID yourself. A 401 means the key is wrong or has extra spaces. A 404 means the URL or the model ID does not match the values above. If chat works but the model will not edit code, pick a model the docs describe as having tool calling, such as Claude or GPT.
2. Claude Code
Source: Claude Code CLI setup. Install Claude Code first if you do not have it.
Claude Code uses a different base from Cursor. The docs put this block in ~/.claude/settings.json on Mac or Linux, and in %USERPROFILE%\.claude\settings.json on Windows. Replace mf-... with your key. The token is the raw key, with no Bearer prefix.
{
"env": {
"ANTHROPIC_BASE_URL": "https://modelfold.ai/anthropic",
"ANTHROPIC_AUTH_TOKEN": "mf-...",
"ANTHROPIC_MODEL": "claude-sonnet-5-5",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-5-5",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5-5",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-5-5"
}
}
Fill in all four model lines and keep the Haiku line. The page says background tasks fail if that line is missing. To swap models, copy Claude IDs from All model IDs. ANTHROPIC_BASE_URL stops at /anthropic. Do not append /v1, or requests can 404 with /v1/v1 in the URL.
Close every terminal, including terminals inside the editor, open a new one, and run claude. In Claude Code, /status should show Anthropic base URL https://modelfold.ai/anthropic. Send any message. The call appears in Console · Usage.
If it asks you to log in to Anthropic, the JSON file was not loaded. A project file .claude/settings.json overrides this user file. A 401 means the key in ANTHROPIC_AUTH_TOKEN is wrong. model not found means the ID is wrong; run /model and pick one.
To list Claude models with the same key:
curl -s -H "Authorization: Bearer mf-..." https://modelfold.ai/anthropic/v1/models
The same four variables can be exported in the shell instead of settings.json. The docs list that as an optional path. A project settings file still overrides them.
3. Python, OpenAI SDK
Chat completions on the gateway use the OpenAI-compatible base, not the Anthropic base from section 2. The GPT-5.2 and Claude Sonnet 5.5 pages both show this client. model is required. On the Sonnet 5.5 page the only allowed value is claude-sonnet-5-5. On the GPT-5.2 page the example model is gpt-5-2. max_tokens is optional and defaults to 1024 on the Sonnet page; the sample request uses 512.
export MODELFOLD_API_KEY="mf-..."
import os
from openai import OpenAI
client = OpenAI(
base_url="https://modelfold.ai/v1",
api_key=os.environ["MODELFOLD_API_KEY"],
)
resp = client.chat.completions.create(
model="claude-sonnet-5-5",
messages=[{"role": "user", "content": "Hello!"}],
max_tokens=512,
)
print(resp)
Change model to gpt-5-2 for the example on the GPT-5.2 page. The request those pages document is POST https://modelfold.ai/v1/chat/completions with Authorization: Bearer plus the key. The gateway returns a full JSON completion. Those two pages say this chat-completions path does not support stream, tools, or provider-only fields. Coding agents stay on the Claude Code or Cursor setup above.
The first request guide uses the same base and the same key for other jobs. It sets API_BASE to https://modelfold.ai/v1 and MODELFOLD_API_KEY to mf-.... Its image example posts to $API_BASE/images/generations with model nano-banana-2. Its video example posts to $API_BASE/videos/generations with model kling-2.6/text-to-video. Same key, different model string.
To see the balance that key is drawing from, the Common API quickstart calls GET https://modelfold.ai/v1/chat/credit with the same Bearer header. The sample response on that page is {"code": 200, "msg": "success", "data": 100.5}.
What is shared
| Client | Base | Example model on the docs page |
|---|---|---|
| Cursor override | https://modelfold.ai/v1 |
claude-opus-5-5 |
| Claude Code | https://modelfold.ai/anthropic |
claude-sonnet-5-5, Opus claude-opus-5-5, Haiku claude-haiku-5-5
|
| OpenAI Python SDK | https://modelfold.ai/v1 |
claude-sonnet-5-5 or gpt-5-2
|
One key is enough for all three. Cursor and the Python SDK use /v1. Claude Code stops at /anthropic.
When the product copy is live, ModelFold GEO is a free check of whether AI answers recommend your brand.
Top comments (0)