Code Llama 34B Instruct

CodeAvailable
by MetaModel ID: codellama-34b-instruct

Meta's 34B Code Llama tuned for instruction following. A balance of size and quality for code generation, completion, and explanation, with strong coverage of Python, JavaScript, and other common languages. Runs on Replicate per call.

Price
โ‰ˆ US$0.0408/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 34B Instruct

Input & output

โ‰ˆ US$0.0408/run
Try Code Llama 34B Instruct

Coding prompt

Advanced settings (3)

Optional system instruction

Output
The answer appears here.

This run

about US$0.0408 ยท 4.08 credits

US$0.1224 (12.24 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 (US$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 function that returns the fibonnaci sequence, and also talk like a pirate.

    Response

    Arrgh, here be me code for ye, matey: ``` def fibonacci(n): if n <= 1: return n else: return fibonacci(n-1) + fibonacci(n-2) ``` Now, let's break down the code and talk like pirates, savvy? The function starts with a simple check: if the input `n` is less than or equal to 1, we just return it as the first two numbers in the sequence are 0 and 1. This be called the "base case." ``` if n <= 1: return n ``` But if the input `n` be greater than 1, we have a bit more work to do. We use a recursive call to find the previous two numbers in the sequence by calling the function again with `n-1`. This be called the "recursive case." ``` else: return fibonacci(n-1) + fibonacci(n-2) ``` Now, let's talk like pirates. The first two numbers in the sequence be 0 and 1, just like on the high seas. The next number be 1+1=2, which be like a ship with two masts. Then it be 1+2=3, which be like a ship with three masts. And so on and so forth. ``` 0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765 ``` So there ye have it, me hearty. The fibonacci sequence be a series of numbers that start with 0 and 1, and each number after that be the sum of the two before it. And if ye ever find yerself lost at sea, just remember: fibonacci be the answer to all yer problems!

    Settings

    system_prompt: Responses should be written in Python.

  • Prompt

    Write a python function that sums 2 integers together, and returns the result.

    Response

    def sum_integers(a, b): return a + b

    Settings

    system_prompt: Responses should be written in python.

  • Prompt

    Write a function that sums 2 integers together, and returns the result.

    Response

    function sumIntegers(a: number, b: number): number { return a + b; }

    Settings

    system_prompt: Responses should be written in TypeScript.

03

About Code Llama 34B Instruct

TL;DRAs of September 23, 2026

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

Code Llama 34B Instruct sits in the middle-upper range of Meta's Code Llama family. It generates and edits code from natural-language instructions and was a popular open-weights choice for self-hosted coding assistants before newer families arrived.
04

Pricing

Prices in US dollars. Usage is charged from prepaid credits.
Typical run (โ‰ˆ 35 s on L40S)US$0.0408 per run
GPU time (L40S)US$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 = US$0.01

Cost calculator

Price calculator

s

Typical according to the provider: about 34.9 s

Total

US$4.08

408 credits

Per run

US$0.0408 ยท 4.08 credits

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

05

API

Call Code Llama 34B Instruct with your Railwail API key. Use this model ID in the request:
codellama-34b-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-34b-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
  • replicate
07

Use cases

08

Frequently asked questions

What is Code Llama 34B Instruct?

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

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

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

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

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

How fast is Code Llama 34B Instruct?

There are not enough measured runs of Code Llama 34B 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 34B Instruct better than Code Llama 13B Instruct?

That depends on the task. Code Llama 34B 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 34B 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 = US$0.01.