Connect in under 5 minutes

Inside the editors you already useConnect ModelAPI once

One API key. Works in Cursor, Windsurf, VS Code, Claude Code, Codex CLI, and 100+ more apps. Switch between GPT-5.5, Claude, DeepSeek, and Gemini instantly.

Cursor

AI-first code editor. Use any ModelAPI model inside Cursor.

OpenAI compatible·No change to your core code patterns·Any model from the catalog
1

Open Cursor Settings

Press ⌘, (Mac) or Ctrl+, (Windows/Linux) → select Cursor Settings (not VS Code Settings) → Models → API Keys.

2

Add your ModelAPI API Key

Enable "Override OpenAI Base URL" and enter our endpoint. Paste your ModelAPI key (sk-ama-...) in the "OpenAI API Key" field.

text
API Key:  sk-ama-YOUR_KEY
Base URL: https://api.aimodelapi.ai/v1
3

Add models

Click "+ Add Custom Model" and type the model name. Custom base URL applies to Chat / Plan mode — Composer and autocomplete still use Cursor's backend.

text
# Frontier models
gpt-5.5
claude-opus-4-7
gemini-3.1-pro
grok-4.3

# Value models (90%+ cheaper)
deepseek-v4-flash
deepseek-v4-pro
qwen-max
kimi-k2.6
4

Start coding!

Select your model from the dropdown in Cursor's chat panel. All responses flow through ModelAPI — you get the same Cursor experience with access to any model.

Ready to connect?

Create a free account, grab your API key, and start in minutes.

Quick Reference

The two settings that work in every tool

Base URL (OpenAI-compatible)

https://api.aimodelapi.ai/v1

Cursor, Codex, Continue, Windsurf, etc.

Claude Code Base URL

https://api.aimodelapi.ai

ANTHROPIC_BASE_URL — no /v1 suffix; requests /v1/messages

API Key Format

sk-ama-••••••••••••

Create one at Dashboard → API Keys

Code completion / Speed

deepseek-v4-flashcheapest

Complex reasoning / Architecture

claude-sonnet-4-6best for code

Max capability / No cost limit

claude-opus-4-7frontier