Mercury Coder

Other chattool_usecode

API ID: inception/mercury-coder-small-beta

Input Price
$0.25
/1M tokens
Output Price
$0.75
/1M tokens

About Mercury Coder

Mercury Coder is the first diffusion large language model (dLLM). Applying a breakthrough discrete diffusion approach, the model runs 5-10x faster than even speed optimized models like Claude 3.5 Haiku and GPT-4o Mini while matching their performance. Mercury Coder's speed means that developers can stay in the flow while coding, enjoying rapid chat-based iteration and responsive code completion suggestions. On Copilot Arena, Mercury Coder ranks 1st in speed and ties for 2nd in quality. Read more in the [blog post here](https://www.inceptionlabs.ai/blog/introducing-mercury).

๐Ÿ’ฐ
Price Ranking
#821 lowest price among 1240 Chat models

Model Specifications

Context Length
128k
Max Output
32k
Release Date
2025-04-30
Capabilities
chat tool_use code
Input Modalities
text
Output Modalities
text

Best For

  • Code generation, debugging, code review, refactoring
  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.34
/month
50 conversations/day, ~500 tokens each
Code Copilot
$3.00
/month
200 completions/day, ~1k tokens each
Customer Service Bot
$10.50
/month
1000 tickets/day, ~800 tokens each
Data Analysis Pipeline
$14.63
/month
500 analyses/day, ~2k tokens each

Other Model Lineup

Compare all models from Other to find the best fit

Model Input Output Context Capabilities
Mercury Coder Current Free Free 128k chat tool_use code
Riverflow V2 Max Preview Free Free 8k chat vision image_gen
Riverflow V2 Standard Preview Free Free 8k chat vision image_gen
Riverflow V2 Fast Preview Free Free 8k chat vision image_gen
AFM 4.5B Free Free 66k chat
AFM 4.5B Free Free 66k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Gryphe MythoMax 13B
Input: $0.40
Output: $0.60
Context: 8k
OpenAI GPT-3.5 Turbo (batch)
Input: $0.25
Output: $0.75
Context: 16k
Alibaba Qwen Qwen2.5 VL 72B Instruct
Input: $0.25
Output: $0.75
Context: 128k
OpenAI GPT-4.1 Mini (batch)
Input: $0.20
Output: $0.80
Context: 1.0M

๐Ÿš€ Quick Start

Get started with Mercury Coder API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="inception/mercury-coder-small-beta",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)