Code Llama 34B Instruct
codellama-34b-instructMeta'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
Playground
Try Code Llama 34B Instruct
Input & output
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.
Examples
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.
About Code Llama 34B Instruct
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.
Pricing
| 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
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.
API
No verified API example
The public API passes a different input format than this model needs. Use the playground above.
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.
promptrequiredCoding prompt
Type: TextDefault: โAllowed values: โmax_tokensType: IntegerDefault:1024Allowed values: 1 to 4,096temperatureType: NumberDefault:0.2Allowed values: 0 to 2system_promptOptional system instruction
Type: TextDefault: โAllowed values: โ
Tags
- meta
- code-llama
- coding
- instruct
- open-weights
- replicate
Use cases
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 InstructComparable models
All in this categoryMeta's 13B Code Llama tuned for instruction following. A faster mid-size option for code generation and completion, supporting infilling for inserting code at a cursor position. Served on Replicate per call.
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.
โ US$0.0504/run
24 % more expensive per unit
Compare Code Llama 34B Instruct vs. Code Llama 70B InstructMeta'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.
All models through one API
One API key for every model on Railwail. Usage is charged from prepaid credits, 1 credit = US$0.01.