# Claude API and pricing (https://wanapi.app/docs/claude-api)



Call Claude with the same API key and prepaid balance used for the other models on Wan API. Responses arrive directly, or as a stream; there is no video-style task to poll.

## Connect [#connect]

Create a key in [API key settings](/settings/apikeys) and keep it on your server. **One key works across all models and groups**; you do not need a separate key for each group. Use `https://api.wanapi.app` as the base URL.

| Protocol                           | Endpoint                    | Authentication                       |
| ---------------------------------- | --------------------------- | ------------------------------------ |
| Anthropic Messages                 | `POST /v1/messages`         | `x-api-key: YOUR_API_KEY`            |
| OpenAI-compatible Chat Completions | `POST /v1/chat/completions` | `Authorization: Bearer YOUR_API_KEY` |

For Messages requests, also send `anthropic-version: 2023-06-01`. Both endpoints accept JSON with `Content-Type: application/json`.

## Models [#models]

| Model                                        | Request `model`     |
| -------------------------------------------- | ------------------- |
| [Claude Haiku 5.5](/docs/claude-haiku-5-5)   | `claude-haiku-5-5`  |
| [Claude Sonnet 5.5](/docs/claude-sonnet-5-5) | `claude-sonnet-5-5` |
| [Claude Opus 5.5](/docs/claude-opus-5-5)     | `claude-opus-5-5`   |
| [Claude Fable 5.2](/docs/claude-fable-5-2)   | `claude-fable-5-2`  |

Use the exact ID in the request body. `GET /v1/models`, authenticated with `Authorization: Bearer YOUR_API_KEY`, lists the models currently available to your key.

### Groups and automatic routing [#groups-and-automatic-routing]

The key is not tied to a price group. Send the model ID above; Wan API automatically routes the request to an eligible group. The price table lists each group's own rates and marks the first eligible group in the configured routing order as **Default**. Another eligible group can be selected when routing continues, so the charge uses the group that actually serves the request.

The current public API does not provide a per-request group selector. Keep the model ID unchanged; do not append a group suffix. Groups in the table describe routing and billing, not separate API keys.
