Last refreshed 2026-07-09. Next refresh: weekly.
Why use Llama 2 7B Chat on Cloudflare Workers AI?
Cloudflare Workers AI offers Llama 2 7B Chat with competitive pricing. Cloudflare is a leading connectivity cloud company that provides a comprehensive suite of cloud-native products and developer tools to enhance web performance, security, and reliability.
Compare Llama 2 7B Chat across 10 providers to find the best fit for your use caseSetup recipe
Docs fallbackUse the provider REST API or SDKCreate a provider API keymodel: @cf/meta/llama-2-7b-chat-fp16@cf/meta/llama-2-7b-chat-fp16Request example
@cf/meta/llama-2-7b-chat-fp16.Gotchas
- Use provider model ID "@cf/meta/llama-2-7b-chat-fp16", not the LLMReference slug "llama2-7b-chat".
Compare Llama 2 7B Chat Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| Alibaba Cloud PAI-EAS | — | — |
| Baseten API | — | — |
| Fireworks AI | $0.20 | $0.20 |
| Microsoft Foundry | $0.52 | $0.67 |
| GCP Vertex AI | $0.08 | $0.24 |
Capabilities
About Llama 2 7B Chat
The Llama 2 7B Chat model is a fine-tuned variant of Meta's Llama 2 series, optimized for conversational AI applications. Built on an auto-regressive transformer architecture, it boasts 7 billion parameters and has been trained on a diverse dataset of 2 trillion tokens. The model underwent supervised fine-tuning and reinforcement learning with human feedback to enhance its performance in dialogue scenarios. It demonstrates competitive capabilities in terms of helpfulness and safety compared to both open-source and closed-source alternatives like ChatGPT and PaLM.