API Reference
Parameter Matrix
Parameters are listed according to the backend's actual forwarding and protocol conversion logic. Text models support all three protocols (OpenAI, Anthropic, Responses); non-text models use the image, audio, embedding, or async task endpoints based on their capabilities.
OpenAI Chat Completions
Parameter
Type/Mapping
Status
Description
modelstring
Required
Model ID. Text, reasoning, multimodal, coding, and specialized models support Chat Completions.
messagesarray
Required
Array of conversation messages, passed in order: system, user, assistant, tool.
messages[].rolestring
Required
system / user / assistant / tool. tool messages return function execution results.
messages[].contentstring | array
Required
Plain text can be passed as a string; multimodal input uses an array of content blocks.
messages[].content[].typestring
Multimodal
Stable examples are text / image_url; extended content blocks like video and input_audio must be tested per model.
messages[].content[].textstring
Multimodal
Text when type=text.
messages[].content[].image_url.urlstring
Multimodal
Image URL or data URL; requires a model with vision support.
streamboolean
Optional
Enable SSE streaming. Recommended for long text, reasoning models, and interactive scenarios.
stream_options.include_usageboolean
Optional
Returns usage at the end of a streaming response. Recommended for billing, statistics, or smoke checks.
temperaturenumber
Optional
Sampling temperature. Typically 0 to 2; higher is more random.
top_pnumber
Optional
Nucleus sampling threshold. Avoid adjusting it heavily together with temperature.
max_tokensinteger
Optional
Maximum output tokens, cannot exceed the model maxOutput.
stopstring | string[]
Optional
Stop sequences; output ends when matched.
presence_penaltynumber
Optional
Presence penalty, typically -2 to 2, encourages new topics.
frequency_penaltynumber
Optional
Frequency penalty, typically -2 to 2, reduces repetition.
toolsarray
Optional
Array of function calling definitions. Only models that support function calling reliably return tool_calls.
tools[].typestring
Tool
Always function.
tools[].function.namestring
Tool
Function name. Use letters, digits, and underscores.
tools[].function.descriptionstring
Tool
Description of the function, affecting how accurately the model selects tools.
tools[].function.parametersobject
Tool
JSON Schema describing the function parameters.
tool_choicestring | object
Optional
Stably supports auto / none, or specify {type:'function', function:{name}}. Forcing tools is not recommended for thinking mode models.
response_formatobject
Optional
Output format control. Common values are {"type":"text"} or {"type":"json_object"}.
enable_thinkingboolean
Optional
Thinking mode toggle. Can be turned off only for verified hybrid thinking models; thinking-only models ignore false and keep returning reasoning_content.
thinking_budgetinteger
Optional
Caps the thinking token budget, forwarded by model ID prefix (qwen3.7- / qwen3.6- / qwen3.5- / qwen3-).
preserve_thinkingboolean
Optional
Forwards reasoning_content from prior messages back to the model. Supported by qwen3.7-max, qwen3.6-max-preview, qwen3.6-plus, kimi-k2.6.
enable_searchboolean
Optional
Web search, supported by Qwen text models (not the VL / math series).
search_optionsobject
Optional
Web search configuration, used together with enable_search.
enable_context_cachingboolean
Optional
Enable context cache. Repeated prompt prefixes are cached automatically; hits are billed at 0.1x the input price. Supported by Qwen and GLM series.
seedinteger
Optional
Random seed, forwarded for Qwen text models.
top_kinteger
Optional
Top-K sampling, forwarded for Qwen text models.
logprobsboolean
Optional
Return log probabilities, forwarded for Qwen text models.
repetition_penaltynumber
Optional
Repetition penalty, forwarded for Qwen text models.
parallel_tool_callsboolean
Optional
Parallel function calling, supported by Qwen, DeepSeek, GLM, and Anthropic models.
Currently Unsupported Fields
The table below lists fields not yet stably forwarded by the public Chat endpoint; do not rely on them in production code.
Parameter
Type/Mapping
Status
Description
max_completion_tokensinteger
Not forwarded
Use the currently stable max_tokens instead.
Thinking Mode Support
This lists the tested behavior of the NexusFlow live OpenAI Chat endpoint. Support varies with upstream model versions, so production code should configure behavior explicitly per model ID.
Parameter
Type/Mapping
Status
Description
qwen3.7-maxHybrid thinking
Supports true / false
Thinking on by default; true returns reasoning_content, false does not. Supports thinking_budget and preserve_thinking.
qwen3.5-flashHybrid thinking
Supports true / false
Verified live: true returns reasoning_content, false does not.
qwen3-maxHybrid thinking
Supports true / false
Verified live: true returns reasoning_content, false does not.
qwq-plusThinking only
false cannot disable
Verified live: both true/false return reasoning_content.
qwen-math-plusNot treated as a thinking toggle
Do not send
Verified live: neither true/false returns reasoning_content.
deepseek-r1Thinking only
false cannot disable
Verified live: both true/false return reasoning_content.
deepseek-v3.2Hybrid thinking
Supports true / false
Verified live: true returns reasoning_content, false does not.
deepseek-v4-proHybrid thinking
Supports true / false
Verified live: true returns reasoning_content, false does not.
glm-5.2Hybrid thinking
Supports true / false
Flagship for long-horizon tasks, 1M context. Thinking on by default; true returns reasoning_content with up to 128K chain-of-thought, false does not. Supports thinking_budget.
glm-5.1Hybrid thinking
Supports true / false
Verified live: true returns reasoning_content, false does not.
Anthropic Messages Mapping
Parameter
Type/Mapping
Status
modelmodel
Model ID, mapped to the OpenAI model.
systemmessages[0].role=system
System prompt. Supports a string or text blocks.
messagesmessages
user / assistant messages are converted to OpenAI messages.
messages[].content[].textmessages[].content
Text block. Plain text blocks are merged into a string.
messages[].content[].imageimage_url
Supports url or base64 source, converted to OpenAI image_url.
messages[].content[].tool_useassistant.tool_calls
Assistant tool call result.
messages[].content[].tool_resultrole=tool
Returns the function execution result.
max_tokensmax_tokens
Maximum output tokens.
temperaturetemperature
Sampling temperature.
top_ptop_p
Nucleus sampling.
stop_sequencesstop
Array of stop sequences.
streamstream
Enable the Anthropic SSE event stream.
toolstools
Anthropic tools are converted to OpenAI function tools.
tool_choicetool_choice
auto / none / any / tool is converted to OpenAI tool_choice.
Responses API Mapping
Parameter
Type/Mapping
Status
modelmodel
Model name, e.g. qwen3.7-plus.
inputmessages
Plain text or an array of messages (supports role: user/assistant/system/developer).
instructionssystem message
System instructions, inserted at the start of the context.
previous_response_id—
Previous response ID for multi-turn conversations (valid for 7 days).
streamstream
Whether to enable streaming output.
store—
Whether to store the response (default true); if false, it cannot be referenced via previous_response_id.
toolstools
Tool list: web_search, web_extractor, code_interpreter, function, etc.
tool_choicetool_choice
Tool selection strategy: auto / none / required.
temperaturetemperature
Sampling temperature.
top_ptop_p
Nucleus sampling.
max_output_tokensmax_tokens
Maximum output tokens.
enable_thinkingenable_thinking
Whether to enable thinking mode.
reasoning—
Thinking effort control, e.g. {effort: "high"}.
Response Fields
Parameter
Type/Mapping
choices[].message.contentNon-streaming text output.
choices[].message.reasoning_contentThinking content field that reasoning models may return.
choices[].message.tool_callsReturned when the model requests a tool call.
choices[].delta.contentStreaming text delta.
choices[].delta.reasoning_contentStreaming thinking delta that reasoning models may return.
choices[].finish_reasonstop / length / tool_calls / content_filter.
usage.prompt_tokensInput tokens.
usage.completion_tokensOutput tokens.
usage.total_tokensTotal tokens.
usage.completion_tokens_details.reasoning_tokensReasoning tokens, returned by some models.
Production tip: for reasoning models, use
stream=true and stream_options.include_usage=true; for hybrid thinking models in low-cost, low-latency scenarios, explicitly pass enable_thinking=false. See more examples in the Chat Completions API and the Responses API.