Wideband

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 URLhttps://wideband.dev/v1
Anthropic-compatible base URLhttps://wideband.dev (Claude Code: ANTHROPIC_BASE_URL)
Modeldeepseek-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 keyCreated 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

EndpointFormat
POST /v1/chat/completionsOpenAI Chat Completions. Also at /chat/completions.
POST /v1/messagesAnthropic Messages, as used by Claude Code. Translated to the model and back.
POST /v1/messages/count_tokensAnthropic token count. Returns an estimate, not an exact count.
GET /v1/modelsLists 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.

ParameterAccepts
messagesRequired. 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.
streamtrue or false. Streamed responses always end with a usage chunk.
max_tokens, max_completion_tokensInteger. The most tokens to generate, reasoning included.
temperatureNumber, 0 to 2.
top_pNumber, 0 to 1.
stopA string or an array of strings.
presence_penalty, frequency_penaltyNumber, -2 to 2.
seedInteger. Best effort; output is not guaranteed to repeat.
reasoning_effortnone, low, high, max. Also accepted and mapped: minimal → low, medium → high, xhigh → max. Other values are ignored. See Reasoning.
thinkingDeepSeek's own form: {"type": "enabled"} means reasoning_effort: high, {"type": "disabled"} means none. Ignored when reasoning_effort is also sent.
toolsFunction tools: {"type": "function", "function": {name, description, parameters}}.
tool_choiceauto, none, required, or {"type": "function", "function": {"name": …}}.
parallel_tool_callstrue or false.
response_format{"type": "text"}, {"type": "json_object"}, or {"type": "json_schema", "json_schema": {…}}.
logprobs, top_logprobstrue / false; integer 0 to 20.
modelAny 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.

ParameterAccepts
messagesRequired. Content blocks text, image (base64 or URL), tool_use and tool_result. Thinking blocks sent back from earlier turns are dropped.
systemA string or text blocks.
max_tokensInteger. Reasoning included.
streamtrue or false.
temperatureNumber. Passed on as sent; the model accepts 0 to 2.
top_pNumber, 0 to 1.
stop_sequencesArray of strings.
toolsCustom tools with input_schema. Anthropic server tools (web search, code execution and so on) are dropped.
tool_choiceauto, any, none, or {"type": "tool", "name": …}.
output_config.effortlow, 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

Responses

Limits

StreamsOne 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).
Speed100 tokens a second target per stream, reasoning included.
Context1,000,000 tokens per request, estimated before sending (the model's own limit is 1,048,576). Larger requests are refused with 400.
UsageNo 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.

StatusMeaning
400The request is malformed, too large for the context, or was rejected by the model.
401Missing or invalid API key.
402No active plan on this account.
429Your stream is busy and the queue is full, or a usage limit was reached. The message says which and when to retry.
503The model is temporarily unavailable or out of capacity. Retry shortly.