Skip to content

Responses API

Clients such as Codex use Responses. Chat Completions support does not establish support for the complete Responses protocol. The current public catalog does not mark a Responses endpoint; confirm route availability and use a minimal request before configuring a dependent client.

POST https://wudiapi.com/v1/responses

Terminal window
curl https://wudiapi.com/v1/responses \
-H "Authorization: Bearer $WUDI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5.6-sol","input":"Explain unit testing in one sentence.","stream":false}'

input accepts text or supported message items. instructions sets request-level instructions, and stream enables events. Response text belongs to message content items under output; SDKs can expose output_text. Do not read it as Chat Completions’ choices[0].

import os
from openai import OpenAI
client = OpenAI(api_key=os.environ["WUDI_API_KEY"], base_url="https://wudiapi.com/v1")
response = client.responses.create(model="gpt-5.6-sol", input="Explain Python list comprehensions.")
print(response.output_text)

Do not assume the gateway persists response state. previous_response_id, store, background execution, file storage, built-in search, computer use and WebSockets require separate route support. These instructions do not promise those hosted features. Your application can maintain conversation history where appropriate.

A custom provider uses wire_api = "responses" and https://wudiapi.com/v1. See Codex CLI. If a model chats successfully but Codex rejects parameters or the protocol, retain the actual endpoint and error response. Changing it to a chat path does not establish Responses compatibility.

Protocol reference: Responses API.