Chat Completions
OpenAI Chat Completions API compatibility endpoint for Cursor, Opencode, and other clients
Overview
OpenAI Chat Completions API compatibility endpoint. Use Concentrate as a drop-in replacement for OpenAI in any tool or SDK that supports configurable base URLs.Body
A list of messages comprising the conversation so far.
1- System Message
- User Message
- Assistant Message
- Tool Message
Model identifier. Use /v1/models to list all available models. Supports canonical names (e.g. gpt-5.2, claude-opus-4-6), aliases, and provider-prefixed formats (e.g. openai/gpt-5.2). Use "auto" for automatic model selection.
Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
-2 <= x <= 2Deprecated in favor of the tool_calls parameter. Will be converted to tool_choice. Using tool_choice will overwrite this.
none, auto Deprecated in favor of the tools parameter. Will be converted to tools when used.
Unsupported. Modify the likelihood of specified tokens appearing in the completion.
Whether to return log probabilities of the output tokens. If true, logprobs will be included in the response.
The maximum number of tokens that can be generated in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length.
x > 0Deprecated, use max_completion_tokens instead.
x > 0Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format.
Unsupported. A list of modalities that the model supports. The model will use these modalities when processing the request.
1 - 2 elementstext, audio Unsupported. How many chat completion choices to generate for each input message.
1 <= x <= 128Whether to enable parallel function calling during tool use.
Unsupported. Specifies the model should predict a specified content, then continue generating naturally.
Unsupported. Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
-2 <= x <= 2Optional custom identifier for managing prompt cache entries.
OpenAI prompt-cache behavior for this request.
The legacy OpenAI prompt-cache retention policy. Earlier OpenAI models use this field for in-memory or 24-hour retention. GPT-5.6 and later use prompt_cache_options.ttl instead.
in-memory, in_memory, 24h Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. Not all models support all reasoning levels. If your requested reasoning level isn't supported by the model, Concentrate bumps it up, then down, to the closest reasoning level.
none, minimal, low, medium, high, xhigh, max An object specifying the format that the model must output.
- Text Format
- JSON Schema Format
- JSON Object Format
Unique identifier to help detect when content may violate usage policies.
Unsupported. If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
Specifies which tier to use for processing the request.
auto, default, flex, scale, priority Unsupported. Up to 4 sequences where the API will stop generating further tokens.
If true, the model's response will be stored for reuse by other requests.
If true, partial message deltas will be sent. Tokens will be sent as data-only server-sent events as they become available.
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
0 <= x <= 2Controls which (if any) function is called by the model.
none, auto, required A list of tools the model may call.
- Function Tool
- Custom Tool
An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability.
0 <= x <= 20An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
0 <= x <= 1A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
Constrains the verbosity of the model's response. Lower values will result in more concise responses, while higher values will result in more verbose responses. Currently supported values are low, medium, and high.
low, medium, high Options for web search integration.
Concentrate routing configuration controlling how requests are routed across models and providers. Learn more about routing.
Response
Default Response
The model used for the chat completion.
The Unix timestamp (in seconds) of when the chat completion was created.
x >= 0The object type, which is always 'chat.completion' or 'chat.completion.chunk'.
A list of chat completion choices. Can contain more than one if n is greater than 1.
Usage statistics for the completion request.
The cost of the completion request.
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format.
Specifies the processing type used for serving the request. Determines the pricing and performance tier used to process the request. When not set, the default behavior is auto. Currently unsupported, but included for compatibility.
auto, default, flex, scale, priority