StarCoder2 15B

BigCode
Code

BigCode StarCoder2 15B code-generation flagship. Trained on 4T tokens of Stack v2 data with grouped-query attention and 16k context.

Try StarCoder2 15B 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

StarCoder2 15B is code AI model from BigCode, priced at €0.000 per 1M input tokens with a 16.4K tokens context window.

Try StarCoder2 15B
Sign in to generate — 50 free credits on sign-up

Pricing

Price per Generation
Per generation€0.005

API Integration

Use our OpenAI-compatible API to integrate StarCoder2 15B 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("starcoder2-15b", "Hello! What can you do?");
console.log(reply);

// With message history
const reply2 = await rw.run("starcoder2-15b", [
  { 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("starcoder2-15b", [
  { role: "user", content: "Hello!" },
], { temperature: 0.7, max_tokens: 500 });
console.log(res.choices[0].message.content);
console.log(res.usage);
Specifications
Price
€0.005
Context window
16,384 tokens
Max output
8,192 tokens
Developer
BigCode
Category
Code
Supported Formats
text
Tags
replicate
code-generation
bigcode
open-weights
apache-2
flagship

Frequently asked questions

Start using StarCoder2 15B today

Get started with free credits. No credit card required. Access StarCoder2 15B and 100+ other models through a single API.