Speed
Output tokens / second
Custom pricing for production workloads
LongCat-2.0 is Meituan's trillion-parameter agentic MoE model with a 1M-token context window and up to 128K output tokens. It supports native tool calling and multi-step reasoning.
LongCat 2.0 API combines long-context reasoning, native tool use, and multi-step agentic workflows with prompt caching support.
meituan/longcat-2.0https://api.aimlapi.com/v1LongCat 2.0 is Meituan's trillion-parameter Mixture-of-Experts (MoE) model built for long-context agentic tasks. It features a 1M-token context window and supports up to 128K output tokens, making it one of the most capable models for document-heavy and multi-step workflows.
The model supports native tool calling, deep reasoning mode (thinking), and prompt caching for cost-efficient high-volume workloads.
Long-context document processing
Pass full contracts, research papers, or codebases in a single prompt. The 1M context window eliminates chunking and cross-reference issues.
Agentic workflows and tool calling
With native function calling and multi-step reasoning, LongCat 2.0 can plan, call tools, process results, and iterate without losing track of the original goal.
Code understanding, repository-level edits, automated task execution, and agentic workflows are explicitly described as strengths of LongCat-2.0.
It is also documented as suited to whole-repository reasoning and other coding-agent tasks that involve large codebases and cross-file dependencies.
The model is described as a fit for multi-step terminal work, where it can run commands, read errors, and retry until a task passes.
It is additionally presented as useful for research and analysis workflows, including autonomous searching, cross-referencing, structured review generation, and business insight analysis.
See how LongCat 2.0 compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 20 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.75 | 1M tokens |
| Output | $2.95 | 1M tokens |
| Cached input | $0.015 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.75 | $2.95 | |
| $0.5 | $3 | |
| $0.5 | $3 | |
| $0.5 | $3 | |
| $0.5 | $3 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "meituan/longcat-2.0",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "meituan/longcat-2.0",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "meituan/longcat-2.0",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());LongCat 2.0 has a 1,000,000 tokens context window and can return up to 128,000 tokens.
LongCat 2.0 takes text as input and returns text.
Use meituan/longcat-2.0 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
LongCat 2.0 costs $0.75 input and $2.95 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, LongCat 2.0 can stream responses as they are generated.
LongCat 2.0 was built by Meituan.