Meituan LongCat-2.5 Vision Open Weights (MIT): Local vLLM vs Hosted API Pricing
Deploy Meituan's MIT-licensed LongCat-2.5 Vision open weights (1.6T MoE, 48B active) with vLLM or SGLang, check BF16/FP8/W4A4 VRAM requirements.
Summary
- Meituan released the full 1.8 TB open-weight checkpoint for LongCat-2.5 on November 9, 2026 under a permissive MIT License on Hugging Face and ModelScope.
- While only 48B parameters activate per token, VRAM scales with the full 1.6T parameter count: you need ~3.2 TB VRAM for BF16, ~1.6 TB for FP8.
- You can serve an OpenAI-compatible multimodal endpoint locally using vLLM or SGLang-FluentLLM and control chain-of-thought output via extra_body.
- As of 2026-11-11, Meituan's hosted API is priced at $0.30/1M uncached input, $0.006/1M cached input, $1.20/1M output (~$0.11/1M blended for agent workflows).
On November 9, 2026, Meituan published the full open weights for LongCat-2.5 on Hugging Face (meituan-longcat/LongCat-2.5) and ModelScope under the MIT License. When I published our earlier guide on Meituan LongCat-2.5 API pricing, 1M context rules, and temperature settings on November 3, the model was only accessible through Meituan's hosted platform. Now that the 1.8 TB checkpoint is publicly downloadable with zero commercial licensing restrictions, engineering teams have a real choice: spin up a private OpenAI-compatible vision and coding endpoint on their own GPUs, or keep paying Meituan's hosted token rates.
Having gone through the model card, the quantization specs, and the cluster math, I want to save you from an expensive hardware miscalculation right at the start. Many developers read "48 billion active parameters" in the release notes and assume they can fit LongCat-2.5 onto a single workstation or an 8x24GB server. You cannot. LongCat-2.5 is a 1.6-trillion-parameter sparse Mixture-of-Experts (MoE) model. Even quantized down to 4-bit weights and activations (W4A4), the weights alone occupy roughly 800 GB of VRAM, forcing you across multiple multi-GPU nodes before you process a single screenshot.
Below, I break down what is actually inside the LongCat-2.5 Vision checkpoint, the exact VRAM footprint across BF16, FP8, and W4A4 precisions, how to launch a local /v1/chat/completions vision server with vLLM or SGLang, and the exact monthly token volume required to justify self-hosting over calling the $0.30 / $1.20 hosted API.
On this page
What Changed in the November 9 Open-Weights Release
LongCat-2.5 is the first flagship in Meituan's LongCat lineup to fold visual understanding directly into the primary language backbone rather than shipping vision as a separate adapter model. It retains the 1.6-trillion total parameter scale of LongCat-2.0 (~48B active per token) alongside a native 1,048,576-token (1M) context window and a 131,072-token (128K) maximum output limit.
| Specification | LongCat-2.5 Open Weights (meituan-longcat/LongCat-2.5) |
|---|---|
| Open-Weights Release Date | November 9, 2026 |
| License | MIT License (commercial use, modification, and redistribution permitted) |
| Checkpoint Size on Disk | ~1.8 TB |
| Architecture | Sparse Mixture-of-Experts (MoE): 1.6T total parameters, ~48B active per token |
| Context Window / Max Output | 1,048,576 tokens (1M native) / 131,072 tokens (128K) |
| Input / Output Modalities | Text + Image / Video (via native discrete visual tokens) in; Text out |
| Vision Architecture | DiNA / dNaViT discrete visual tokenization (Semantic-and-Aligned Encoder + multi-level RVQ) |
| Supported API Protocols | OpenAI Chat Completions (/openai/v1) and Anthropic Messages (/anthropic/v1) |
| Supported Agent Harnesses | Claude Code, OpenAI Codex, OpenCode, Kilo Code, Hermes, OpenClaw |
How Native Discrete Visual Tokenization Works in Practice
Most open-weight vision-language models bolt a frozen vision encoder (like SigLIP or ViT) onto a text LLM using a projection MLP. When you serve those models at scale, the vision encoder creates an awkward compute bottleneck at the prefill stage and complicates pipeline parallelism across GPU ranks.
As detailed in Meituan's technical report, LongCat-2.5 drops the external adapter architecture in favor of native visual primitive modeling (the DiNA / dNaViT lineage). A fixed Semantic-and-Aligned Encoder (SAE) extracts native-resolution features from an image, and multi-level Residual Vector Quantization (RVQ) converts those features into discrete integer token IDs from a shared codebook. Using stacked residual quantization levels preserves both high-level layout semantics and fine UI text textures without losing detail to a coarse single-level codebook.
For developers deploying or calling the model, this design has two concrete advantages. First, because the visual tokenizer is fixed, images are converted into standard token IDs before they ever hit the main transformer layers. The 1.6T MoE backbone only sees a unified stream of integer IDs, which makes sequence packing and load balancing across data-parallel and expert-parallel GPU ranks predictable. Second, the visual embeddings were trained jointly with the language backbone. When you pass a screenshot of a broken checkout button or a 3D viewport render alongside a repository tree, the model processes the visual layout and the source code inside the same reasoning loop.
Where LongCat-2.5 Stands on Coding and Vision Benchmarks
Before you provision hardware or rewrite your agent routing, it helps to look at where this checkpoint actually performs relative to both its predecessor and current proprietary models.
| Benchmark | Task Category | LongCat-2.5 | LongCat-2.0 | DeepSeek-V4.1-Flash | GPT-5.6 Sol / GPT-6.1 Sol | Claude Opus 5 / Opus 5.5 |
|---|---|---|---|---|---|---|
| Terminal Bench v2.1 | Terminal & CLI agent operations | 88.4 | 70.8 | 90.6 | 88.8 (5.6 Sol) | 89.1 (Opus 5) |
| Terminal Bench v4.0 | Hard multi-step environment debugging | 38.5 | 3.0 | 31.2 | 37.3 (5.6 Sol) / 58.2 (6.1 Sol) | 53.9 (Opus 5) / 64.8 (Opus 5.5) |
| DeepSWE v1.1 | Repository-level issue resolution | 64.6 | 9.7 | 74.2 | 72.7 (5.6 Sol) | 68.8 (Opus 5) |
| SWE Atlas | Large codebase Q&A and navigation | 58.3 | 33.1 | — | — | — |
| Vision2Web | UI screenshot / mockup to web code | 78.6 | — | 79.2 | 73.5 (5.6 Sol) | 80.2 (Opus 5) |
| 3DCodeBench | 3D scene and visual code generation | 55.4 | — | 53.3 | 52.3 (5.6 Sol) | 54.3 (Opus 5) |
| PaperBench | Academic & algorithmic paper comprehension | 82.1 | 45.2 | — | — | — |
My takeaway from testing and comparing these numbers is straightforward: if you wrote off LongCat-2.0 earlier this year because it scored 9.7 on DeepSWE and 3.0 on Terminal Bench v4.0, LongCat-2.5 is a completely different model. The post-training reinforcement learning pipeline (which synthesizes executable fail-to-pass environments from GitHub pull requests and penalizes repetitive tool calls) brought DeepSWE up to 64.6 and Terminal Bench v2.1 up to 88.4. It also leads on 3DCodeBench (55.4) and scores 78.6 on Vision2Web.
At the same time, notice the baseline split on Terminal Bench v4.0. LongCat-2.5 edges out GPT-5.6 Sol (38.5 vs 37.3) and DeepSeek-V4.1-Flash (31.2), but it sits well behind newer frontier releases like GPT-6.1 Sol (58.2) and Claude Opus 5.5 (64.8). That makes LongCat-2.5 an aggressive sub-frontier workhorse: you use it for high-volume visual regression checks, frontend prototyping from screenshots, and standard repo maintenance, while keeping a frontier model as an escalation fallback for complex multi-service debugging.
VRAM Requirements by Quantization: Avoid the "48B Active" Trap
The most common mistake I see engineers make when evaluating MoE open weights is sizing their GPU cluster around the active parameter count.
Active parameters (~48B per token in LongCat-2.5) only determine the floating-point operations required for a single token's forward pass. Your VRAM footprint, weight loading time, and multi-GPU sharding strategy are governed entirely by the 1.6 trillion total parameters. Because the MoE router can dynamically send any token in a batch to any expert layer, every single expert must reside in high-bandwidth memory across your cluster during inference.
Here is the real memory math across all three supported deployment precisions, including buffer headroom for activations, communication collectives, and KV cache:
| Precision Format | Raw Weight Size | Total Cluster VRAM Needed | Minimum Hardware Topology | Throughput & Hardware Notes |
|---|---|---|---|---|
| BF16 / FP16 (16-bit) | ~3,200 GB (3.2 TB) | 3,600 – 3,840 GB | 40 to 48× 80GB GPUs (5 to 6 nodes of 8×H100 / A100 SXM) | Uncompressed research baseline; impractical outside large datacenters. |
| FP8 (8-bit) | ~1,600 GB (1.6 TB) | 1,920 GB | 24× 80GB GPUs (3 nodes of 8×H100) or 10× 192GB GPUs (H200 / MI300X) | Standard production choice on NVIDIA Hopper/Blackwell or AMD Instinct clusters. |
| W4A4 / INT4 (W4A4KV8) | ~800 GB (0.8 TB) | 960 GB | 10 to 12× 80GB GPUs or 2× 8-card NPU/GPU nodes (64GB–80GB per card) | Uses FlatQuant-style learnable transforms + grouped GEMM; +92% decode throughput vs W8A8KV16. |
Why Inter-Node Network Bandwidth Will Make or Break Your Setup
Look closely at the W4A4 row in the table above. Even when you compress both weights and activations to 4-bit and keep the KV cache at 8-bit (W4A4KV8), the model still requires roughly 800 GB just to hold the weights. A single standard 8×80GB GPU node only gives you 640 GB of total VRAM.
That means you cannot fit LongCat-2.5 onto a single 8-GPU server without offloading to system RAM (which destroys MoE token generation speed). You are forced to run Expert Parallelism (EP) or Pipeline Parallelism (PP) across at least two physical nodes. When expert slices span multiple machines, every MoE layer executes an All-to-All collective communication step over your inter-node network. During decoding, memory bandwidth and network latency—not GPU FLOPs—become your primary bottleneck. If your nodes are only connected via standard 10GbE or 25GbE TCP networking instead of 200Gbps+ InfiniBand or RoCEv2, concurrent requests will stall on inter-node routing.
How to Deploy a Local OpenAI-Compatible API with vLLM and SGLang
If you have a multi-node cluster with fast interconnects, you can serve LongCat-2.5 behind a standard OpenAI-compatible /v1/chat/completions endpoint using either vLLM (for NVIDIA/AMD GPU clusters) or Meituan's SGLang-FluentLLM fork (optimized for W4A4 on domestic NPU clusters and multi-node topologies).
Option 1: Multi-Node vLLM Deployment
For a two-node FP8 or W4A4 GPU setup (for example, 16 GPUs total across two 8-GPU machines coordinated via Ray), install vllm>=0.6.3 and split the model across Tensor Parallelism (--tensor-parallel-size 8 within each node's NVLink domain) and Pipeline Parallelism (--pipeline-parallel-size 2 across the two nodes):
pip install "vllm>=0.6.3"
# Launch on the head node after initializing your multi-node Ray cluster
python3 -m vllm.entrypoints.openai.api_server \
--model meituan-longcat/LongCat-2.5 \
--trust-remote-code \
--tensor-parallel-size 8 \
--pipeline-parallel-size 2 \
--host 0.0.0.0 \
--port 8000 \
--max-model-len 32768 \
--gpu-memory-utilization 0.92
Notice that I explicitly set --max-model-len 32768 in the command above. While LongCat-2.5 supports a 1,048,576-token native context window, leaving --max-model-len uncapped on a minimum-sized two-node cluster will cause vLLM to fail during startup when it tries to pre-allocate KV cache blocks for a million tokens. Start at 32K or 64K context on a two-node footprint, and scale your KV cache allocation upward only if you have spare VRAM across additional nodes.
Option 2: SGLang-FluentLLM Deployment (W4A4 / NPU Optimization)
Meituan trained and served LongCat-2.5 on accelerators with under 80 GB of memory per card, and they published their custom inference kernels in the SGLang-FluentLLM GitHub repository. If you are deploying the W4A4 quantized checkpoint or running on NPU hardware, clone the longcat-2.5-npu branch and launch the SGLang server:
git clone -b longcat-2.5-npu https://github.com/meituan-longcat/SGLang-FluentLLM.git
cd SGLang-FluentLLM
python3 -m sglang.launch_server \
--model-path meituan-longcat/LongCat-2.5 \
--tp 8 \
--port 8000 \
--host 0.0.0.0 \
--trust-remote-code
Calling the Vision and Thinking Endpoint (/v1/chat/completions)
Whether you point your code at your own vLLM/SGLang server (http://localhost:8000/v1) or Meituan's hosted OpenAI-compatible endpoint (https://api.longcat.chat/openai/v1), the request payload uses the standard OpenAI multimodal format. If you run into path routing errors or 404 Not Found responses when switching base_url between local and hosted servers, check our troubleshooting guide on changing base_url and api_key in the OpenAI Python SDK.
Here is a complete Python script that submits a UI bug screenshot alongside a prompt and enables LongCat-2.5's step-by-step reasoning mode:
import openai
# Use http://localhost:8000/v1 for local vLLM/SGLang, or Meituan's hosted endpoint:
client = openai.OpenAI(
base_url="https://api.longcat.chat/openai/v1",
api_key="your-api-key"
)
response = client.chat.completions.create(
model="LongCat-2.5",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Inspect this screenshot of our checkout page. Identify why the submit button overflows its container on mobile viewports and write the CSS patch:"
},
{
"type": "image_url",
"image_url": {
# Accepts either a public HTTPS URL or a base64 data URI:
# "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."
"url": "https://example.com/qa-screenshots/checkout-overflow.png"
}
}
]
}
],
extra_body={
"chat_template_kwargs": {
"enable_thinking": True,
"save_history_reasoning_content": True
}
},
stream=False
)
message = response.choices[0].message
print("=== Chain of Thought ===")
print(getattr(message, "reasoning_content", "No reasoning content returned."))
print("\n=== Final Patch ===")
print(message.content)
Two Payload Rules You Need to Know
First, pay attention to extra_body["chat_template_kwargs"]. LongCat-2.5 defaults to thinking mode enabled ("enable_thinking": True). When you run multi-turn agent loops where the model inspects a screenshot, runs a bash test, and reads the output, passing "save_history_reasoning_content": True preserves the model's prior reasoning blocks across turns so it does not repeat failed hypotheses. Conversely, if you are running a single-turn classification batch—such as extracting text from thousands of receipts—set "enable_thinking": False to skip the chain-of-thought phase, cutting both your time-to-first-token (TTFT) and your output token bill.
Second, note the difference between image and video inputs on the hosted API. As documented in Meituan's multimodal API guide, images can be passed either as URLs or inline base64 strings. Video inputs, however, must be supplied via URL. If your QA pipeline records internal browser test videos behind a firewall, you will either need to generate short-lived pre-signed object storage URLs or extract keyframe PNGs and send them as base64 image_url blocks.
Connecting Coding Harnesses (Claude Code, Codex, and OpenCode)
Because Meituan mixed multiple agent scaffolds directly into LongCat-2.5's reinforcement learning loop, the model works out of the box with terminal harnesses without custom system-prompt hacks. Meituan exposes two protocol endpoints on its hosted platform:
- OpenAI-compatible endpoint:
https://api.longcat.chat/openai/v1(for OpenAI Codex CLI, OpenCode, and Kilo Code) - Anthropic-compatible endpoint:
https://api.longcat.chat/anthropic/v1(for Claude Code)
If you want a zero-cost way to test LongCat-2.5 on small terminal tasks before setting up billing, OpenCode currently includes a LongCat 2.5 Free option capped at 100 requests per day. In my terminal tests, it solved math word problems in about 5 seconds and generated a complete 103-line interactive Pomodoro timer webpage (with working start, pause, and reset logic) in 31 seconds. Just keep in mind two hard limits on that free tier: 100 requests per day will run out quickly on a real multi-file repository, and the free credentials are strictly locked to the OpenCode client—if you copy that endpoint into another harness, the server will reject the request.
To use your own API key or local vLLM server in Claude Code, point ANTHROPIC_BASE_URL at the Anthropic-compatible endpoint and set your auth token:
export ANTHROPIC_BASE_URL="https://api.longcat.chat/anthropic"
export ANTHROPIC_AUTH_TOKEN="your-longcat-api-key"
export ANTHROPIC_MODEL="LongCat-2.5"
claude
If Claude Code ignores your ANTHROPIC_BASE_URL and keeps routing to your claude.ai subscription login, follow our fix for Claude Code ANTHROPIC_BASE_URL not working to clear the credential conflict and verify the active upstream with /status.
When you are evaluating LongCat-2.5 alongside frontier models—for instance, routing routine frontend screenshot tasks to LongCat-2.5 or a unified gateway like SeedRouter while switching back to Claude Opus 5.5 or GPT-6.1 Sol for complex backend refactoring—constantly editing shell exports and config files by hand becomes error-prone. That is why we built our free, open-source LLM API Config GUI (GitHub repo) for Windows and macOS. It lets you configure Base URLs, API keys, and model IDs for both Codex and Claude Code in a desktop interface, export profiles straight into CC Switch, and run instant connection diagnostics to catch 401, 403, 404, 429, and timeout errors before you launch a coding session.
Self-Hosted GPU Cluster vs Hosted API: The Breakeven Math
Prices in this section are as of 2026-11-11.
Because the MIT license removes all legal friction around commercial self-hosting, the decision to run LongCat-2.5 on your own cluster comes down to two factors: data residency compliance and unit economics.
Let's run the numbers using Meituan's official LongCat-2.5 rate card:
| Cost Component | Official Hosted API Rate | Typical Agent Workload Share | Weighted Cost Contribution |
|---|---|---|---|
| Cached Input (Read) | $0.006 / 1M tokens (98% discount) | 80% of total tokens | $0.0048 / 1M tokens |
| Uncached Input | $0.300 / 1M tokens | 15% of total tokens | $0.0450 / 1M tokens |
| Output Tokens | $1.200 / 1M tokens | 5% of total tokens | $0.0600 / 1M tokens |
| Blended Agentic Rate | — | 100% combined | ~$0.1098 ($0.11) / 1M tokens |
In a single-turn benchmark without caching—say, sending 200,000 uncached input tokens and generating 100,000 output tokens—a run on LongCat-2.5 costs $0.18 (compared to $1.40 on GPT-6.1 Sol or $2.80 on Claude Opus 5.5).
In a real multi-turn coding agent session, however, the agent repeatedly sends the same repository context, system instructions, and prior conversation turns on every step. Because Meituan discounts cached input reads by 98% down to $0.006 per 1M tokens, an agent workload with an 80% cache hit rate, 15% fresh input (new file diffs or screenshots), and 5% generated output achieves a blended cost of roughly $0.11 per million tokens.
Calculating the Monthly Token Breakeven Point
Now compare that $0.11 per million blended rate against the minimum hardware required to self-host the 1.8 TB checkpoint:
$$\text{Minimum Cluster Cost (2}\times\text{8-GPU H100 Nodes)} \approx $23,000 \text{ to } $34,000 \text{ / month}$$
Even if you use 4-bit (W4A4) or FP8 quantization, you need at least two 8×80GB GPU nodes connected over high-speed InfiniBand or RoCE. Renting an 8×H100 bare-metal server on the cloud currently runs $16 to $24 per hour ($11,500 to $17,000 per month per node). A conservative two-node cluster costs $25,000 per month before you pay a dollar for inter-node bandwidth or MLOps engineering time.
Divide that $25,000 monthly hardware bill by the $0.11 per 1M token blended API cost:
$$\text{Breakeven Volume} = \frac{$25,000}{$0.11 \text{ per } 1,000,000 \text{ tokens}} \approx 227,272,727,272 \text{ tokens / month}$$
To beat Meituan's hosted API pricing on a self-hosted cluster, your team must process more than 227 billion tokens per month—which works out to over 7.5 billion tokens every single day at sustained, near-100% cluster utilization.
When You Should (and Shouldn't) Self-Host the MIT Weights
For individual developers, startups, and mid-sized engineering teams, self-hosting a 1.6-trillion-parameter MoE model makes zero financial sense. Even if your team burns 5 billion tokens a month running automated visual regression tests and coding agents in CI/CD, your monthly hosted API bill on LongCat-2.5 will sit around $550—less than the cost of renting a two-node GPU cluster for a single day. Start by pointing your agent harness at https://api.longcat.chat/openai/v1 or https://api.longcat.chat/anthropic/v1, verify that the model's visual and coding accuracy meets your acceptance criteria on your own repositories, and let Meituan absorb the multi-node MoE infrastructure overhead.
Pulling the 1.8 TB checkpoint from Hugging Face and running your own vLLM or SGLang-FluentLLM cluster is only the right move in two specific cases: when your sustained production volume genuinely exceeds 200 billion tokens per month, or when you operate under strict enterprise, financial, or government data-governance rules where source code and internal UI screenshots cannot leave your private vpc network—and where Western procurement teams require a fully air-gapped, MIT-licensed deployment with zero external telemetry.