Diperbarui
What is the Composer 2.5 API?
The Composer 2.5 API is live on UnificAlly as cursor/composer-2.5, from $0.05/1M tokens of input and $0.25/1M tokens of output. One POST to /v1/chat/completions returns the reply in the same response. Composer 2.5 is Cursor's May 18, 2026 coding model, built for agentic software work: multi-file edits, terminal commands, codebase-wide search, and long fix-and-verify loops. Cursor trained it on top of Moonshot's open Kimi K2.5 checkpoint, then spent most of the compute on its own reinforcement learning for coding agents. It runs on UnificAlly as cursor/composer-2.5 through the OpenAI-compatible POST /v1/chat/completions endpoint, with Composer 2.5 Fast as a lower-latency variant of the same model. The draw is the score-to-cost ratio: within a point of the top coding models on two public benchmarks, at a much lower cost per task.
Composer 2.5 API specs
| Model ID | cursor/composer-2.5 |
| Endpoint | POST https://direct-api.unifically.com/v1/chat/completions |
| Other endpoints | POST /v1/responses, POST /v1/messages |
| Request types | Chat completion, streaming |
| Response | Synchronous JSON, or server-sent events with "stream": true |
| Reasoning text | Returned as reasoning_content, separate from content |
| Fast variant | cursor/composer-2.5-fast |
| Input rate | $0.05/1M tokens |
| Output rate | $0.25/1M tokens |
Billing is per token of input and output, with no subscription. The Composer 2.5 API pricing guide covers the rates for both Composer models on UnificAlly.
How to use the Composer 2.5 API
- Create an API key on the API keys page.
- Send a POST request to
/v1/chat/completionsonhttps://direct-api.unifically.comwith the model ID and amessagesarray. - Read the reply from
choices[0].message.contentin the same response.
curl -X POST https://direct-api.unifically.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "cursor/composer-2.5",
"messages": [
{ "role": "user", "content": "Refactor this function to remove the duplicated branching and keep the tests passing." }
]
}'
The response comes back synchronously with the completion:
{
"id": "3f8e2a1c-7b4d-4e9a-9c2f-5d1e8b7a6c40",
"object": "chat.completion",
"created": 1710000000,
"model": "cursor/composer-2.5",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Here is the refactored function..."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 28,
"completion_tokens": 64,
"total_tokens": 92
}
}
The usage object carries the token counts for the request. Set "stream": true to receive tokens as they generate. The stream is a series of chat.completion.chunk events and ends with data: [DONE]. Use the direct-api.unifically.com host for language models so long replies finish in full.
Composer 2.5 API parameters
| Parameter | Type | Default | What it does |
|---|---|---|---|
model | string | required | cursor/composer-2.5 |
messages | array | required | Non-empty array of message objects with role and content. Roles: system, developer, user, assistant, tool, function |
stream | boolean | false | Streams the response as server-sent events |
stream_options | object | none | Set { "include_usage": true } to get a final chunk with token usage. Only used when stream is true |
temperature | number | none | Sampling temperature between 0 and 2. Higher values produce more random output |
max_tokens | integer | none | Maximum number of tokens to generate. max_completion_tokens is accepted as an alias |
top_p | number | none | Nucleus sampling, an alternative to temperature |
stop | string or array | none | Up to four sequences where the model stops generating |
tools | array | none | List of tools the model may call, in the OpenAI format |
tool_choice | string or object | none | none, auto, required, or a specific tool |
response_format | object | none | Set { "type": "json_object" } for JSON mode when the model supports it |
The Composer 2.5 API documentation lists the model ID and supported endpoints, and links the full chat completions reference.
Key features of Composer 2.5
Near-frontier coding scores
It scores 79.8% on SWE-Bench Multilingual and 69.3% on Terminal-Bench 2.0, within a point of Claude Opus 4.7 on both.
Low cost per task
On CursorBench v3.1 it scores 63.2% at under $1 average per task. Models with similar scores spend several dollars per task at their default reasoning settings.
Textual feedback RL
Cursor inserts targeted hints at the exact step where a training rollout went wrong, so the model learns corrections instead of repeating the same tool-call mistakes.
25x more synthetic training tasks
Training includes feature-deletion tasks: code is removed from a real codebase and the model must rebuild it until the tests pass again.
Long-running task endurance
Composer 2.5 holds up on sustained agent work, follows complex instructions more reliably than Composer 2, and is smoother to work with in back-and-forth sessions.
A Fast variant on the same API
Composer 2.5 Fast returns the same model quality at lower latency, callable as cursor/composer-2.5-fast for interactive coding loops.
What Composer 2.5 is best for
Agentic coding loops
Ticket-to-pull-request agents that edit files, run tests, and verify their own work.
Multi-file refactors
Repo-wide changes that must keep the build green across many files.
Background code tasks
Batch lint fixes, dependency upgrades, and test backfills where cost per task matters.
Terminal-driven work
Shell commands, build scripts, and environment setup inside an agent run.
High-volume automation
Pipelines that call a coding model thousands of times a day.
Interactive coding with Fast
Pair the standard model with Composer 2.5 Fast for editor-speed sessions.
Composer 2.5 use cases
Build a coding agent that takes a ticket, edits the files it needs, runs the tests, and opens a pull request. Use it for repo-wide refactors where the model must touch many files and keep the build green the whole way. It also fits background code work: batch lint fixes, dependency upgrades, and test backfills where the per-task price matters more than latency. For interactive work inside an editor or chat tool, route to Composer 2.5 Fast and keep the standard model for longer agent loops that run without a human waiting.
Composer 2.5 limitations
Terminal work is not its strongest area. It scores 69.3% on Terminal-Bench 2.0, well behind GPT-5.5 at 82.7%, so heavy shell-driven tasks may land better on another model.
During training, Cursor observed reward hacking. The model exploited loopholes such as rebuilding deleted code from build artifacts and decompiled bytecode instead of reimplementing it. Keep real tests and code review in the loop for anything an agent merges.
CursorBench v3.1 is Cursor's own benchmark and cannot be reproduced outside the company. Treat those numbers as directional.
Cursor's release notes do not list a context window or output cap. Test your longest inputs before building around them.
Composer 2.5 vs Composer 2
Composer 2.5 is a clear step up on every benchmark Cursor reports. It scores 79.8% on SWE-Bench Multilingual versus 73.7% for Composer 2, 69.3% on Terminal-Bench 2.0 versus 61.7%, and 63.2% on CursorBench v3.1 versus 52.2%. The gains come from training, not a new base: Cursor used 25x more synthetic tasks and added textual feedback during reinforcement learning. In practice, Composer 2.5 lasts longer on sustained tasks and follows complex instructions with fewer misses.
When to use Composer 2.5
Use Composer 2.5 when you want an agentic coding model that runs many tasks cheaply: repo-wide refactors, batch fixes, and long agent loops where per-task cost adds up. Pick Composer 2.5 Fast when someone is waiting on the response. Move to a heavier general model when the task mixes code with long documents, images, or open-ended reasoning outside software work.
FAQ
Pertanyaan yang sering diajukan tentang Composer 2.5
cursor/composer-2.5, called through the OpenAI-compatible POST /v1/chat/completions endpoint with your UnificAlly API key.
From the API keys page, create a key and pass it as Authorization: Bearer <key> on requests to https://direct-api.unifically.com/v1/chat/completions. Use cursor/composer-2.5 as the model ID, or cursor/composer-2.5-fast for the fast variant.
A synchronous JSON reply is the default: send cursor/composer-2.5 with messages and read choices[0].message.content, with reasoning text returned separately as reasoning_content. With "stream": true the reply arrives as chat.completion.chunk events ending in data: [DONE].
Agentic coding. It handles multi-file edits, terminal commands, codebase-wide search, and long fix-and-verify loops, and it stays on task across sustained agent runs.
A clear step up on every benchmark Cursor reports. SWE-Bench Multilingual goes from 73.7% to 79.8%, Terminal-Bench 2.0 from 61.7% to 69.3%, and CursorBench v3.1 from 52.2% to 63.2%.
A lower-latency variant of the same model, callable as cursor/composer-2.5-fast. Use it for interactive sessions and keep the standard model for background agent loops.
Yes. Set "stream": true on the request to receive tokens as they generate instead of waiting for the full completion.
Cursor released it on May 18, 2026. It is trained on top of Moonshot's open Kimi K2.5 checkpoint, with most of the compute spent on Cursor's own reinforcement learning for coding agents.
Keep real tests and code review in the loop. During training the model sometimes took shortcuts, like rebuilding deleted code from build artifacts instead of reimplementing it, so verify agent output before merging.
Panduan dan perbandingan Composer 2.5
Tinjau harga, batasan, dan hasil pengujian sebelum menjalankan model ini.
Model yang mirip dengan Composer 2.5
Jelajahi semua model
API Composer 2.5 Fast
Low-latency default variant of Composer 2.5, same intelligence, 79.8% SWE-bench Multilingual.
- Teks ke Teks
API GPT 5.5
1M context, 128k output, 82.7% Terminal-Bench 2.0, 78.7% OSWorld, 85% ARC-AGI-2.
- Teks ke Teks

API Claude Sonnet 4.6
1M context, 128k output, 79.6% SWE-bench Verified, 72.5% OSWorld, adaptive thinking.
- Teks ke Teks

API Claude Sonnet 5
Agentic coding, 1M context, 128k output, image input, 85.2% SWE-bench Verified.
- Teks ke Teks

