Code Llama 7B Instruct

CodeAvailable
by MetaModel ID: codellama-7b-instruct

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.

Price
โ‰ˆ $0.0074/run
Context
16,384 tokens
Max. output
4,096 tokens
Input โ†’ output
Text โ†’ Text
Developer
Meta
Updated
September 23, 2026
01

Playground

Try Code Llama 7B Instruct

Input & output

โ‰ˆ $0.0074/run
Try Code Llama 7B Instruct

Coding prompt

Advanced settings (3)

Optional system instruction

Output
The answer appears here.

This run

about $0.0074 ยท 0.74 credits

$0.022 (2.2 credits) are reserved at the start; the actual GPU time is billed.

For accounts without a purchase: runs above 2 credits need a top-up.

New here?

10 free credits ($0.10) when you sign up with Google

Usable 24 hours after sign-up, up to 5 runs per day and at most 2 credits per run. Other sign-in methods start without credits.

02

Examples

Real outputs from the public examples of this model on Replicate, with the prompt and settings that produced them. They were not generated live on this page.
  • Prompt

    Write a javascript function that calculates euclidean distance between two coordinates of any dimension

    Response

    Here is an example of how you could define such a function in JavaScript: function computeEuclideanDistance(coord1, coord2) { // Get the dimensions of both coordinate arrays var dim1 = coord1.length; var dim2 = coord2.length; // Initialize the sum of squared differences var sumOfSquaredDifferences = 0; // Iterate over each element in both coordinate arrays and calculate the difference and square it to get the squared difference and then add up all these squared differences to get the total sum of squared differences. for ( var i = 0; i < Math.min(dim1, dim2)); i++) { sumOfSquaredDifferences += Math.pow((coord1[i]) - ((coord2[i]))), 2); } return Math.sqrt(sumOfSquaredDifferences)), dim1 + dim2)); }

03

About Code Llama 7B Instruct

TL;DRAs of September 23, 2026

Code Llama 7B Instruct is a model by Meta in the Code category. On Railwail, Code Llama 7B Instruct costs โ‰ˆ $0.0074 per run. The context window holds 16,384 tokens, and one response can be up to 4,096 tokens long.

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.
04

Pricing

Prices in US dollars. Usage is charged from prepaid credits.
Typical run (โ‰ˆ 6 s on L40S)$0.0074 per run
GPU time (L40S)$0.00117 per GPU second
  • Billed by the GPU time the run actually takes. When the run starts, 3ร— the typical price is reserved from your balance and settled afterwards.
  • 1 credit = $0.01

Cost calculator

Price calculator

s

Typical according to the provider: about 6.3 s

Total

$0.74

74 credits

Per run

$0.0074 ยท 0.74 credits

Billed by the actual GPU time; this is an estimate.

05

API

Call Code Llama 7B Instruct with your Railwail API key. Use this model ID in the request:
codellama-7b-instructAPI documentationGet an API key

No verified API example

The public API passes a different input format than this model needs. Use the playground above.

06

Specifications

Model ID
codellama-7b-instruct
Developer
Meta
Category
Code
Input
Text
Output
Text
Context window
16,384 tokens
Max. output
4,096 tokens
Billing
By usage (tokens or GPU time)
Catalog entry updated
September 23, 2026

Input parameters

Inputs and settings from the model's input schema. The example in the API section shows which of them the API accepts.

  • promptrequired

    Coding prompt

    Type: Text
    Default: โ€“
    Allowed values: โ€“
  • max_tokens
    Type: Integer
    Default: 1024
    Allowed values: 1 to 4,096
  • temperature
    Type: Number
    Default: 0.2
    Allowed values: 0 to 2
  • system_prompt

    Optional system instruction

    Type: Text
    Default: โ€“
    Allowed values: โ€“

Tags

  • meta
  • code-llama
  • coding
  • instruct
  • open-weights
  • lightweight
  • replicate
07

Use cases

08

Frequently asked questions

What is Code Llama 7B Instruct?

Code Llama 7B Instruct is a model by Meta in the Code category.

How much does Code Llama 7B Instruct cost on Railwail?

On Railwail, Code Llama 7B Instruct costs โ‰ˆ $0.0074 per run. You are charged for what each request actually uses. Usage is paid from prepaid credits; 1 credit equals $0.01.

What is the context window of Code Llama 7B Instruct?

The context window of Code Llama 7B Instruct holds 16,384 tokens. One response can be up to 4,096 tokens long.

How fast is Code Llama 7B Instruct?

There are not enough measured runs of Code Llama 7B Instruct on Railwail yet to state a run time. It depends on the input, the settings and the load at the provider.

Is Code Llama 7B Instruct better than Code Llama 13B Instruct?

That depends on the task. Code Llama 7B Instruct (Meta) and Code Llama 13B Instruct (Meta) are both models in the Code category. The comparison page shows their prices and specifications side by side.

Compare Code Llama 7B Instruct and Code Llama 13B Instruct
09

Comparable models

All in this category

All models through one API

One API key for every model on Railwail. Usage is charged from prepaid credits, 1 credit = $0.01.