LLM Reference
Microsoft Foundry

Using CodeLlama 34B Python on Microsoft Foundry

Implementation guide · Code Llama · AI at Meta

ProvisionedOpen Weights

Microsoft Foundry exposes CodeLlama 34B Python through model ID codellama-34b-python. 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. 1
    Create an account at Microsoft Foundry and generate an API key.
  2. 2
    Use the Microsoft Foundry SDK or REST API to call codellama-34b-python — see the documentation for request format.
  3. 3
    You'll be billed $1.54/1M input, $1.77/1M output tokens. See full pricing.

Code Examples

See Microsoft Foundry documentation for integration details.

Pricing on Microsoft Foundry

TypePrice (per 1M)
Input tokens$1.54
Output tokens$1.77

Capabilities

Structured Outputs

About CodeLlama 34B Python

CodeLlama 34B Python is a specialized code generation model released by Meta on August 24, 2023. With 34 billion parameters, it excels in Python-specific tasks like code completion, infilling, and instruction following. This model offers AI engineers a powerful tool for enhancing coding workflows and productivity. Its architecture is optimized for understanding and generating complex code structures, making it particularly useful for software development tasks. The model is available in the Hugging Face Transformers format, facilitating easy integration into existing projects .

Model Specs

Released2023-08-24
Parameters34B
Context100k
ArchitectureDecoder Only
Knowledge cutoff2024-03

Provider

Microsoft Foundry
Microsoft Foundry

Microsoft

Redmond, Washington, United States