Skip to main content
POST
  • 协议:OpenAI Chat Completions(POST /v1/chat/completions
  • 本页为 GPT 共用合同;换模型只改 body 的 model
  • 默认同步;stream: true 流式

可用 model

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

授权

Authorization
string
header
必填

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

请求体

application/json
model
enum<string>
默认值:gpt-5.4-mini
必填

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

可用选项:
gpt-5.4-mini,
gpt-5.4,
gpt-5.5,
gpt-5.6-luna,
gpt-5.6-sol,
gpt-5.6-terra
示例:

"gpt-5.4-mini"

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