Code Llama 70B Instruct

Meta
Code

Meta's largest Code Llama, a 70B Llama-2 derivative specialized for programming and tuned to follow instructions in chat form. Handles code generation, completion, and explanation across common languages. Served on Replicate as a per-call endpoint.

Try Code Llama 70B Instruct 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 June 24, 2026

Code Llama 70B Instruct is code AI model from Meta, priced at €0.000 per 1M input tokens with a 16.4K tokens context window.

About this model

Code Llama 70B Instruct is the top tier of Meta's Code Llama family. It is fine-tuned for safer, instruction-following code chat and was competitive with proprietary models at release. Useful for generating functions, explaining snippets, and translating between languages.
Try Code Llama 70B Instruct
Sign in to generate — 50 free credits on sign-up

Pricing

Price per Generation
Per generation€3.00

API Integration

Use our OpenAI-compatible API to integrate Code Llama 70B Instruct 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("codellama-70b-instruct", "Hello! What can you do?");
console.log(reply);

// With message history
const reply2 = await rw.run("codellama-70b-instruct", [
  { 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("codellama-70b-instruct", [
  { role: "user", content: "Hello!" },
], { temperature: 0.7, max_tokens: 500 });
console.log(res.choices[0].message.content);
console.log(res.usage);
Specifications
Price
€3.00
Context window
16,384 tokens
Max output
4,096 tokens
Developer
Meta
Category
Code
Supported Formats
text
Tags
meta
code-llama
coding
instruct
open-weights
replicate

Frequently asked questions

Start using Code Llama 70B Instruct today

Get started with free credits. No credit card required. Access Code Llama 70B Instruct and 100+ other models through a single API.