# Inception: Mercury Coder Small

Mercury Coder Small is a language model, tuned for writing and editing code.

- **Model id:** `opencheap/mercury-coder-small`
- **Price per 1M tokens:** $0.25 input / $1.00 output
- **Cached input:** $0.13 per 1M tokens
- **Context:** 32K tokens, 16K max output

## Providers

2 providers. Prices are per 1M tokens. As of 2026-12-04 12:05 UTC.

| Provider | Input price | Cache price | Output price | Context | Max output |
| --- | --- | --- | --- | --- | --- |
| NanoGPT · quantization unknown | $0.25 | $0.13 | $1.00 | 32K | 16K |

1 more provider through partner hosts · from $0.26 in · $1.05 out

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **NanoGPT:** `temperature`, `top_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format` (tools not confirmed)

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/mercury-coder-small#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/mercury-coder-small`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/mercury-coder-small", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/mercury-coder-small",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/mercury-coder-small",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About Mercury Coder Small

Mercury Coder Small costs from $0.25 per 1M input tokens and $1.00 per 1M output tokens on OpenCheap, with cached input at $0.13 per 1M tokens. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0035, and 1,000 such requests about $3.50. Prices as of 2026-12-04 12:01 UTC.

2 providers serve Mercury Coder Small on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 32K tokens (32,768), room for roughly 25,000 words of English in one request.

Mercury Coder Small is one of [4 Inception models](https://opencheap.si/models/lab/inception) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the Mercury Coder Small API cost per 1M tokens?

Mercury Coder Small costs from $0.25 per 1M input tokens and $1.00 per 1M output tokens on OpenCheap, with cached input at $0.13 per 1M tokens. Prices as of 2026-12-04 12:01 UTC.

### What does one Mercury Coder Small request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.0035, and 1,000 such requests about $3.50. Every answer reports its own cost in usage.cost.

### Which providers serve Mercury Coder Small?

2 providers serve Mercury Coder Small on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of Mercury Coder Small?

Its context window is 32K tokens (32,768), room for roughly 25,000 words of English in one request.

### How do I call the Mercury Coder Small API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/mercury-coder-small. One OpenCheap key works for every model; the rest of your code stays the same.

## More from Inception

- [Mercury 2](https://opencheap.si/models/mercury-2) (`mercury-2`): $0.25 / $0.75 per 1M · 128K context
- [Mercury 2.5 Preview](https://opencheap.si/models/mercury-2.5-preview) (`mercury-2.5-preview`): $0.04 / $0.15 per 1M · 260K context
- [Mercury 3](https://opencheap.si/models/mercury-3) (`mercury-3`): $0.10 / $0.35 per 1M · 1M context

[All 4 Inception models](https://opencheap.si/models/lab/inception)

## Similar models

- [Qwen3 Coder Flash](https://opencheap.si/models/qwen3-coder-flash): Qwen · 1M context · $0.14 / $0.55 per 1M, 45 % cheaper · [Compare with Mercury Coder Small](https://opencheap.si/compare/mercury-coder-small-vs-qwen3-coder-flash)
- [GPT-5.1-Codex Mini](https://opencheap.si/models/gpt-5.1-codex-mini): OpenAI · 400K context · $0.25 / $2.00 per 1M · [Compare with Mercury Coder Small](https://opencheap.si/compare/mercury-coder-small-vs-gpt-5.1-codex-mini)
- [MiniMax M3](https://opencheap.si/models/minimax-m3): MiniMax · 1M context · $0.24 / $1.01 per 1M · [Compare with Mercury Coder Small](https://opencheap.si/compare/mercury-coder-small-vs-minimax-m3)
- [Kimi K2.7 Code](https://opencheap.si/models/kimi-k2.7-code): Moonshot · 262K context · $0.24 / $1.05 per 1M · [Compare with Mercury Coder Small](https://opencheap.si/compare/mercury-coder-small-vs-kimi-k2.7-code)
- [Skyfall 36B V2](https://opencheap.si/models/skyfall-36b-v2): TheDrummer · 32K context · $0.58 / $0.84 per 1M · [Compare with Mercury Coder Small](https://opencheap.si/compare/mercury-coder-small-vs-skyfall-36b-v2)
- [Qwen/Qwen2.5-Coder-32B-Instruct](https://opencheap.si/models/qwen2.5-coder-32b): Qwen · 32K context · $0.20 / $0.20 per 1M, about 4× cheaper · [Compare with Mercury Coder Small](https://opencheap.si/compare/mercury-coder-small-vs-qwen2.5-coder-32b)

[Compare Mercury Coder Small with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/mercury-coder-small · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
