APIs and setup

Chat Completions API

The Chat Completions API is OpenAI's API for chat models: a request sends a list of messages, each with a role, and the answer is the model's next message. Most AI tools speak its format.

Also called /v1/chat/completions, OpenAI chat format

Checked November 29, 2026

At a glance

Endpoint
POST /v1/chat/completions
Input
messages, each with a role
Output
choices[0].message
State
None: send the whole conversation every time
Usage fields
prompt_tokens, completion_tokens, total_tokens
On /model
Cursor, Cline and most apps call it; errors in OpenAI's format

A request is POST /v1/chat/completions with a model and messages. Each message has a role: system or developer for the app's instructions, user for the person, assistant for the model's earlier answers, and tool for a function's result. The answer is in choices[0].message, and usage counts prompt_tokens and completion_tokens.

No memory between requests

The API keeps no conversation for you: in Chat Completions, conversation state is managed by your app (OpenAI). Each request carries the whole conversation, the model's earlier answers included, which is why a long chat costs more input tokens with every turn.

Chat Completions or Responses?

OpenAI calls its Responses API an evolution of Chat Completions and recommends it for new projects, while Chat Completions remains supported (OpenAI). Most other tools still send Chat Completions; OpenAI's Codex CLI sends Responses.

Chat Completions on /model

https://api.slashmodel.com/v1/chat/completions takes the OpenAI Chat Completions format, which Cursor, Cline and most apps call (Endpoints). Errors come back in OpenAI's format, so the SDKs raise their usual exceptions (Errors). A stream reports usage only if you set stream_options.include_usage (Streaming).

A chat completion with curl
curl https://api.slashmodel.com/v1/chat/completions \
  -H "Authorization: Bearer $SLASHMODEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6.1-sol",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Where it applies on /model

Questions

Is the Chat Completions API deprecated?

No. OpenAI recommends the Responses API for new projects, but Chat Completions remains supported, and it is still the format most tools use.

Which models answer on Chat Completions on /model?

Models on each API shows the models on each API now, and GET /v1/models lists each model's endpoints.

Sources

The makers' own pages, each opened on November 29, 2026.

One key for every model here.

Top up from $10, change one URL, and pay only for the tokens you use.