LongCat 2.0 API

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.

Modalities
TextText
In / Out price
$0.75/$2.95per 1M
Context window
1M tokens
Released
Jun 30, 2026

LongCat 2.0 overview

LongCat 2.0 by Meituan

LongCat 2.0 API combines long-context reasoning, native tool use, and multi-step agentic workflows with prompt caching support.

LongCat 2.0 specs

Model ID
meituan/longcat-2.0
Developer
Meituan
Context window
1,000,000 tokens
Max output
128,000 tokens
Input
Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

LongCat 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.

Use cases

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.

Capabilities

  • Reasoning
  • Function calling
  • Structured outputs

LongCat 2.0 benchmarks by Artificial Analysis

See how LongCat 2.0 compares in generation speed and latency. Data retrieved Nov 3, 2026.

Speed

Output tokens / second

Benchmark results

Compare 20 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

LongCat 2.0 API pricing

LongCat 2.0 pricing in US dollars
UsagePriceUnit
Input$0.751M tokens
Output$2.951M tokens
Cached input$0.0151M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

LongCat 2.0 vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
LongCat 2.0$0.75$2.95
Dola-Seed 2.0 Pro$0.5$3
Dola-Seed 2.0 Code$0.5$3
Dola-Seed-2.0 Code$0.5$3
Gemini 3 Flash$0.5$3

How to use the LongCat 2.0 API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

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."
    }
  ]
}'

Related articles

All posts

LongCat 2.0 FAQ

What is the context window of LongCat 2.0?

LongCat 2.0 has a 1,000,000 tokens context window and can return up to 128,000 tokens.

What inputs and outputs does LongCat 2.0 support?

LongCat 2.0 takes text as input and returns text.

What is the model ID for LongCat 2.0?

Use meituan/longcat-2.0 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

How much does LongCat 2.0 cost?

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.

Does LongCat 2.0 support streaming?

Yes, LongCat 2.0 can stream responses as they are generated.

Who created LongCat 2.0?

LongCat 2.0 was built by Meituan.

Start building with LongCat 2.0

LongCat 2.0 API

meituan/longcat-2.0

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

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."
    }
  ]
}'