curl --request POST \
--url https://api.omnimux.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gemini-2.5-flash-lite",
"messages": [
{
"role": "user",
"content": "介绍一下人工智能的发展历史"
}
]
}
'{
"id": "chatcmpl-example",
"object": "chat.completion",
"created": 1741428397,
"model": "gemini-2.5-flash-lite",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "…"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 18,
"completion_tokens": 120,
"total_tokens": 138
}
}{
"error": {
"message": "Invalid request: missing required field or invalid parameter",
"type": "invalid_request_error",
"code": "bad_request"
}
}{
"error": {
"message": "Invalid token or authentication failed",
"type": "authentication_error",
"code": "unauthorized"
}
}{
"error": {
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota",
"code": "insufficient_quota"
}
}{
"error": {
"message": "Model not allowed for this token, or access denied",
"type": "permission_error",
"code": "forbidden"
}
}{
"error": {
"message": "Not found",
"type": "invalid_request_error",
"code": "not_found"
}
}{
"error": {
"message": "Rate limit exceeded. Please retry later.",
"type": "rate_limit_error",
"code": "rate_limit_exceeded"
}
}{
"error": {
"message": "Internal server error",
"type": "server_error",
"code": "internal_error"
}
}{
"error": {
"message": "Upstream provider error or bad gateway",
"type": "server_error",
"code": "bad_gateway"
}
}{
"error": {
"message": "Service temporarily unavailable",
"type": "server_error",
"code": "service_unavailable"
}
}Gemini
Gemini · Complete API Reference
Gemini · Chat Completions complete API reference (shared contract, model enum)
POST
/
v1
/
chat
/
completions
curl --request POST \
--url https://api.omnimux.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gemini-2.5-flash-lite",
"messages": [
{
"role": "user",
"content": "介绍一下人工智能的发展历史"
}
]
}
'{
"id": "chatcmpl-example",
"object": "chat.completion",
"created": 1741428397,
"model": "gemini-2.5-flash-lite",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "…"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 18,
"completion_tokens": 120,
"total_tokens": 138
}
}{
"error": {
"message": "Invalid request: missing required field or invalid parameter",
"type": "invalid_request_error",
"code": "bad_request"
}
}{
"error": {
"message": "Invalid token or authentication failed",
"type": "authentication_error",
"code": "unauthorized"
}
}{
"error": {
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota",
"code": "insufficient_quota"
}
}{
"error": {
"message": "Model not allowed for this token, or access denied",
"type": "permission_error",
"code": "forbidden"
}
}{
"error": {
"message": "Not found",
"type": "invalid_request_error",
"code": "not_found"
}
}{
"error": {
"message": "Rate limit exceeded. Please retry later.",
"type": "rate_limit_error",
"code": "rate_limit_exceeded"
}
}{
"error": {
"message": "Internal server error",
"type": "server_error",
"code": "internal_error"
}
}{
"error": {
"message": "Upstream provider error or bad gateway",
"type": "server_error",
"code": "bad_gateway"
}
}{
"error": {
"message": "Service temporarily unavailable",
"type": "server_error",
"code": "service_unavailable"
}
}
- Protocol: OpenAI Chat Completions (
POST /v1/chat/completions)- Shared contract for all Gemini ids below; only body
modelchanges- Synchronous by default;
stream: truefor SSE
Available models
| model id |
|---|
gemini-2.5-flash-lite |
gemini-2.5-flash |
gemini-2.5-pro |
gemini-3-flash-preview |
gemini-3-flash |
gemini-3-pro-preview |
gemini-3-pro |
gemini-3.1-flash-lite-preview |
gemini-3.1-flash-lite |
gemini-3.1-pro-preview |
gemini-3.1-pro |
gemini-3.5-flash |
gemini-3.6-flash |
gemini-3.7-flash |
gemini-3.8-flash |
https://api.omnimux.aiAuthorizations
API key auth. Header: Authorization: Bearer sk-... (create keys in the OmniMux console).
Body
application/json
Model id for this brand on OmniMux. Same request/response shape for all ids below; only the model value changes.
Available options:
gemini-2.5-flash-lite, gemini-2.5-flash, gemini-2.5-pro, gemini-3-flash-preview, gemini-3-flash, gemini-3-pro-preview, gemini-3-pro, gemini-3.1-flash-lite-preview, gemini-3.1-flash-lite, gemini-3.1-pro-preview, gemini-3.1-pro, gemini-3.5-flash, gemini-3.6-flash, gemini-3.7-flash, gemini-3.8-flash Example:
"gemini-2.5-flash-lite"
对话消息列表
Show child attributes
Show child attributes
采样温度
Required range:
0 <= x <= 2核采样参数
Required range:
0 <= x <= 1生成数量
Required range:
x >= 1是否流式响应
Show child attributes
Show child attributes
停止序列
最大生成 Token 数
最大补全 Token 数
Required range:
-2 <= x <= 2Required range:
-2 <= x <= 2Show child attributes
Show child attributes
Show child attributes
Show child attributes
Available options:
none, auto, required Show child attributes
Show child attributes
推理强度 (用于支持推理的模型)
Available options:
low, medium, high Available options:
text, audio Show child attributes
Show child attributes