POST /v1/chat/completions
The primary chat endpoint. Fully OpenAI compatible. Base URLMinimal example
Authentication
Streaming
data: [DONE].
Tool calling (function calling)
Request:tool_calls. You then send back a tool role message with tool_call_id.
Openference passes these through (or converts) automatically.
Reasoning / thinking
Many models return chain-of-thought in a separatereasoning_content field
(alongside content). To control thinking, send standard OpenAI or Anthropic
fields — Openference translates them for the model you chose:
reasoning_effort or thinking alone is usually sufficient. Use
GET /v1/models to read reasoning.supported and reasoning.supported_efforts
for each model ID — effort vocabularies differ (for example DeepSeek Pro
supports max and high; DeepSeek Flash also supports low).
Reasoning tokens are billed at the model’s output rate. See
Reasoning metadata on GET /v1/models
for the full model reference table.