Operations
OpenAI
const url = 'https://coder.api.visioncoder.cn/v1/responses';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"model":"gpt-5.4","input":"Introduce VisionCoder in one sentence","instructions":"example","reasoning":{"effort":"minimal"},"max_output_tokens":4096,"temperature":1,"top_p":1,"stream":false,"previous_response_id":"example","store":true,"tools":[{}],"tool_choice":"example","metadata":{"additionalProperty":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://coder.api.visioncoder.cn/v1/responses \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-5.4", "input": "Introduce VisionCoder in one sentence", "instructions": "example", "reasoning": { "effort": "minimal" }, "max_output_tokens": 4096, "temperature": 1, "top_p": 1, "stream": false, "previous_response_id": "example", "store": true, "tools": [ {} ], "tool_choice": "example", "metadata": { "additionalProperty": "example" } }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”OpenAI Responses API request body (recommended for the GPT-5 series). Fields follow the official OpenAI protocol.
object
OpenAI GPT-5 series model ID, e.g. gpt-5.6-sol, gpt-5.4, gpt-5.4-mini, gpt-5.5, gpt-5.3-codex-spark. Call GET /v1/models for the live list.
Example
gpt-5.4User input. Either a string or a structured input array
Example
Introduce VisionCoder in one sentenceSystem-level instructions, equivalent to the system message in Chat Completions
object
Example
highExample
4096ID of the previous response, used for multi-turn conversations
Whether to store the response server-side (mutually exclusive with disable_response_storage)
object
Tool choice strategy
object
Responses
Section titled “Responses”A successful response.
OpenAI Responses API response body.
object
Structured output containing items such as reasoning / message / tool_call
object
Concatenated plain-text output (used by some clients)
object
Example
{ "id": "resp_abc123", "object": "response", "created_at": 1730000000, "status": "completed", "model": "gpt-5.4", "usage": { "input_tokens": 12, "output_tokens": 28, "total_tokens": 40 }}