Skip to content

AI Models Reference

Guide to AI models available in Cursor and when to use each.


Model Overview

Anthropic Claude

ModelDescription
Claude Opus 4Most capable, complex reasoning
Claude Sonnet 4Balanced speed/quality (recommended)
Claude Sonnet 3.5Fast, efficient for most tasks

OpenAI GPT

ModelDescription
GPT-4oMultimodal, fast responses
GPT-4o miniCost-effective, quick tasks
o1-previewDeep reasoning, complex problems
o1-miniFast reasoning model

Cursor Models

ModelDescription
cursor-smallOptimized for Tab autocomplete

Claude Models (Anthropic)

Claude Opus 4

AttributeValue
Best ForComplex reasoning, large refactors, architecture decisions
SpeedSlower
QualityHighest
Context Window200K tokens
Use WhenQuality matters more than speed

Ideal Use Cases:

  • System architecture design
  • Complex debugging
  • Large-scale refactoring
  • Security audits
  • Code review

AttributeValue
Best ForDaily coding, balanced tasks
SpeedFast
QualityExcellent
Context Window200K tokens
Use WhenMost everyday coding tasks

Ideal Use Cases:

  • Feature implementation
  • Bug fixes
  • Code generation
  • Documentation
  • General Q&A

Claude Sonnet 3.5

AttributeValue
Best ForQuick tasks, simple edits
SpeedVery fast
QualityGood
Context Window200K tokens
Use WhenSpeed is priority

Ideal Use Cases:

  • Quick fixes
  • Simple refactors
  • Code formatting
  • Small features
  • Rapid iteration

GPT Models (OpenAI)

GPT-4o

AttributeValue
Best ForMultimodal tasks, image analysis
SpeedFast
QualityExcellent
Context Window128K tokens
Use WhenNeed image understanding

Ideal Use Cases:

  • UI/UX from screenshots
  • Diagram interpretation
  • Mixed media tasks
  • General coding

GPT-4o Mini

AttributeValue
Best ForSimple tasks, cost optimization
SpeedVery fast
QualityGood
Context Window128K tokens
Use WhenSimple, repetitive tasks

Ideal Use Cases:

  • Boilerplate generation
  • Simple edits
  • Quick questions
  • Formatting

o1-preview

AttributeValue
Best ForComplex reasoning, math, algorithms
SpeedSlower (reasoning time)
QualityExceptional for logic
Context Window128K tokens
Use WhenComplex problems needing deep thought

Ideal Use Cases:

  • Algorithm design
  • Mathematical problems
  • Complex logic
  • Multi-step reasoning
  • Optimization problems

o1-mini

AttributeValue
Best ForFaster reasoning tasks
SpeedModerate
QualityExcellent for logic
Context Window128K tokens
Use WhenNeed reasoning but faster

Ideal Use Cases:

  • Algorithm optimization
  • Code analysis
  • Logic problems
  • Debugging complex issues

Model Selection Guide

By Task Type

TaskRecommended Model
Daily codingClaude Sonnet 4
Complex architectureClaude Opus 4
Quick fixesClaude Sonnet 3.5
Image/UI workGPT-4o
Algorithm designo1-preview
Simple boilerplateGPT-4o mini
Tab autocompletecursor-small (auto)

By Priority

PriorityModel Choice
Speed firstClaude Sonnet 3.5 or GPT-4o mini
Quality firstClaude Opus 4 or o1-preview
BalancedClaude Sonnet 4 or GPT-4o
Cost firstGPT-4o mini or Claude Sonnet 3.5

Switching Models

In Chat

  1. Quick Switch:

    • Press Cmd + / (macOS) or Ctrl + / (Windows)
    • Select model from dropdown
  2. Per-Message:

    • Click model name at bottom of chat
    • Select for current message only
  3. Default Model:

    • Settings → Models → Default Model
    • Changes default for new chats

In Inline Edit

  • Uses same model selection as chat
  • Can override per-edit with Cmd+/

For Tab Autocomplete

  • Uses cursor-small automatically
  • Optimized for speed and relevance
  • Cannot be changed manually

Model Comparison Table

ModelSpeedQualityContextCost
Claude Opus 4⭐⭐⭐⭐⭐⭐⭐200K$$$
Claude Sonnet 4⭐⭐⭐⭐⭐⭐⭐⭐200K$$
Claude Sonnet 3.5⭐⭐⭐⭐⭐⭐⭐⭐200K$
GPT-4o⭐⭐⭐⭐⭐⭐⭐⭐128K$$
GPT-4o mini⭐⭐⭐⭐⭐⭐⭐⭐128K$
o1-preview⭐⭐⭐⭐⭐⭐⭐128K$$$
o1-mini⭐⭐⭐⭐⭐⭐⭐128K$$

Request Limits

Pro Plan

TypeLimit
Fast requests500/month
Slow requestsUnlimited
Premium requests (Opus/o1)10/day

Business Plan

TypeLimit
Fast requests1000/month
Slow requestsUnlimited
Premium requests50/day

Using Your Own API Keys

Add Custom Keys

  1. Settings → Models → API Keys
  2. Enter your API key:
    • Anthropic API key for Claude
    • OpenAI API key for GPT

Benefits of Own Keys

  • No request limits
  • Pay-per-use pricing
  • Access to all model versions
  • Privacy control

Configuration

json
// Example: Add to Cursor settings
{
  "anthropic.apiKey": "sk-ant-...",
  "openai.apiKey": "sk-..."
}

Model Tips

Start Fast, Upgrade as Needed

  • Begin with Sonnet for most tasks
  • Switch to Opus when you need deeper analysis
  • Use o1 for complex algorithmic problems

Match Model to Context Size

  • Large codebases → Claude (200K context)
  • Focused tasks → Any model works
  • Many files referenced → Prefer Claude

Save Premium Requests

  • Use Opus/o1 for important decisions
  • Draft with Sonnet, refine with Opus
  • Don't use premium for simple tasks

Experiment

  • Try different models for same task
  • Note which works best for your workflow
  • Models evolve - retest periodically

Changelog

Models are updated regularly. Check Cursor release notes for:

  • New model additions
  • Performance improvements
  • Context window changes
  • Deprecated models

See Also

Built with VitePress | Powered by Claude AI