All guides / Coding assistants

Use XHuoAPI in Cline

Cline ships an OpenAI Compatible provider type meant for endpoints other than api.openai.com.

Before you start

Verify first

Before touching the tool, confirm the key and model work with curl. This rules out half of the 'I configured it and nothing happens' cases.

curl https://api.xhuoapi.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v3.2","messages":[{"role":"user","content":"ping"}]}'

Steps

1

Click the gear icon at the top right of the Cline panel, or the API Provider dropdown just below the chat box.

2

Set API Provider to OpenAI Compatible, then fill in Base URL, API Key and Model ID.

Base URL:  https://api.xhuoapi.ai/v1
API Key:   sk-...
Model ID:  deepseek-v4-pro
3

Optional: expand Model Configuration to set context window, image support and input/output prices. Copy prices from the pricing page and Cline will show per-task cost in the UI.

4

If you use the Cline CLI, the same setup is one command:

cline auth -p openai -k sk-... -b https://api.xhuoapi.ai/v1 -m deepseek-v4-pro

Notes

Stop the base URL at /v1. Do not append /chat/completions; the client adds that path itself and you will get a 404 if you include it.
The model ID must match the pricing page exactly (deepseek-v4-pro, not DeepSeek V4 Pro). Case and hyphens matter.

Commonly used models

These are common choices for this kind of tool; click a model to see its price in each tier. The full list is on the pricing page.

Steps follow the tool's current official documentation; the UI may change after updates. Tell us if something no longer matches.