Responses API
When this protocol is needed
Section titled “When this protocol is needed”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.
Minimal request structure
Section titled “Minimal request structure”POST https://wudiapi.com/v1/responses
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 and output
Section titled “Input and output”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 osfrom 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)State and hosted features
Section titled “State and hosted features”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.
Codex configuration
Section titled “Codex configuration”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.
