Messages API
Getting Started
Messages API
Anthropic Messages-compatible API for all supported LLM models
POST
Messages API
The
See individual model pages under LLM Models for details.
/v1/messages endpoint provides an Anthropic Messages API-compatible interface for text generation. Use the same request format as the Anthropic Messages 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 Message
POST/v1/messages
Request
Request Parameters
Model identifier in
provider/model-name format. See Available LLM Models.Maximum number of tokens to generate before stopping.
Array of message objects with
role (user or assistant) and content (string or content blocks array).System prompt providing context and instructions to the model.
If
true, the response is streamed using server-sent events. Default: false.Sampling temperature between
0 and 1.Nucleus sampling parameter. Use either
temperature or top_p, not both.Custom sequences that cause the model to stop generating.
Definitions of tools the model may use. Each tool includes
name, description, and input_schema.Controls tool usage. Default:
{ "type": "auto" }.System Prompt Example
Response
Streaming Response
Whenstream: true, the API returns text/event-stream with Anthropic-compatible event types (message_start, content_block_delta, message_stop, etc.):
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 |
