Code Llama 13B Instruct
codellama-13b-instructMeta'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.
- Price
- โ $0.0065/run
- Context
- 16,384 tokens
- Max. output
- 4,096 tokens
- Input โ output
- Text โ Text
- Developer
- Meta
- Updated
- September 23, 2026
Playground
Try Code Llama 13B Instruct
Input & output
This run
about $0.0065 ยท 0.65 credits
$0.0195 (1.95 credits) are reserved at the start; the actual GPU time is billed.
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. Enough for 5 runs of this model.
Examples
Prompt
Write a javascript function that calculates euclidean distance between two coordinates of any dimension
Response
``` function getEuclideanDistance(coord1, coord2) { // Calculate the difference between each coordinate pair in both sets. diffX = Math.abs(coord1[0] - coord2[0])) { diffY = Math.abs(coord1[1] - coord2[1])))) { diffZ = Math.abs(coord1[2] - coord2[2]]))))))) ???'); return dist; } var exampleCoordsArray = [[34.659,-118.8],[34.672,-118.7]], output = calculateEuclideanDistanceForTwoDimensionalCoordinatesOfAnyLength(exampleCoordsArray)); console.log('The output is: ', output]);
About Code Llama 13B Instruct
Code Llama 13B Instruct is a model by Meta in the Code category. On Railwail, Code Llama 13B Instruct costs โ $0.0065 per run. The context window holds 16,384 tokens, and one response can be up to 4,096 tokens long.
Pricing
| Typical run (โ 6 s on L40S) | $0.0065 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
Typical according to the provider: about 5.5 s
Total
$0.65
65 credits
Per run
$0.0065 ยท 0.65 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-13b-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
- infilling
- replicate
Use cases
Frequently asked questions
What is Code Llama 13B Instruct?
Code Llama 13B Instruct is a model by Meta in the Code category.
How much does Code Llama 13B Instruct cost on Railwail?
On Railwail, Code Llama 13B Instruct costs โ $0.0065 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 13B Instruct?
The context window of Code Llama 13B Instruct holds 16,384 tokens. One response can be up to 4,096 tokens long.
How fast is Code Llama 13B Instruct?
There are not enough measured runs of Code Llama 13B 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 13B Instruct better than Code Llama 34B Instruct?
That depends on the task. Code Llama 13B Instruct (Meta) and Code Llama 34B Instruct (Meta) are both models in the Code category. The comparison page shows their prices and specifications side by side.
Compare Code Llama 13B Instruct and Code Llama 34B InstructComparable models
All in this categoryMeta'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.
โ $0.0408/run
528 % more expensive per unit
Compare Code Llama 13B Instruct vs. Code Llama 34B InstructMeta'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.
โ $0.0504/run
675 % more expensive per unit
Compare Code Llama 13B 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.
โ $0.0074/run
14 % more expensive per unit
Compare Code Llama 13B Instruct vs. Code Llama 7B Instruct
All models through one API
One API key for every model on Railwail. Usage is charged from prepaid credits, 1 credit = $0.01.