Public preview: This API is in public preview. Endpoints, schemas, and limits may change before general availability.

The Responses API

Why EU GPT uses the OpenAI Responses shape, and how it differs from Chat Completions.

EU GPT exposes a single conversational endpoint: POST /v1/responses. It follows the OpenAI Responses API — the successor to Chat Completions — with the same request shape for the common fields, the same event names, and the same SDK ergonomics.

If you have ever called openai.chat.completions.create you will recognise everything here. If you have used openai.responses.create, you can switch by changing the base URL and the API key; the differences are listed at the end of this page.

How it differs from Chat Completions#

AspectChat CompletionsResponses on EU GPT
Field for the promptmessages: [{ role, content }]input: a string, or a list of items with text and file parts
Outputchoices[0].message.contentoutput_text (string) and output (structured items)
StateStateless — caller passes full history each turnOptional conversation_id — the server keeps the thread
Toolstools[] in the request; your code runs themBuilt-in tools that EU GPT runs; they show up in the stream
Streaming eventsdelta.content chunks onlyTyped events: text deltas, tool calls, generated files, completion

In practice this means:

  • For a one-shot answer, you pass a string. The response is a string.
  • For a multi-turn conversation, you pass a conversation_id. The server keeps the history. See Conversations.

The request shape#

{
  "model": "auto",
  "input": "What is data sovereignty?",
  "stream": true,
  "instructions": "Be concise. Cite sources when you use the web search tool.",
  "conversation_id": "8f14e45f-ceea-467a-a4ed-a9e9a5cb16ee",
  "max_output_tokens": 1024
}
  • model — "auto" (default) lets EU GPT pick the model; or pass a model id from GET /v1/models. The response reports the model used. See Models.
  • input — a string, or a list of items whose content holds input_text and input_file parts. Send one message per request: only the first text part is used.
  • stream — true (default) returns SSE; false returns one JSON document.
  • instructions — a system prompt for this response.
  • conversation_id — append to an existing conversation. Omit for a stateless request.
  • project_id — search the files of an agent (project) for this answer. You must be a member.
  • visible — show a stateless request’s conversation in the web app. Default false.
  • max_output_tokens — cap the length (and cost) of the answer.
  • response_format — ask for JSON that follows a schema. See Structured outputs.

Every field is described in Create a response.

The response shape (non-streaming)#

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "object": "response",
  "created_at": 1793577600,
  "status": "completed",
  "model": "qwen3.5-397b-a17b",
  "output": [
    {
      "id": "msg_550e8400-e29b-41d4-a716-446655440000",
      "type": "message",
      "role": "assistant",
      "content": [{ "type": "output_text", "text": "Data sovereignty is …" }]
    }
  ],
  "output_text": "Data sovereignty is …",
  "generated_files": []
}

For most applications, output_text is enough. Use output when you need the structured items, for example to show the tool calls the model made. generated_files lists the PDF, Word, and PowerPoint files that tools created (see Tools).

What stays the same as OpenAI#

  • The Authorization: Bearer … header.
  • The base path layout: /v1/responses, /v1/models, /v1/files.
  • The SDK call shape: client.responses.create(...), client.models.list(), client.files.create(...).
  • The core streaming events (response.created, response.output_text.delta, response.completed, and so on).

What is different from OpenAI#

  • Tools are built in. The model decides which built-in tools to use and EU GPT runs them, without an approval step. A tools parameter in the request is ignored. See Tools.
  • History comes from conversation_id. previous_response_id is ignored, and an input list is not read as a chat history: only its first text part is used.
  • Structured output uses response_format, in the Chat Completions shape. OpenAI’s text.format is ignored.
  • Stateless requests are hidden by default. A request without a conversation_id creates a conversation that does not appear in the user’s history, unless you set "visible": true.
  • organization is implicit. Your API key carries the organisation context; you do not pass it in the body.
  • No usage block. The response does not report token counts.
  • Other OpenAI parameters, such as temperature, are ignored rather than rejected.
  • Errors carry a detail field instead of OpenAI’s error object; only authentication errors use error. See Errors.