Cursor

Route Cursor through sference using an OpenAI-compatible custom model, alongside Cursor's own models.

Cursor

Cursor supports custom OpenAI-compatible models. Add sference as a provider and its models appear alongside Cursor's own, so you can pick per chat.

Configure

In Cursor: Settings → Models → OpenAI API Key, then enable Override OpenAI Base URL:

FieldValue
Base URLhttps://api.sference.com/v1
API Keyyour sk_... sference key
Modela catalog id, e.g. zai-org/GLM-5.3

Add each model you want by name — Cursor does not enumerate the provider's catalog, so add the ids you use:

zai-org/GLM-5.3
zai-org/GLM-5.3-Flash
deepseek-ai/DeepSeek-V4.1-Flash
moonshotai/Kimi-K3

Overriding the base URL affects all custom models

Cursor's override applies to the OpenAI-compatible provider as a whole. If you already use a custom OpenAI-compatible endpoint, switch between the two rather than expecting both to be active at once. Cursor's own hosted models are unaffected.

Choosing a model

ModelInput / output per 1MUse for
zai-org/GLM-5.3-Flash0.20 / 0.60Inline completion, small edits, chat
zai-org/GLM-5.31.20 / 4.20General coding turns, agent mode
deepseek-ai/DeepSeek-V4.1-Flash0.50 / 1.50Long-context work at low cost
moonshotai/Kimi-K33.00 / 15.00Hard planning turns

Live ids and rates: GET https://api.sference.com/v1/models.

Cost control

  • Prefix caching is the main lever — Cursor resends the system prompt and file context every turn. Keep the stable part first. See Prompt caching.
  • Use Flash for inline work. Tab completion and small edits do not need a frontier model.
  • Per-engineer attribution. One key per engineer shows up separately in GET /control/v1/usage/by-key. See Usage & analytics.

Vision

Some catalog models accept images. Cursor's image attachments go through as content parts, so a vision-capable model can read screenshots. Check capabilities.image_input.supported on GET /v1/models before relying on it. See Images and vision.