# Pareto Code Router — Use via Hanzo AI API

> The Pareto Router maintains a tiered shortlist of strong coding models, ranked by Artificial Analysis coding percentiles. Set min_coding_sco... Access via Hanzo&#x27;s OpenAI-compatible API. Context: 2M. Get started free.

[Models](https://hanzo.ai/models)/[OpenRouter](https://hanzo.ai/models/openrouter)/pareto-code

# Pareto Code Router

[OpenRouter](https://hanzo.ai/models/openrouter)

The Pareto Router maintains a tiered shortlist of strong coding models, ranked by Artificial Analysis coding percentiles. Set min_coding_score between 0 and 1 on the pareto-router plugin to control how...

text

[Get API Key](https://hanzo.ai/signup)[View Docs](https://docs.hanzo.ai)[Try in Chat](https://hanzo.ai/chat)

## Specifications

Context Window

2M

Modalities

text

Input

$-1200000.000 / M tokens

Output

$-1200000.000 / M tokens

Status

available

Category

third-party

Model ID

openrouter/pareto-code

## Quick Start

TypeScript

```
import OpenAI from &#x27;openai&#x27; const client = new OpenAI({ apiKey: process.env.HANZO_API_KEY, baseURL: &#x27;https://api.hanzo.ai/v1&#x27; }) const response = await client.chat.completions.create({ model: &#x27;openrouter/pareto-code&#x27;, messages: [{ role: &#x27;user&#x27;, content: &#x27;Hello!&#x27; }] }) console.log(response.choices[0].message.content)
```

Python

```
from openai import OpenAI client = OpenAI( api_key=os.environ["HANZO_API_KEY"], base_url="https://api.hanzo.ai/v1" ) response = client.chat.completions.create( model="openrouter/pareto-code", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content)
```

cURL

```
curl https://api.hanzo.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $HANZO_API_KEY" \ -d &#x27;{ "model": "openrouter/pareto-code", "messages": [{"role": "user", "content": "Hello!"}] }&#x27;
```

Go

```
package main import ( "context" "fmt" "os" "github.com/sashabaranov/go-openai" ) func main() { cfg := openai.DefaultConfig(os.Getenv("HANZO_API_KEY")) cfg.BaseURL = "https://api.hanzo.ai/v1" client := openai.NewClientWithConfig(cfg) resp, _ := client.CreateChatCompletion(context.Background(), openai.ChatCompletionRequest{ Model: "openrouter/pareto-code", Messages: []openai.ChatCompletionMessage{ {Role: openai.ChatMessageRoleUser, Content: "Hello!"}, }, }, ) fmt.Println(resp.Choices[0].Message.Content) }
```

## More from OpenRouter

[Auto Router2MThe Auto Router automatically selects the best model for your prompt, powered by the wisdom of the market. It routes you based on what the OpenRouter community collectively spends on...](https://hanzo.ai/models/openrouter/auto)[Auto Router (Beta)2MAuto Router (Beta) is a task-aware router from OpenRouter. It classifies each request, then routes it the most popular model for that task based on aggregate spend, filtered by your...](https://hanzo.ai/models/openrouter/auto-beta)[Body Builder (beta)128KTransform your natural language requests into structured OpenRouter API request objects. Describe what you want to accomplish with AI models, and Body Builder will construct the appropriate API calls. Example:...](https://hanzo.ai/models/openrouter/bodybuilder)[Free Models Router200KThe simplest way to get free inference. openrouter/free is a router that selects free models at random from the models available on OpenRouter. The router smartly filters for models that...](https://hanzo.ai/models/openrouter/free)[OpenRouter: Fusion1MFusion turns your prompt into a small multi-model deliberation. A panel of expert models (see below) analyzes your prompt in parallel with web search and web fetch enabled, then a...](https://hanzo.ai/models/openrouter/fusion)

[View all OpenRouter models →](https://hanzo.ai/models/openrouter)

## Use Pareto Code Router via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.

[Get Free API Key](https://hanzo.ai/signup)[Browse All Models](https://hanzo.ai/models)
