Code Llama 7B Instruct

Meta
Code

Meta's smallest Code Llama at 7B parameters, tuned for instruction following. The cheapest and fastest member of the family for quick code generation, completion, and infilling. Served on Replicate per call.

Try Code Llama 7B 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 7B 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 7B Instruct is the entry-size Code Llama. It is fast and inexpensive, good for autocomplete-style tasks, small functions, and snippet explanation. Supports infilling for cursor-position code insertion.
Try Code Llama 7B Instruct
Sign in to generate — 50 free credits on sign-up

Pricing

Price per Generation
Per generation€1.00

API Integration

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

// With message history
const reply2 = await rw.run("codellama-7b-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-7b-instruct", [
  { role: "user", content: "Hello!" },
], { temperature: 0.7, max_tokens: 500 });
console.log(res.choices[0].message.content);
console.log(res.usage);
Specifications
Price
€1.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
lightweight
replicate

Frequently asked questions

Start using Code Llama 7B Instruct today

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