Mercury Edit 2

Inception
inception/mercury-edit-2Closed API

Code editing dLLM for autocomplete (FIM) and next-edit suggestions

Benchmark Pricing$0.25 / 1M in$0.75 / 1M out$0.03 cache read
Context: 32,000 tokens•Max Output: 8,192 tokens•Released: 2026-03-30

TECHNICAL SPECIFICATIONS

Context Window32,00032K tokens
Max Output8,1928.2K tokens
LicenseProprietaryCloud API only
Input Modalities
Text
Function / Tool CallingNot Supported
Structured OutputsPrompt Based

MODEL CONTEXT PROTOCOL (MCP) READINESS

⚠ Mercury Edit 2 does not natively advertise tool-calling capabilities. When connecting to MCP servers, function calling must be handled via structured prompt injection.

MCP Context Window Recommendations

With a context capacity of 32,000 tokens, this model can handle compact tool sets. Consider keeping MCP server tool manifests minimal to preserve headroom.

API CALL INVOCATION EXAMPLE

// Example: Calling Mercury Edit 2 via OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.INCEPTION_API_KEY,
});

const response = await client.chat.completions.create({
  model: "inception/mercury-edit-2",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

1 providers
Inceptionmercury-edit-2
$0.25 / $0.75$0.03 cache

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

Prompt Caching Active

This model supports prompt caching at $0.03 / 1M tokens, saving up to 90% on repetitive MCP tool definitions and system instructions.

MODEL RESOURCES