Skip to main content
POST
  • 协议:OpenAI Chat Completions(POST /v1/chat/completions
  • 本页为 Doubao 共用合同;换模型只改 body 的 model
  • 默认同步;stream: true 流式
  • 规格特性:1024K 上下文窗口、256K 最大回答输出、支持多模态(文本 / 图像 / 视频)与深度思考

可用 model

Base URL:https://api.omnimux.ai

本地 OmniMux CLI 命令行测试与验证

通过本地官方 omnimux 命令行工具可直接查验与发起调用验证:

授权

Authorization
string
header
必填

API key auth. Header: Authorization: Bearer sk-... (create keys in the OmniMux console).

请求体

application/json
model
enum<string>
默认值:seed-evolving
必填

Model id for this brand on OmniMux. Same request/response shape for all ids below; only the model value changes.

可用选项:
seed-evolving
示例:

"seed-evolving"

messages
object[]
必填

对话消息列表

temperature
number
默认值:1

采样温度

必填范围: 0 <= x <= 2
top_p
number
默认值:1

核采样参数

必填范围: 0 <= x <= 1
n
integer
默认值:1

生成数量

必填范围: x >= 1
stream
boolean
默认值:false

是否流式响应

stream_options
object
stop

停止序列

max_tokens
integer

最大生成 Token 数

max_completion_tokens
integer

最大补全 Token 数

presence_penalty
number
默认值:0
必填范围: -2 <= x <= 2
frequency_penalty
number
默认值:0
必填范围: -2 <= x <= 2
logit_bias
object
user
string
tools
object[]
tool_choice
可用选项:
none,
auto,
required
response_format
object
seed
integer
reasoning_effort
enum<string>

推理强度 (用于支持推理的模型)

可用选项:
low,
medium,
high
modalities
enum<string>[]
可用选项:
text,
audio
audio
object

响应

Chat completion successful

id
string
object
string
示例:

"chat.completion"

created
integer
model
string
choices
object[]
usage
object
system_fingerprint
string