321AI Model MarketplaceLive marketplace →

Quick answer: In Cursor open Settings → Models, paste your 321AI key under OpenAI API Key, enable Override OpenAI Base URL and set it to https://321ai.cc/v1 (the /v1 suffix is required), click Verify, then add model IDs such as gpt-5.5 or claude-sonnet-5. Tab completion uses Cursor's own service and is not billed through this key.

Cursor: OpenAI-Compatible Base URL Setup

Audience: Cursor users who want their own billing endpoint for Chat and Composer with GPT / Claude / DeepSeek models.

Configuration

SettingValueNote
OpenAI API Keyyour 321AI keySettings → Models
Override OpenAI Base URLhttps://321ai.cc/v1must include /v1
Model IDsgpt-5.5 / claude-sonnet-5 / …manual list, exact names

Steps

  1. Create an API key. Sign up at 321AI and copy a key from the console.
  2. Open Cursor settings. Cursor Settings → Models → scroll to OpenAI API Key.
  3. Enter key and override base URL. Paste the key; enable "Override OpenAI Base URL" and enter https://321ai.cc/v1.
  4. Verify and add models. Click Verify; add the exact model IDs you want (they must exist in the 321AI catalog).
  5. Select the model in Chat/Composer. Pick your custom model in the model picker before sending a request.

Troubleshooting

Verify fails

Double-check that the base URL includes /v1, the key is valid and has quota, and the model name exists on 321AI.

Does Tab completion use my key?

No. Tab autocomplete is part of Cursor's built-in service; only requests from Chat/Composer and similar features go through your custom endpoint — check Cursor's official docs for the current scope.

Cost control

Configure a cheap model (e.g. a deepseek or glm variant) for long background chats, and check per-model prices on /pricing/openai before heavy usage.

Related: 中文版 Cursor 教程 · Claude Code setup · price table

All model pricesFeatured · 321AI communityFeatured · Open-source toolsFeatured · Advertise with usFeatured