# Responses API vs Chat Completions (and Anthropic Messages): differences, when to use which, and the endpoint each model family uses

> Markdown mirror of https://router.one/responses-api-vs-chat-completions for AI assistants and crawlers. Router One is a unified, OpenAI-compatible LLM API gateway.
> Last updated: 2026-12-04

Chat Completions and the Responses API are both OpenAI request formats: Chat Completions sends a messages array and returns choices[].message, while Responses sends input (a string or a list of items such as messages, function calls and function call outputs) and returns a typed output array, and on OpenAI's own API it can carry a conversation forward with previous_response_id or the Conversations API instead of resending the history. Per OpenAI's migration guide (checked 2026-12-04), Chat Completions remains supported and Responses is recommended for all new projects; Anthropic's Messages API is a third format, stateless by default per Anthropic's docs (checked 2026-12-04), that returns an array of content blocks and requires max_tokens. On Router One the same API key works on all three endpoints: POST https://api.router.one/v1/chat/completions serves every chat model in the catalog, POST https://api.router.one/v1/messages serves the Claude-family models and DeepSeek ids, and POST https://api.router.one/v1/responses serves GPT chat models, DeepSeek ids and Grok chat models; each model's page lists exactly the endpoints it serves.

## What each API is

All three turn a conversation into a model reply. They differ in the request shape, the reply shape, where conversation state lives, and how tools and streams look. The descriptions below follow each vendor's own documentation.

### Chat Completions (OpenAI)

POST /v1/chat/completions takes a messages array: system or developer guidance, user and assistant messages, and tool results. The reply is a choices array, each choice holding one assistant message, and n asks for several candidate replies in one call. Your code stores the transcript and sends the accumulated messages array on each request. Function definitions are externally tagged (name and parameters nested under function) and non-strict by default, structured output uses response_format, and a stream arrives as chunks that carry a delta field (OpenAI's migration guide, checked 2026-12-04).

### Responses (OpenAI)

POST /v1/responses takes input, a string or a list of typed items, plus optional top-level instructions for guidance that applies to one response. The reply is a response object with its own id and an output array in which message, reasoning and function_call items sit side by side; the SDK's output_text helper returns only the text. Function definitions are internally tagged (type, name and parameters at the top level), and when strict is omitted Responses attempts strict mode; a tool result goes back as a function_call_output item linked by call_id. Structured output moves to text.format, and a stream is a series of typed events such as response.created, response.output_text.delta and response.completed. On OpenAI's API, responses are stored by default (store: false turns that off), and previous_response_id or the Conversations API can carry state between turns (OpenAI's migration guide, checked 2026-12-04).

### Messages (Anthropic)

POST /v1/messages takes model, max_tokens and a messages array of alternating user and assistant turns, with an optional top-level system field. The reply is a message whose content is an array of blocks, with a stop_reason such as end_turn. The Messages API is stateless by default, so you send the full conversation history with each request. Tools you define yourself use input_schema; when Claude calls one, the reply carries stop_reason tool_use and tool_use blocks, and your code answers with tool_result blocks. A stream runs from message_start through content_block_start, content_block_delta and content_block_stop to message_delta and message_stop, and ping events may appear in between (Anthropic's Messages docs, checked 2026-12-04).

## Side-by-side: Chat Completions vs Responses vs Messages

The points that change code when you move between formats. The rows follow OpenAI's migration and reasoning guides and Anthropic's Messages API reference (all checked 2026-12-04) and describe the vendors' own APIs; what Router One accepts on each endpoint is in the sections after this one.

| Aspect | Chat Completions | Responses | Anthropic Messages |
| --- | --- | --- | --- |
| Request carries | messages array | input (a string or a list of items), optional instructions | messages array, max_tokens, optional system |
| System guidance | A system or developer message | A developer message in input, or top-level instructions for one response | Top-level system field |
| Reply | choices[], each with one message (n gives several) | A response object with an id and a typed output array; output_text helper in the SDK | A message with a content array of blocks and a stop_reason |
| Conversation state | Your code resends the history | Resend items yourself, or on OpenAI's API chain turns with previous_response_id or the Conversations API | Stateless by default: resend the full history |
| Tool definitions (tools you define) | Externally tagged under function; non-strict by default | Internally tagged; strict mode attempted when strict is omitted | name, description and input_schema |
| Tool results (tools your code runs) | A tool or function result message | A function_call_output item with the matching call_id | A tool_result block answering the tool_use block |
| Structured output | response_format | text.format | output_config.format |
| Reasoning effort | reasoning_effort | reasoning.effort | output_config.effort |
| Streaming | Chunks with a delta field | Typed events such as response.output_text.delta and response.completed | Events from message_start to message_stop, with content_block_delta in between |

- Reasoning-effort values are model-dependent, per OpenAI's reasoning guide (checked 2026-12-04). Per OpenAI's migration guide (checked 2026-12-04), starting with GPT-5.4, Chat Completions does not support tool calling with reasoning_effort values other than none.
- Storage on OpenAI's API: responses are stored by default, and chat completions are stored by default for new accounts; store: false turns storage off in either API (OpenAI's migration guide, checked 2026-12-04).

## When to use which

- Code that already works on Chat Completions can stay there: per OpenAI's migration guide (checked 2026-12-04), Chat Completions remains supported, so you can migrate one flow at a time. On Router One it is also the endpoint that serves every chat model in the catalog, so one code path reaches Claude, GPT, Gemini, Grok and DeepSeek models; GPT-6-family tool calls are the exception (next point).
- New projects on OpenAI models: OpenAI recommends Responses for all new projects (migration guide, checked 2026-12-04). On Router One, tool calls with GPT-6-family models need it: per OpenAI's reasoning guide (checked 2026-12-04), Chat Completions does not support function calling with GPT-6 Astra or GPT-6.1 Sol, and Router One's API compatibility facts send tool use with the GPT-6 and GPT-6.2 models to POST https://api.router.one/v1/responses.
- Claude-native request shapes: use Messages. Content blocks, tool_use and tool_result round trips and output_config.format are Messages features (Anthropic's docs, checked 2026-12-04), and on Router One JSON from Claude-family IDs should be requested with output_config.format on POST /v1/messages rather than response_format on Chat Completions.
- Follow your client: Codex CLI uses POST /v1/responses (wire_api = "responses") and Claude Code uses POST /v1/messages; /docs/guides/cli-setup wires both to Router One.
- Several candidate replies from one call: only Chat Completions has n. Per OpenAI's migration guide (checked 2026-12-04), Responses has no n, so make separate requests.

## Migrating from Chat Completions to Responses

OpenAI's migration guide (checked 2026-12-04) treats the move as three related changes: send requests to /v1/responses, read output from the typed output array, and choose how state is carried between turns. Its mapping and checklist, condensed:

| Chat Completions | Responses |
| --- | --- |
| messages[] | input, as a string or a list of input items |
| System or developer guidance | The first developer message in input for standing rules, or top-level instructions for one turn |
| Assistant message | An output message item; pass it back in input when you manage state yourself |
| Tool or function call | A function_call output item |
| Tool or function result | A function_call_output input item linked to the call by call_id |
| response_format | text.format |
| choices[0].message.content | response.output_text, or response.output read item by item |
| n (several generations) | Not available; make separate requests |

- Read every output item by its type: reasoning, tool and function calls are separate item types, not messages.
- When you carry context yourself, pass back the reasoning, function_call and function_call_output items too; dropping them is one of the errors OpenAI's migration guide lists (checked 2026-12-04).
- Send each function result with its matching call_id.
- Rewrite stream handlers for typed Responses events instead of reusing Chat Completions chunk handlers.
- previous_response_id does not make earlier context free: per OpenAI's migration guide (checked 2026-12-04), previous input tokens in the chain are still billed as input tokens.
- On Router One the switch happens in your code: Router One does not advertise a translation path from one wire format to another, and a model is supported only on the endpoints its page lists, so check that the model's page lists POST /v1/responses before you move a flow.

## Which endpoint each model family uses on Router One

Use the base URL https://api.router.one/v1 in the OpenAI SDK and https://api.router.one in the Anthropic SDK and Claude Code. The same sk- key works on all three endpoints as Authorization: Bearer (an x-api-key header is accepted as an equivalent). The table follows Router One's API compatibility facts (https://router.one/facts/api-compatibility.md); each model's page on /models lists exactly the endpoints that model serves, and /models.md is the machine-readable source of truth.

| Model family | POST /v1/chat/completions | POST /v1/responses | POST /v1/messages |
| --- | --- | --- | --- |
| Claude family | Served | Not served; refused with HTTP 400 before any model is called | Served (the path Claude Code uses) |
| GPT chat models | Served; send GPT-6-family tool calls to /v1/responses instead | Served (the path Codex CLI uses) | Not served; refused with HTTP 400 before any model is called |
| DeepSeek ids (deepseek-v4.1-flash, deepseek-v4-flash) | Served | Served | Served |
| Grok chat models | Served | Served | Not served; refused with HTTP 400 before any model is called |
| Other chat models in the catalog | Served | Not listed; no particular result or error is promised | Not served; refused with HTTP 400 before any model is called |

- Both refusals carry a message that names the path to use: a Claude-family ID on POST /v1/responses gets model '<id>' must be called via /v1/messages or /v1/chat/completions, and a chat-model ID outside the Claude and DeepSeek families on POST /v1/messages gets model '<id>' must be called via /v1/chat/completions. Both are HTTP 400 invalid_request_error.
- Router One promises no particular result or error for any other ID sent to an endpoint its page does not list, so call each model only on the endpoints listed there.
- A request refused at these checks never reaches a model, so it leaves no record in Dashboard → Logs; keep the status, error code and X-Request-ID your client received. Each request the gateway forwards to a model is recorded there with the model, tokens, the wallet charge or plan quota used, total time and status code, whichever endpoint it came through (a streamed request that fails before any output may have no record).
- Router One makes no cross-protocol promise: a model is supported only on the endpoints its page lists, and Router One does not advertise a translation path from one wire format to another.

## What each endpoint accepts and rejects on Router One

- POST /v1/responses accepts text and multi-part input, instructions, streaming and function tools on every model it serves. It refuses with HTTP 400 invalid_request_error, before any model is called, the image_generation tool and image_generation_call input items (use POST /v1/images/generations instead) and background: true. The full feature list, including features accepted only on some models, is on https://router.one/codex-responses-api and in the API reference at /docs/chat/createResponse.
- POST /v1/messages accepts text and multi-part input, streaming, and tools defined with input_schema (tool_use and tool_result blocks round-trip) on every model it serves. Its error bodies use the Anthropic envelope {"type":"error","error":{type,message,code}} rather than the OpenAI {"error":{…}} shape the other endpoints use; a 402 whose message starts with "insufficient balance" or "api key" carries no code on this endpoint, so read its message.
- POST /v1/chat/completions accepts response_format with json_object or json_schema. Router One checks the json_schema envelope before any model is called and does not validate replies against the schema; whether the schema is enforced is up to the model.
- Output caps: max_completion_tokens or max_tokens on Chat Completions (when both are sent, max_completion_tokens wins), max_output_tokens on Responses, and max_tokens on Messages.

## The same request on each endpoint

One question in three wire formats, sent with one key. The model IDs are examples from the catalog; swap in any model whose page lists that endpoint.

`three-endpoints.sh`

```bash
# Chat Completions: any chat model in the catalog
curl https://api.router.one/v1/chat/completions \
  -H "Authorization: Bearer $ROUTER_ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4.1-flash",
    "messages": [
      {"role": "system", "content": "Answer in one sentence."},
      {"role": "user", "content": "What is an API gateway?"}
    ]
  }'

# Responses: a model whose page lists POST /v1/responses
curl https://api.router.one/v1/responses \
  -H "Authorization: Bearer $ROUTER_ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-6.2-sol",
    "instructions": "Answer in one sentence.",
    "input": "What is an API gateway?"
  }'

# Messages: a Claude-family model or a DeepSeek id
curl https://api.router.one/v1/messages \
  -H "Authorization: Bearer $ROUTER_ONE_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-5.5",
    "max_tokens": 1024,
    "system": "Answer in one sentence.",
    "messages": [{"role": "user", "content": "What is an API gateway?"}]
  }'
```

## Tool calls with GPT-6 models: send them to /v1/responses

This is the request shape for a function tool on POST /v1/responses: the definition is internally tagged, so type, name, description and parameters sit at the top level. When the model calls the tool, the output array holds a function_call item with a call_id and JSON arguments; per OpenAI's migration guide (checked 2026-12-04), your code runs the function and sends the result back as a function_call_output item with the same call_id, together with the earlier items. Do not send this tools array to a GPT-6 model on Chat Completions.

`responses-tool-call.sh`

```bash
curl https://api.router.one/v1/responses \
  -H "Authorization: Bearer $ROUTER_ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-6.2-sol",
    "input": "Where is order 1042?",
    "tools": [{
      "type": "function",
      "name": "get_order_status",
      "description": "Look up the status of an order by its id.",
      "parameters": {
        "type": "object",
        "properties": {"order_id": {"type": "string"}},
        "required": ["order_id"],
        "additionalProperties": false
      }
    }]
  }'
```

## FAQ

### What is the Responses API?

It is OpenAI's request format at POST /v1/responses: you send input, a string or a list of items, plus optional instructions, and get back a response object with a typed output array. OpenAI's migration guide (checked 2026-12-04) describes it as an evolution of Chat Completions and recommends it for all new projects. On Router One it is served at POST https://api.router.one/v1/responses for GPT chat models, DeepSeek ids and Grok chat models, and it is the path Codex CLI uses.

### What is the difference between the Responses API and Chat Completions?

Shape and state. Chat Completions sends a messages array and returns choices; Responses sends input items and returns a typed output array in which reasoning, function calls and messages are separate items. Tools are defined differently (externally tagged on Chat Completions, internally tagged on Responses), structured output moves from response_format to text.format, streams change from delta chunks to typed events, and on OpenAI's API Responses can keep state with previous_response_id or the Conversations API while Chat Completions leaves the transcript to your code (all per OpenAI's migration guide, checked 2026-12-04).

### Is Chat Completions deprecated?

No. Per OpenAI's migration guide (checked 2026-12-04), Chat Completions remains supported, Responses is recommended for all new projects, and OpenAI suggests moving flows over time, one at a time. What OpenAI did retire is the Assistants API: per the same guide (checked 2026-12-04), it was sunset on August 26, 2026 and is no longer available.

### How is Anthropic's Messages API different from the Responses API?

They come from different vendors and differ in shape. Per Anthropic's docs (checked 2026-12-04), Messages requires max_tokens, takes alternating user and assistant turns with an optional top-level system field, returns content blocks with a stop_reason, takes tools you define with an input_schema and expects tool_result blocks in answer to their tool_use blocks, and is stateless by default. Responses takes input items and instructions, returns a typed output array, and links function_call_output items by call_id. On Router One, Messages serves the Claude-family models and DeepSeek ids, Responses serves GPT chat models, DeepSeek ids and Grok chat models, and the DeepSeek ids are the ones listed on both.

### Can I rely on Router One to convert Chat Completions requests to Responses or Messages?

No. Router One makes no cross-protocol promise: a model is supported only on the endpoints its page lists, and Router One does not advertise a translation path from one wire format to another. Chat Completions code can already call every chat model in the catalog, Claude-family models included, on POST /v1/chat/completions; GPT-6-family tool calls are the exception and go to POST /v1/responses. To move a flow from Chat Completions to Responses, change the request in your code (the mapping above follows OpenAI's migration guide, checked 2026-12-04) and pick a model whose page lists POST /v1/responses.

### Why do GPT-6 tool calls have to go to /v1/responses?

Router One's API compatibility facts send tool use with GPT-6-family models to POST https://api.router.one/v1/responses. For GPT-6 Astra and GPT-6.1 Sol, that is also OpenAI's own rule: per OpenAI's reasoning guide (checked 2026-12-04), Chat Completions does not support function calling with either model, and the migration guide (checked 2026-12-04) says both require the Responses API for tool calling. A request without tools can go to either endpoint the model's page lists.

### Does DeepSeek support the Responses API?

DeepSeek's own API does. Per DeepSeek's Responses API guide (checked 2026-12-04), it added the Responses format so DeepSeek models can be used in Codex, and it describes a stateless API: previous_response_id and conversation are not supported, store is always false, background is not supported, and unsupported parameters are silently ignored rather than rejected, while text.format is fully supported and a stream ends with response.completed, response.incomplete or response.failed instead of a data: [DONE] message. On Router One the model field takes a catalog id, deepseek-v4.1-flash or deepseek-v4-flash, and both are served on all three endpoints: POST /v1/chat/completions, /v1/messages and /v1/responses.

### Where do structured output and reasoning effort go in each format?

Structured output: response_format on Chat Completions and text.format on Responses (OpenAI's migration guide), output_config.format on Messages (Anthropic's Messages API reference); both checked 2026-12-04. Reasoning effort: reasoning_effort on Chat Completions and reasoning.effort on Responses, with model-dependent values (OpenAI's reasoning guide), and output_config.effort on Messages (Anthropic's reference); both checked 2026-12-04. On Router One, ask Claude-family IDs for JSON with output_config.format on POST /v1/messages rather than response_format on Chat Completions.

### What happens if I call a model on an endpoint that does not serve it?

Two mismatches are refused with HTTP 400 invalid_request_error before any model is called, and the message names the path to use: a Claude-family ID on POST /v1/responses gets model '<id>' must be called via /v1/messages or /v1/chat/completions, and a chat-model ID outside the Claude and DeepSeek families on POST /v1/messages gets model '<id>' must be called via /v1/chat/completions. Neither of these refusals leaves a record in Dashboard → Logs. For any other pairing Router One promises no particular result or error, so check the model's page for the endpoints it lists.

## See also

- Codex CLI Responses API: https://router.one/codex-responses-api
- LLM tool calling: https://router.one/llm-tool-calling
- LLM structured outputs: https://router.one/llm-structured-outputs
- LLM streaming: https://router.one/llm-streaming
- OpenAI-compatible API: https://router.one/openai-compatible-api
- Responses API reference (POST /v1/responses): https://router.one/docs/chat/createResponse
- Chat Completions API reference: https://router.one/docs/chat/createChatCompletion
- Messages API reference: https://router.one/docs/chat/createMessage
- Claude Code and Codex CLI setup: https://router.one/docs/guides/cli-setup
- Canonical page: https://router.one/responses-api-vs-chat-completions
- Models and per-model token rates: https://router.one/models (markdown: https://router.one/models.md)
- Pricing: https://router.one/pricing
- API docs (markdown): https://router.one/docs.md
- Company facts: https://router.one/facts/company.md
