1. OpenAI
OmniRouters-API Docs
  • Platform API
    • List models(OpenAI)
      GET
    • List models(Gemini)
      GET
  • Chat
    • OpenAI
      • ChatCompletions
        POST
      • Responses
        POST
    • Gemini
      • Gemini
      • Gemini Vision
    • Claude
      • Claude Messages
  • Videos
    • Omni-Create video
      • Parameter Description
      • Kling
        • Parameter Description
        • Kling-Template
        • Kling-3.0-shot-type
        • Kling-3.0-element-list
      • Vidu-Template
      • Hailuo-Template
      • Seedance-Template
      • JV(Jimeng)-Template
      • GV(Veo)-Template
      • OS(Sora)-Template
      • Hunyuan(Mingmou)-Template
      • Get Task
    • Wan2.6
      • Create Task
      • Get Task
    • Seedance
      • 1.5-Pro-Create Task
      • 2.0(2.0-fast)Create Task
      • volc/2.0(2.0-fast)Create Task
      • Get Task
    • Agent-VOD
      • Parameter Description
      • Create Task-general
      • Create Task-ecommerce
      • Create Task-mv
      • Create Task-replicate
      • Get Task
  • Images
    • Omni-Create image
      • Parameter Description
      • Create image
    • Nano-Banana
      • Gemini
      • OpenAI Chat
    • Nano-Banana-Pro
      • Gemini
      • OpenAI Chat
    • Nano-Banana2
      • Gemini
    • Seedream
      • Create image
    • Midjouney
      • Submit Imagine task (text-to-image, image-to-image)
      • Submit Blend task (image-to-image)
      • Execute actions (all associated button actions such as UPSCALE, VARIATION, REROLL, ZOOM, etc.)
      • Create Describe task (image-to-text)
      • Submit Modal (submit local redraw, ZOOM)
      • Create Shorten task (prompt analysis)
      • Create an "edits" task (image editing)
      • Create the swap_face task (face swap)
      • Create Video task (text-to-video, text-to-image-to-video)
      • Retrieve tasks by specified ID
  • Music
    • Suno
      • Create music
      • Create lyrics
      • Get Task
  • Embeddings
    • OpenAI
      POST
  • Audio
    • Seed-TTS
      • 豆包语音合成模型1.0音色ID
      • 豆包语音合成模型2.0音色ID
      • Seed-TTS
    • Gemini-TTS
      • Gemini-TTS
    • MiniMax-TTS
      • MiniMax-TTS
    • Vidu-TTS
      • Vidu-TTS
    • OpenAI-TTS
  • Moderations
  • Rerank
    • Create rerank
  • Realtime
    • OpenAI
  1. OpenAI

Responses

Developing
POST
https://omnirouters.com/v1/responses
OpenAI Responses API, used for creating model responses.
Supports functions such as multi-round dialogues, tool invocation, and reasoning.

Request

Header Params

Body Params application/jsonRequired

Example
{  
  "model": "gpt-5.2",  
  "input": [  
    {"role": "user", "content": "你好"}  
  ],  
  "instructions": "你是一个有用的助手。",  
  "max_output_tokens": 1000,  
  "temperature": 0.7,  
  "top_p": 1.0,  
  "stream": false,  
  "tools": [  
    {  
      "type": "function",  
      "name": "get_weather",  
      "description": "获取天气信息",  
      "parameters": {  
        "type": "object",  
        "properties": {  
          "location": {"type": "string"}  
        },  
        "required": ["location"]  
      }  
    }  
  ],  
  "tool_choice": "auto",  
  "parallel_tool_calls": true,  
  "user": "user-123"  
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://omnirouters.com/v1/responses' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{  
  "model": "gpt-5.2",  
  "input": [  
    {"role": "user", "content": "你好"}  
  ],  
  "instructions": "你是一个有用的助手。",  
  "max_output_tokens": 1000,  
  "temperature": 0.7,  
  "top_p": 1.0,  
  "stream": false,  
  "tools": [  
    {  
      "type": "function",  
      "name": "get_weather",  
      "description": "获取天气信息",  
      "parameters": {  
        "type": "object",  
        "properties": {  
          "location": {"type": "string"}  
        },  
        "required": ["location"]  
      }  
    }  
  ],  
  "tool_choice": "auto",  
  "parallel_tool_calls": true,  
  "user": "user-123"  
}'

Responses

🟢200成功
application/json
Body

Example
{}
Modified at 2026-03-11 12:51:56
Previous
ChatCompletions
Next
Gemini
Built with