Skip to content
OpenKey

Pareto Code Router

OpenRouterReleased Apr 21, 2026

The Pareto Router maintains a tiered shortlist of strong coding models, ranked by [Artificial Analysis](https://artificialanalysis.ai/) coding percentiles. Set min_coding_score between 0 and 1 on the [pareto-router plugin](https://openrouter.ai/docs/guides/routing/routers/pareto-router#the-min_coding_score-parameter) to control how...

Try in playground
Context window
2M tokens
Input
text
Output
text
Tokenizer
Router
Released
Apr 21, 2026

Pricing

Per 1M tokens. The provider price and our flat 3% fee are separate columns — what you pay is their sum.

Variable pricing — this router selects an underlying model per request, and you pay that model's price + 3%.

Call it

OpenAI-compatible: point your SDK at api.openkey.ai/v1 and use model openrouter/pareto-code.

Code sample language
curl https://api.openkey.ai/v1/chat/completions \
  -H "Authorization: Bearer $OPENKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openrouter/pareto-code",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.openkey.ai/v1",
    api_key=os.environ["OPENKEY_API_KEY"],
)

completion = client.chat.completions.create(
    model="openrouter/pareto-code",
    messages=[{"role": "user", "content": "Hello"}],
)
print(completion.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.openkey.ai/v1",
  apiKey: process.env.OPENKEY_API_KEY,
});

const completion = await client.chat.completions.create({
  model: "openrouter/pareto-code",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);

Questions

What is Pareto Code Router's context window?
Pareto Code Router accepts up to 2M tokens of context.
Is Pareto Code Router OpenAI-compatible?
Yes. Send requests to OpenKey's /v1/chat/completions endpoint with model "openrouter/pareto-code" using any OpenAI SDK — only the base URL and API key change.
What inputs does Pareto Code Router support?
Pareto Code Router accepts text input and produces text output.

More from OpenRouter

All OpenRouter models →