Skip to main content

Overview

Cursor is an AI-powered code editor. You can use LemonData as a custom API provider to access 300+ models.

Configuration

  1. Open Cursor Settings (Cmd/Ctrl + ,)
  2. Navigate to ModelsOpenAI API Key
  3. Enter your LemonData API key
  4. Set the Override OpenAI Base URL to:
https://api.lemondata.cc/v1
Cursor API Settings

Model Selection

After configuration, you can select any LemonData model in Cursor:
ModelBest For
claude-sonnet-4-20250514Complex coding, architecture
claude-3-5-sonnet-20241022General coding, debugging
gpt-4oCode generation, explanations
deepseek-r1Reasoning-heavy tasks
gpt-4o-miniFast completions, simple tasks

Features

Chat

Use the AI chat panel (Cmd/Ctrl + L) with any LemonData model:
  • Code explanations
  • Bug fixing
  • Refactoring suggestions
  • Documentation generation

Composer

The Composer feature (Cmd/Ctrl + I) works with LemonData models for:
  • Multi-file edits
  • Feature implementation
  • Code migrations

Tab Completion

For tab completions, we recommend using fast models:
  • gpt-4o-mini
  • claude-3-5-haiku-20241022
  • gemini-2.0-flash

Troubleshooting

Cursor caches model lists. Try restarting Cursor after configuring the API.
Check your model selection. Use faster models like gpt-4o-mini for quick tasks.
Verify your API key is correct and has sufficient balance.

Tips

Use appropriate models

Use gpt-4o-mini for tab completions, larger models for complex reasoning.

Check your balance

Monitor usage in your LemonData dashboard.