Cursor 接入 / Cursor API platform
Cursor 怎么接入 Routin?用 OpenAI 兼容 API 跑 Cursor
Use Cursor with Routin: OpenAI-compatible Cursor API setup
把 Cursor 的自定义模型指向 Routin 的 OpenAI 兼容大模型服务平台,即可用 GPT、Claude、Gemini、DeepSeek 等目录模型写代码,并按 token 计费。
Point Cursor at Routin’s OpenAI-compatible large model service platform to use GPT, Claude, Gemini, DeepSeek and other catalog models, with token billing and usage analytics.
接入要点 / Setup facts
- 协议 / ProtocolOpenAI-compatible /v1
- Base URL
https://api.routin.ai/v1 - Cursor 走 OpenAI 兼容协议。Base URL 填 https://api.routin.ai/v1,不要用 Anthropic 根地址。 / Cursor uses the OpenAI-compatible protocol. Set the base URL to https://api.routin.ai/v1, not the Anthropic root.
- API Key 用 Routin 控制台创建的密钥;模型名必须和公开目录里的 id 一致。 / Use a Routin API key. The model id must match a name in the public catalog.
- Cursor 用量会出现在 /agents 与排行榜的 Coding Agent 统计里(验证流量)。 / Verified Cursor traffic shows up on /agents and the coding-agent rankings.
步骤 / Steps
- 创建 Routin API Key / Create a Routin API key
登录 routin.ai,在控制台创建一把 API Key,并记下公开目录里要给 Cursor 用的模型名。
Sign in at routin.ai, create an API key, and pick a model id from the public catalog.
- 在 Cursor 覆盖 OpenAI Base URL / Override the OpenAI base URL in Cursor
打开 Cursor Settings → Models,填写 OpenAI API Key,并把 OpenAI Base URL 覆盖为 https://api.routin.ai/v1。
Open Cursor Settings → Models, paste the Routin API key, and override the OpenAI Base URL to https://api.routin.ai/v1.
- 选择目录中的模型 / Select a catalog model
在 Cursor 模型列表中选择或添加 Routin 目录里的模型 id,先发一条短请求确认连通。
Choose or add a Routin catalog model id in Cursor, then send a short request to verify connectivity.
Cursor / OpenAI 兼容字段 / Cursor OpenAI-compatible fields
Provider: OpenAI compatible
Base URL: https://api.routin.ai/v1
API Key: sk-your-routin-api-key
Model: pick an id from https://routin.ai/models下一步 / Next
其他 Agent / Other agents
可选用的聊天模型 / Chat models to try
把目录中的模型 id 填进 Cursor。价格来自公开目录。 / Use a catalog model id inside Cursor.
| Model | Provider | Type | Input | Output |
|---|---|---|---|---|
| claude-fable-5 | Anthropic | chat | 10.00 Token / 1M tokens | 50.00 Token / 1M tokens |
| claude-fable-5-1 | Anthropic | chat | 10.00 Token / 1M tokens | 50.00 Token / 1M tokens |
| claude-fable-5-2 | Anthropic | chat | 8.00 Token / 1M tokens | 40.00 Token / 1M tokens |
| claude-haiku-4-5 | Anthropic | chat | 1.00 Token / 1M tokens | 5.00 Token / 1M tokens |
| claude-haiku-4-5-20251001 | Anthropic | chat | 1.00 Token / 1M tokens | 5.00 Token / 1M tokens |
| claude-haiku-5-5 | Anthropic | chat | 0.1000 Token / 1M tokens | 0.5000 Token / 1M tokens |
| claude-opus-4-1-20250805 | Anthropic | chat | 3.00 Token / 1M tokens | 15.00 Token / 1M tokens |
| claude-opus-4-5-20251101 | Anthropic | chat | 5.00 Token / 1M tokens | 25.00 Token / 1M tokens |
模型目录 / Models套餐 / Plans费用计算器 / Cost calculatorCoding Agents文档 / Docs
常见问题 / FAQ
- Cursor 能用 Routin 吗? / Can I use Cursor with Routin?
- Yes. Cursor can call Routin as an OpenAI-compatible provider. Set the base URL to https://api.routin.ai/v1 and use a Routin API key. 可以,按 OpenAI 兼容方式填写 Base URL 和 API Key。
- Cursor 的 Base URL 填哪个? / Which Cursor base URL?
- https://api.routin.ai/v1. Do not use https://api.routin.ai/ — that root is for Claude Code / Anthropic Messages. Cursor 不要填 Anthropic 根地址。
- Cursor 可以用 Claude 或 DeepSeek 吗? / Can Cursor use Claude or DeepSeek?
- Yes, if that model is in the Routin catalog. Use the catalog model id, not a Cursor-only nickname. 目录里有的模型都可以把 id 填进 Cursor。