Model response
Native OpenAI Responses API endpoint, compatible with the OpenAI SDK's client.responses.create. Just point the SDK's baseURL at SeaWhale AI.
Only OpenAI models are supported for now (e.g. gpt-6-luna, gpt-5). For models from Claude, Gemini, DeepSeek and other vendors, use the "Chat completion" endpoint instead.
Key differences from "Chat completion":
- Uses
inputinstead ofmessages - Uses
instructionsfor the system prompt - Uses
max_output_tokensinstead ofmax_tokens - Returns an
outputarray instead ofchoices; usage fields areinput_tokens/output_tokens
Other official OpenAI Responses parameters not listed below are passed through to the model as-is. Only the create endpoint is available; retrieving or deleting stored responses is not supported.
Request Body
Responses
The model response. When stream is true, an SSE (text/event-stream) event stream is returned, each line formatted as data: {event JSON}. Event types match the official OpenAI ones (e.g. response.output_text.delta, response.completed), and the stream ends with data: [DONE].