Skip to content
  1.  
  2. © 2023 – 2025 OpenRouter, Inc

    Inception: Mercury Coder

    inception/mercury-coder

    Created Apr 30, 2025128,000 context
    $0.25/M input tokens$1/M output tokens

    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.

    Providers for Mercury Coder

    OpenRouter routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.

    Performance for Mercury Coder

    Compare different providers across OpenRouter

    Apps using Mercury Coder

    Top public apps this week using this model

    Recent activity on Mercury Coder

    Total usage per day on OpenRouter

    Uptime stats for Mercury Coder

    Uptime stats for Mercury Coder across all providers

    Sample code and API for Mercury Coder

    OpenRouter normalizes requests and responses across providers for you.

    OpenRouter provides an OpenAI-compatible completion API to 400+ models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.

    In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards.

    Using third-party SDKs

    For information about using third-party SDKs and frameworks with OpenRouter, please see our frameworks documentation.

    See the Request docs for all possible fields, and Parameters for explanations of specific sampling parameters.