Connect DeepSeek Chat with an OpenAI-compatible request.
Use the deepseek-chat alias for text chat through BestLLM. This guide covers the implemented non-streaming request path, not a guarantee that a route is enabled for your account.
Before your first call
- Sign in to the Console and select a workspace.
- Verify your account email, then check that Models lists an approved DeepSeek Chat route for your workspace.
- Confirm a US-scoped key and available wallet funds under API keys and Billing.
- Keep your key in a server-side environment variable named
BESTLLM_API_KEY. Never paste it into frontend code or a public issue.
If access is missing, contact your workspace administrator. Changing a model string does not bypass approval.
What the alias means
deepseek-chat exists in the public catalog and gateway route configuration. It is a gateway alias, not a promise of a fixed upstream version. Confirm the current model mapping with your administrator when reproducibility matters.
Current scope: text chat, stream: false, US-scoped keys. Streaming returns 501 streaming_not_implemented; non-US keys return 403 region_not_served. Tool calling, structured outputs and multimodal behavior are not validated by this example.
Price check before use
Reviewed November 24, 2026. The public catalog’s price notes cite a September 29, 2026 supplier snapshot and USD/CNY conversion of 6.72. That historical snapshot is not a verified current quote.
This guide intentionally gives no numeric price: confirm the effective workspace price before calling. The gateway snapshots its database price when accepting a request; the resulting customer charge appears in usage and billing. See the catalog entry and its source references for background.
Send one small request
Set BESTLLM_API_KEY securely in your shell environment first. This command uses the documented public endpoint; a successful live provider call has not been verified for this guide. For a configured local gateway, replace the URL with http://127.0.0.1:4000/v1/chat/completions.
curl --silent --show-error --fail-with-body --max-time 70 \
https://api.bestllm.dev/v1/chat/completions \
-H "Authorization: Bearer ${BESTLLM_API_KEY:?Set BESTLLM_API_KEY securely first}" \
-H "Content-Type: application/json" \
--data '{
"model": "deepseek-chat",
"messages": [
{
"role": "user",
"content": "Explain an API gateway in one sentence."
}
],
"max_tokens": 128,
"stream": false
}'On success, inspect choices[0].message.content and usage. The upstream model name in the response may differ from your alias. No sample output or latency claim is presented as a measured result.
Continue with a client
Use a server-side Python client with automatic retries disabled while validating access and billing. A timeout or settlement error can mean the provider already processed the request.
Python tutorial and error checklist →