Using Fireworks CodeLlama-34b-Instruct on Fireworks AI
Implementation guide · Code Llama · AI at Meta
ServerlessOpen Weights
Fireworks AI exposes Fireworks CodeLlama-34b-Instruct through model ID fireworks-codellama-34b-instruct. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-07-09. Next refresh: weekly.
Quick Start
- 1
- 2Use the Fireworks AI SDK or REST API to call
fireworks-codellama-34b-instruct— see the documentation for request format. - 3
Code Examples
Install
pip install openaiAPI key
FIREWORKS_API_KEYModel ID
fireworks-codellama-34b-instructFireworks model IDs use "accounts/fireworks/models/{model-name}" format, e.g. "accounts/fireworks/models/llama4-scout-instruct-basic" or "accounts/fireworks/models/deepseek-r1".
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["FIREWORKS_API_KEY"],
base_url="https://api.fireworks.ai/inference/v1"
)
response = client.chat.completions.create(
model="fireworks-codellama-34b-instruct",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Fireworks AI
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.30 |
| Output tokens | $0.30 |
Capabilities
No model capability flags are currently sourced.
About Fireworks CodeLlama-34b-Instruct
Fireworks CodeLlama-34b-Instruct is Meta's Code Llama model. It offers a 16K-token context window with weights openly available for self-hosting.
Model Specs
Released2023-07-18
Parameters34B
Context16k
ArchitectureDecoder Only
Knowledge cutoff2024-03