impulse

Mercury Coder Small

API id mercury-coder-small
Input / 1M
$0.25
at Vercel AI Gateway
Output / 1M
$1.00
at Vercel AI Gateway
Context window
32K
tokens
Max output
16K
tokens per reply
Hosts
1
1 listings
Released
-
date not published

Pricing

List prices at Vercel AI Gateway, in US dollars per million tokens.

TierInput / 1MOutput / 1M
Standard$0.25$1.00

What it costs a month

At Vercel AI Gateway list prices, 30 days.

  • Chat assistant5,000 requests a day, 2K in / 0.5K out$150
  • RAG over documents2,000 requests a day, 8K in / 0.6K out$156
  • Coding agent1,000 requests a day, 40K in / 2K out$360
  • Overnight batch20,000 requests a day, 4K in / 0.4K out$840
Use your own numbers

Where to run it

1 host serve Mercury Coder Small. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
mercury-coder-small
$0.25 / $1.00

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
Text
Produces
Text

Cheaper alternatives

Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.

Same model, cheaper host

No host sells it for less than Vercel AI Gateway.

Smaller Independent models

No cheaper Independent model keeps its key capabilities.

Other frontier labs

  • Claude Haiku 5.5
    Anthropic · on Anthropic
    $0.10 / $0.50
    Has every key capability
    54% less
  • GPT-6 Luna
    OpenAI · on OpenAI
    $0.10 / $0.50
    Has every key capability
    54% less
  • GPT-4o Mini
    OpenAI · on OpenAI
    $0.15 / $0.60
    Has every key capability
    40% less

Open-weight picks

  • MiMo V2.6 Pro
    Xiaomi · on GMI Cloud
    $0.348 / $0.696
    Has every key capability
    1% less
  • MiniMax M3
    MiniMax · on EmpirioLabs AI
    $0.225 / $0.90
    Has every key capability
    10% less
  • Qwen3.5 397B A17B
    Alibaba Qwen · on AIHubMix
    $0.164 / $0.986
    Has every key capability
    15% less
  • Muse Glimmer 30B
    Meta · on EmpirioLabs AI
    $0.20 / $0.80
    Has every key capability
    20% less

Call it

Using Vercel AI Gateway's API.

Python
from litellm import completion

response = completion(
    model="vercel_ai_gateway/mercury-coder-small",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Quick answers

How much does Mercury Coder Small cost?

On Vercel AI Gateway, Mercury Coder Small costs $0.25 per million input tokens and $1.00 per million output tokens.

Which APIs offer Mercury Coder Small?

Mercury Coder Small runs on 1 API: Vercel AI Gateway.

What is Mercury Coder Small's context window?

32K tokens, with up to 16K tokens in one reply.

Is Mercury Coder Small being retired?

No retirement date is scheduled for it on any API we track.

What are cheaper alternatives to Mercury Coder Small?

Models that cost less and keep most of what it can do: Claude Haiku 5.5 on Anthropic (54% less), GPT-6 Luna on OpenAI (54% less) and MiMo V2.6 Pro on GMI Cloud (1% less). Savings are on a mix of 3 input tokens to 1 output token.

What is Mercury Coder Small's API model id?

Use mercury-coder-small with Vercel AI Gateway.

Sources

Raw catalog entry for mercury-coder-small on Vercel AI Gateway
{
  "input_cost_per_token": 2.5e-7,
  "litellm_provider": "vercel_ai_gateway",
  "max_input_tokens": 32000,
  "max_output_tokens": 16384,
  "mode": "chat",
  "output_cost_per_token": 0.000001
}