Inception: Mercury Coder

This model is no longer available.

Add AI to your application with Puter.js.

Explore Other Models

Model Card

Mercury Coder is a code-specialized diffusion language model from Inception Labs, built on the same parallel token refinement architecture as Mercury. It is available in Mini and Small sizes.

On fill-in-the-middle tasks, Mercury Coder Small scored 84.8% average accuracy, exceeding Codestral 2501 (82.5%). On MultiPL-E, it reaches 82.0% in C++, 83.9% in JavaScript, and 82.6% in TypeScript. In Copilot Arena human evaluations, Mercury Coder Mini ranked second in user preference with an average latency of just 25 milliseconds.

It is the go-to choice for real-time code completion, autocomplete, and apply-edit workflows where both speed and accuracy are critical.

Context Window 128K

tokens

Max Output 32K

tokens

Input Cost $0.25

per million tokens

Output Cost $0.75

per million tokens

Release Date Mar 31, 2025

 

Code Example

Add AI to your app with the Puter.js AI API — no API keys or setup required.

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

puter.ai.chat("Explain quantum computing in simple terms").then(response => {
    document.body.innerHTML = response.message.content;
});
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain quantum computing in simple terms").then(response => {
            document.body.innerHTML = response.message.content;
        });
    </script>
</body>
</html>

Frequently Asked Questions

How do I use Mercury Coder?

You can access Mercury Coder by Inception through Puter.js AI API. Include the library in your web app or Node.js project and start making calls with just a few lines of JavaScript — no backend and no configuration required. You can also use it with Python or cURL via Puter's OpenAI-compatible API.

Is Mercury Coder free?

Yes, it is free if you're using it through Puter.js. With the User-Pays Model, you can add Mercury Coder to your app at no cost — your users pay for their own AI usage directly, making it completely free for you as a developer.

What is the pricing for Mercury Coder?
Pricing for Mercury Coder is based on the number of input and output tokens used per request.
Price per 1M tokens
Input$0.25
Output$0.75
Who created Mercury Coder?

Mercury Coder was created by Inception and released on Mar 31, 2025.

What is the context window of Mercury Coder?

Mercury Coder supports a context window of 128K tokens. For reference, that is roughly equivalent to 256 pages of text.

What is the max output length of Mercury Coder?

Mercury Coder can generate up to 32K tokens in a single response.

Does it work with React / Vue / Vanilla JS / Node / etc.?

Yes — the Mercury Coder API works with any JavaScript framework, Node.js, or plain HTML through Puter.js. Just include the library and start building. See the documentation for more details.

Get started with Puter.js

Add AI to your application without worrying about API keys or setup.

Explore Models View Tutorials