# Connect Cursor to WanAPIs

> Override Cursor's OpenAI Base URL with WanAPIs to call GPT, Claude, Gemini and more with one key. OpenAI-compatible and pay-as-you-go.

Web page: https://wanapi.ai/docs/cursor

Cursor supports custom OpenAI-compatible endpoints. Point the Base URL at WanAPIs, paste your API key, and you can use models from many providers inside Cursor, paying per token.

## Setup steps

### 1. Sign up and create an API key

Create an account in the WanAPIs console and generate an API key starting with sk-.

### 2. Override the Base URL in Cursor settings

Open Cursor Settings → Models, set OpenAI API Key to your sk- key, enable "Override OpenAI Base URL" and enter the WanAPIs address. Save, then click Verify.

**Cursor → Settings → Models**

```
OpenAI API Key: sk-xxx
Override OpenAI Base URL: https://api.wanapis.com/v1
```

### 3. Pick a model and start

Add and select the model you want (for example gpt-5.5) in the model list, and it's available in chat and Composer.

## FAQ

### Why does Verify fail?

Check that the Base URL ends with /v1, the key is correct and your account has balance. Some versions need you to add a custom model name before verifying.

### Can I use Claude models?

Yes. Call Claude and other models by name through the OpenAI-compatible endpoint. See the model marketplace for what's available.

---

Generated by the WanAPIs website and kept in sync with the web page. All guides in Markdown: https://wanapi.ai/docs/index.md
