API reference
Last updated 29 November 2026
Wideband serves one model, DeepSeek V4.1 Flash (1017), through OpenAI- and Anthropic-compatible endpoints. Most tools need only a base URL, an API key and a model name. This page lists every request parameter we pass on and the values it accepts.
Connecting
| OpenAI-compatible base URL | https://wideband.dev/v1 |
| Anthropic-compatible base URL | https://wideband.dev (Claude Code: ANTHROPIC_BASE_URL) |
| Model | deepseek-v4.1-flash. Any model name is accepted and served by the same model, so tools that insist on their own names work unchanged. |
| API key | Created in your account. Send it as Authorization: Bearer <key> or x-api-key: <key>. |
curl https://wideband.dev/v1/chat/completions \
-H "Authorization: Bearer $WIDEBAND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "deepseek-v4.1-flash", "stream": true, "reasoning_effort": "low",
"messages": [{"role": "user", "content": "Write a haiku about caching."}]}'Endpoints
| Endpoint | Format |
|---|---|
POST /v1/chat/completions | OpenAI Chat Completions. Also at /chat/completions. |
POST /v1/messages | Anthropic Messages, as used by Claude Code. Translated to the model and back. |
POST /v1/messages/count_tokens | Anthropic token count. Returns an estimate, not an exact count. |
GET /v1/models | Lists the one model, deepseek-v4.1-flash. |
The OpenAI Responses API, embeddings, audio and image generation are not available.
OpenAI parameters
For /v1/chat/completions. Fields not listed here are dropped before the request reaches the model, so an unknown field never causes an error.
| Parameter | Accepts |
|---|---|
messages | Required. Roles system, user, assistant and tool. Content as a string or parts: text and image_url (a data URL or link). A reasoning_content field on earlier assistant messages is accepted. |
stream | true or false. Streamed responses always end with a usage chunk. |
max_tokens, max_completion_tokens | Integer. The most tokens to generate, reasoning included. |
temperature | Number, 0 to 2. |
top_p | Number, 0 to 1. |
stop | A string or an array of strings. |
presence_penalty, frequency_penalty | Number, -2 to 2. |
seed | Integer. Best effort; output is not guaranteed to repeat. |
reasoning_effort | none, low, high, max. Also accepted and mapped: minimal → low, medium → high, xhigh → max. Other values are ignored. See Reasoning. |
thinking | DeepSeek's own form: {"type": "enabled"} means reasoning_effort: high, {"type": "disabled"} means none. Ignored when reasoning_effort is also sent. |
tools | Function tools: {"type": "function", "function": {name, description, parameters}}. |
tool_choice | auto, none, required, or {"type": "function", "function": {"name": …}}. |
parallel_tool_calls | true or false. |
response_format | {"type": "text"}, {"type": "json_object"}, or {"type": "json_schema", "json_schema": {…}}. |
logprobs, top_logprobs | true / false; integer 0 to 20. |
model | Any string; see Connecting. |
Not supported: n above 1 (always one choice), stream_options (usage is always included), user, store, metadata, audio and web search options.
Anthropic parameters
For /v1/messages. The request is translated to the model's format, and the answer back to Anthropic's.
| Parameter | Accepts |
|---|---|
messages | Required. Content blocks text, image (base64 or URL), tool_use and tool_result. Thinking blocks sent back from earlier turns are dropped. |
system | A string or text blocks. |
max_tokens | Integer. Reasoning included. |
stream | true or false. |
temperature | Number. Passed on as sent; the model accepts 0 to 2. |
top_p | Number, 0 to 1. |
stop_sequences | Array of strings. |
tools | Custom tools with input_schema. Anthropic server tools (web search, code execution and so on) are dropped. |
tool_choice | auto, any, none, or {"type": "tool", "name": …}. |
output_config.effort | low, medium, high, max (and xhigh); mapped as for reasoning_effort. Claude Code sets this from /effort. |
thinking | {"type": "disabled"} turns reasoning off. enabled or adaptive turns it on, at output_config.effort if given, otherwise high. budget_tokens is not used. |
Reasoning is not returned as thinking blocks; the answer contains text and tool calls only. Prompt caching is automatic, so cache_control markers are not needed and are ignored.
Reasoning
- Off unless asked for. With no
reasoning_effort,thinkingoroutput_config.effort, the model answers directly. - Levels:
none,low,high,max. Higher levels think longer before answering. - Reasoning tokens are output tokens. They count toward
max_tokens, so a small limit with reasoning on can end before any answer appears (finish_reason: "length", empty content). They also stream at the plan speed, so reasoning adds time before the first word of the answer. - Claude Code sends
thinking: adaptivewith its effort setting on every request,highunless you change it. Use/effort lowfor faster turns.
Responses
- OpenAI format: reasoning arrives in
message.reasoning_content(streamed indelta.reasoning_content), separate fromcontent. usagereportsprompt_tokens,completion_tokens(reasoning included),prompt_tokens_details.cached_tokensandcompletion_tokens_details.reasoning_tokens.- Anthropic format:
usagereportsinput_tokens(uncached),cache_read_input_tokensandoutput_tokens.
Limits
| Streams | One request generating at a time per stream; add streams in your account at $25 a month each. Further requests wait in a short queue (up to 8 at once). |
| Speed | 100 tokens a second target per stream, reasoning included. |
| Context | 1,000,000 tokens per request, estimated before sending (the model's own limit is 1,048,576). Larger requests are refused with 400. |
| Usage | No token caps or usage windows. Fair use applies as set out in the terms. |
Errors
Errors use the format of the endpoint called: {"error": {"message": …}} for OpenAI, {"type": "error", "error": {"type": …, "message": …}} for Anthropic. Where waiting helps, a retry-after header gives the seconds to wait.
| Status | Meaning |
|---|---|
400 | The request is malformed, too large for the context, or was rejected by the model. |
401 | Missing or invalid API key. |
402 | No active plan on this account. |
429 | Your stream is busy and the queue is full, or a usage limit was reached. The message says which and when to retry. |
503 | The model is temporarily unavailable or out of capacity. Retry shortly. |