Chat Completions API
Getting Started
Chat Completions API
OpenAI-compatible chat completions for all supported LLM models
POST
Chat Completions API
The
Each chunk is a
See individual model pages under LLM Models for details.
/v1/chat/completions endpoint provides an OpenAI-compatible interface for text generation. Use the same request format as the OpenAI Chat Completions API — swap the base URL to https://api.unifically.com and pass any supported model ID in the model field.
All LLM models support this endpoint, including Cursor, OpenAI, and Anthropic models.
Create Chat Completion
POST/v1/chat/completions
Request
Request Parameters
Model identifier in
provider/model-name format. See Available LLM Models.Array of message objects with
role (system, user, or assistant) and content (string or content parts array).If
true, the response is streamed using server-sent events. Default: false.Sampling temperature between
0 and 2. Higher values produce more random output.Maximum number of tokens to generate in the completion.
Nucleus sampling parameter. Alternative to temperature.
Up to four sequences where the model stops generating further tokens.
List of tools the model may call. Each tool requires a
type and function definition.Controls which (if any) tool is called. Options:
none, auto, required, or a specific tool.Set
{ "type": "json_object" } to enable JSON mode when supported by the model.Response
Streaming Response
Whenstream: true, the API returns text/event-stream chunks in OpenAI format:
data: line containing a partial completion object, ending with data: [DONE].
Supported Models
| Model | Provider |
|---|---|
cursor/composer-2.5 | Cursor |
cursor/composer-2.5-fast | Cursor |
openai/gpt-5.4-mini | OpenAI |
openai/gpt-5.4-nano | OpenAI |
openai/gpt-5.4 | OpenAI |
openai/gpt-5.5 | OpenAI |
anthropic/claude-sonnet-4-6 | Anthropic |
anthropic/claude-opus-4-6 | Anthropic |
anthropic/claude-opus-4-7 | Anthropic |
anthropic/claude-opus-4-8 | Anthropic |
