Using Gemma 3 12B on Cloudflare Workers AI
Implementation guide · Gemma 3 · Google DeepMind
ServerlessOpen Weights
Cloudflare Workers AI exposes Gemma 3 12B through model ID @cf/google/gemma-3-12b-it. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-05-22. Next refresh: weekly.
Quick Start
- 1
- 2Use the Cloudflare Workers AI SDK or REST API to call
@cf/google/gemma-3-12b-it— see the documentation for request format. - 3
Code Examples
Pricing on Cloudflare Workers AI
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.34 |
| Output tokens | $0.56 |
Capabilities
Structured Outputs
About Gemma 3 12B
Gemma 3 12B is Google DeepMind's Gemma 3 model. It offers a 33K-token context window with weights openly available for self-hosting.
Model Specs
Released2026-01-01
Parameters12B
Context33k
ArchitectureDecoder Only
Knowledge cutoff2024-08