# Connect Continue to WanAPIs

> In Continue's config, use the openai provider with apiBase pointing at WanAPIs to call many models from VS Code or JetBrains with one key, paying per token.

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

Continue is an open-source AI coding extension for VS Code and JetBrains that supports OpenAI-compatible providers. Set apiBase to WanAPIs and pay only for the tokens you use.

## Setup steps

### 1. Get an API key

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

### 2. Edit the Continue config

Open ~/.continue/config.yaml and add a model under models that uses the openai provider and points at WanAPIs.

**~/.continue/config.yaml**

```
models:
  - name: WanAPIs GPT-5.5
    provider: openai
    model: gpt-5.5
    apiBase: https://api.wanapis.com/v1
    apiKey: sk-xxx
```

### 3. Reload and pick the model

Save, then choose the new model from the model dropdown in the Continue panel.

## FAQ

### I'm still on the old config.json — what do I do?

Add the equivalent fields (provider: openai, apiBase, apiKey, model) to the models array. The fields mean the same thing.

### Can I configure several models?

Yes. Add more entries under models and switch between them in the panel at any time.

---

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