Skip to main content
POST
Chat Completions API
The /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

string
required
Model identifier in provider/model-name format. See Available LLM Models.
array
required
Array of message objects with role (system, user, or assistant) and content (string or content parts array).
boolean
If true, the response is streamed using server-sent events. Default: false.
number
Sampling temperature between 0 and 2. Higher values produce more random output.
integer
Maximum number of tokens to generate in the completion.
number
Nucleus sampling parameter. Alternative to temperature.
string | array
Up to four sequences where the model stops generating further tokens.
array
List of tools the model may call. Each tool requires a type and function definition.
string | object
Controls which (if any) tool is called. Options: none, auto, required, or a specific tool.
object
Set { "type": "json_object" } to enable JSON mode when supported by the model.

Response

Streaming Response

When stream: true, the API returns text/event-stream chunks in OpenAI format:
Each chunk is a data: line containing a partial completion object, ending with data: [DONE].

Supported Models

See individual model pages under LLM Models for details.

SDK Compatibility

Point any OpenAI SDK at Unifically by changing the base URL: