Yi-Coder 9B

01.AI
Code

01.AI Yi-Coder 9B chat model. Strong multilingual code completion and chat, 128k context, competitive with code-specialized models 2x its size.

Try Yi-Coder 9B now
Send a single prompt and stream a response inline. Hit Cmd+Enter to submit.
Sign in to try this model with €5 free credits.
Sign in
Press Cmd+Enter to send
Response appears here.
TL;DR·Last updated May 16, 2026

Yi-Coder 9B is code AI model from 01.AI, priced at €0.000 per 1M input tokens with a 131.1K tokens context window.

Try Yi-Coder 9B
Sign in to generate — 50 free credits on sign-up

Pricing

Price per Generation
Per generation€0.004

API Integration

Use our OpenAI-compatible API to integrate Yi-Coder 9B into your application.

Install
npm install railwail
JavaScript / TypeScript
import railwail from "railwail";

const rw = railwail("YOUR_API_KEY");

// Simple — just pass a string
const reply = await rw.run("yi-coder-9b", "Hello! What can you do?");
console.log(reply);

// With message history
const reply2 = await rw.run("yi-coder-9b", [
  { role: "system", content: "You are a helpful assistant." },
  { role: "user", content: "Explain quantum computing simply." },
]);
console.log(reply2);

// Full response with usage info
const res = await rw.chat("yi-coder-9b", [
  { role: "user", content: "Hello!" },
], { temperature: 0.7, max_tokens: 500 });
console.log(res.choices[0].message.content);
console.log(res.usage);
Specifications
Price
€0.004
Context window
131,072 tokens
Max output
8,192 tokens
Developer
01.AI
Category
Code
Supported Formats
text
Tags
replicate
code-generation
01ai
open-weights
long-context

Frequently asked questions

Start using Yi-Coder 9B today

Get started with free credits. No credit card required. Access Yi-Coder 9B and 100+ other models through a single API.