$Cheapa API Docs

Windsurf

Configure Windsurf, Codeium's AI-native IDE, to route through Cheapa API for model flexibility and unified billing.

What This Does

Windsurf is an AI-native code editor built by Codeium. It features deep AI integration including Cascade, an agent that can understand your entire codebase. By connecting Windsurf to Cheapa API, you can use any model in the Cheapa API catalog while managing costs through a single unified balance.


Setup

Step 1: Open Windsurf Settings

  1. Launch Windsurf
  2. Click the gear icon in the sidebar or press Cmd+, (macOS) / Ctrl+, (Windows/Linux)
  3. Navigate to AI Providers or Cascade Settings

Step 2: Add a New Provider

  1. Click Add Provider or + Add AI Provider
  2. Select OpenAI Compatible from the provider list

Step 3: Configure Cheapa API

Enter the following configuration:

FieldValue
Provider NameCheapa API (or any name you prefer)
Base URLhttps://api.cheapaapi.com/v1
API KeyYour Cheapa API API key
Model IDkimi-k2.6 or deepseek-v4-pro

Get your API key from cheapaapi.com/keys.

Step 4: Save and Activate

  1. Save the provider configuration
  2. Select Cheapa API as your active provider
  3. Choose your preferred model from the model picker

Step 5: Alternative — Settings JSON

For advanced configuration, edit the settings file directly:

  1. Open command palette: Cmd+Shift+P
  2. Search for Open User Settings (JSON)
  3. Add the configuration:
{
  "windsurf.aiProvider": "openai-compatible",
  "windsurf.openaiCompatibleBaseUrl": "https://api.cheapaapi.com/v1",
  "windsurf.openaiCompatibleApiKey": "YOUR_Cheapa API_API_KEY",
  "windsurf.openaiCompatibleModel": "kimi-k2.6"
}

FeatureModelWhy
Cascade (agent mode)kimi-k2.6Best for complex multi-step tasks
Code generationdeepseek-v4-proOptimized for programming
Large codebase analysisminimax-m3Extended context window
Quick chat responsesglm-5.1Fast and cost-effective

Troubleshooting

Provider not appearing in list

  • Ensure you selected OpenAI Compatible, not plain OpenAI
  • Save settings and restart Windsurf

Authentication errors

  • Verify your API key is correct at cheapaapi.com/keys
  • Re-paste the key without any extra spaces or newlines

Cascade doesn't work with Cheapa API

  • Cascade requires models with strong agentic capabilities — use kimi-k2.6 for best results
  • Some Cascade features may require specific model capabilities

Slow responses


Notes

  • Windsurf's UI evolves frequently — exact menu paths may differ between versions
  • Cascade is Windsurf's flagship feature — it works best with capable models like Kimi K2.6
  • Token usage is logged to your Cheapa API dashboard in real-time
  • For tab completions, consider configuring a faster model separately if Windsurf supports it

On this page