Browse models
Edge-Hosted Model Catalog: Selection, Inference APIs, Pricing, and Capabilities
How to choose @cf model IDs on Workers AI, call them via REST or OpenAI-compatible APIs, and read pricing and access rules.
This page summarises Cloudflare Workers AI documentation on its Cloudflare-hosted model catalog: how models are named, what capability badges mean, how to invoke them, and what limits apply. The same entries appear on the AI models listing; each model has a detail page under workers-ai/models/ (for example gpt-oss-120b).
Workers AI model catalog: what is hosted at the edge
Section titled “Workers AI model catalog: what is hosted at the edge”Workers AI exposes third-party and open-weight models under stable string IDs of the form @cf/<publisher>/<model-name>. Every catalog entry is Cloudflare-hosted: you run inference through Cloudflare’s API or a Workers binding without provisioning GPUs yourself. Tasks are grouped by modality—Text Generation, Translation, Text Classification, Image-to-Text, Image Classification, Text Embeddings—and individual pages list Model Info such as context window, Unit Pricing, and optional Terms and License links.
The catalog is large and changes over time; the authoritative list is the Workers AI Models page (mirrored at AI models). Use model pages when you need exact numbers—for example granite-4.0-h-micro documents a 131,000-token context and per-million-token prices on its own page, while the listing gives a one-line summary of what the model is for.
@cf model identifiers: how to choose the right model
Section titled “@cf model identifiers: how to choose the right model”Pick an ID from the catalog that matches task, context length, modalities, and budget. The ID is what you pass to env.AI.run() or the REST /ai/run/ path; there is no separate “deployment name.”
Text generation: production chat, agents, and reasoning
Section titled “Text generation: production chat, agents, and reasoning”General instruct models cover dialogue, retrieval, and summarization. Small Meta Llama 3.2 instruct models are positioned for multilingual dialogue and agentic retrieval at low cost—for example @cf/meta/llama-3.2-1b-instruct (60,000-token context) versus @cf/meta/llama-3.2-3b-instruct (80,000 tokens, LoRA).
For heavier reasoning or agents, compare models that explicitly list Reasoning and Function calling. OpenAI’s open-weight gpt-oss pair is described as:
OpenAI’s open-weight models designed for powerful reasoning, agentic tasks, and versatile developer use cases – gpt-oss-120b is for production, general purpose, high reasoning use-cases.
— Cloudflare,
gpt-oss-120b
The smaller sibling is for latency-sensitive work:
OpenAI’s open-weight models designed for powerful reasoning, agentic tasks, and versatile developer use cases – gpt-oss-20b is for lower latency, and local or specialized use-cases.
— Cloudflare,
gpt-oss-20b
Both list a 128,000-token context, Batch, Function calling, and configurable reasoning effort (low, medium default, high).
Other reasoning-oriented entries in this cluster include @cf/deepseek-ai/deepseek-r1-distill-qwen-32b (80,000 tokens; higher output token price), @cf/qwen/qwq-32b (24,000 tokens, LoRA), and @cf/nvidia/nemotron-3-120b-a12b (256,000 tokens, agentic focus). For cost-sensitive agent tooling, @cf/ibm-granite/granite-4.0-h-micro is described as strong on instruction following and function calling for RAG and multi-agent workflows.
| Goal | Example ID | Context (from model page) | Notable badges |
|---|---|---|---|
| Cheapest general text | @cf/meta/llama-3.2-1b-instruct |
60,000 | — |
| Agent + tools on a budget | @cf/ibm-granite/granite-4.0-h-micro |
131,000 | Function calling |
| Open-weight reasoning (production) | @cf/openai/gpt-oss-120b |
128,000 | Reasoning, Batch, Responses API |
| Open-weight reasoning (lower latency) | @cf/openai/gpt-oss-20b |
128,000 | Same, lower $/M tokens |
| Code | @cf/qwen/qwen2.5-coder-32b-instruct |
32,768 | LoRA |
| Voice agents | @cf/daily-co/phonellm-mini-alpha-2 |
262,140 | Function calling |
Always confirm Unit Pricing on the model page and in the Workers AI pricing table before locking in a design.
Vision and multimodal models: images plus text
Section titled “Vision and multimodal models: images plus text”Models with Vision accept image plus text inputs (exact schema is on each model page). Examples in this cluster:
@cf/meta/llama-3.2-11b-vision-instruct— visual recognition, captioning, image Q&A; 128,000-token context; LoRA.@cf/meta/llama-4-scout-17b-16e-instruct— natively multimodal MoE; Batch, Function calling.@cf/google/gemma-4-26b-a4b-it— 256,000 tokens; Reasoning, Batch.@cf/moondream/moondream3.1-9B-A2B— image-to-text; OCR and structured visual output.@cf/mistralai/mistral-small-3.1-24b-instruct— text and vision; 128,000 tokens.
Open multilingual vision plus long context appears on @cf/qwen/qwen3.8-27b (262,144 tokens, cached-input pricing on the model page).
Translation, classification, safety, and other modalities
Section titled “Translation, classification, safety, and other modalities”Use task-specific IDs instead of forcing a chat model:
- Translation:
@cf/meta/m2m100-1.2b(many-to-many);@cf/ai4bharat/indictrans2-en-indic-1B(22 scheduled Indic languages). - Sentiment:
@cf/huggingface/distilbert-sst-2-int8— SST-2 sentiment classification. - Image classification:
@cf/microsoft/resnet-50— priced per inference request on the model page. - Safety / moderation:
@cf/meta/llama-guard-3-8b— classifies prompts and responses; outputs safe/unsafe and categories.
Regional or restricted models may require extra steps (see below)—for example @cf/utter-project/eurollm-9b-it and @cf/swiss-ai/apertus-v1.5-8b point to an access form.
Model capabilities: Function calling, Reasoning, LoRA, Batch, and Beta
Section titled “Model capabilities: Function calling, Reasoning, LoRA, Batch, and Beta”Capability labels on catalog cards are contractual hints for integration design:
| Badge | Meaning in practice |
|---|---|
| Function calling | Model supports tool/function schemas for agents (see agent-oriented models such as gpt-oss, Granite, Nemotron). |
| Reasoning | Model exposes reasoning controls (e.g. reasoning.effort on gpt-oss in Responses API examples). |
| Vision | Multimodal inputs (images); distinct from text-only instruct models. |
| LoRA | Base weights reserved for LoRA adapter inference (e.g. Gemma/Llama -lora models, often marked Beta). |
| Batch | Batch-oriented usage supported on that model page (gpt-oss, Gemma 4, several Llama variants). |
| Beta | Model or LoRA path is beta; expect stricter change risk (e.g. gemma-2b-it-lora, llava-1.5-7b-hf). |
LoRA entries are not generic chat endpoints—they are bases for adapter-based inference as described on pages such as llama-2-7b-chat-hf-lora.
Inference APIs: Workers binding, REST /run, and OpenAI-compatible routes
Section titled “Inference APIs: Workers binding, REST /run, and OpenAI-compatible routes”You can call the same @cf/... ID through several surfaces. The OpenAI open models changelog summarises gpt-oss wiring:
- Workers binding:
env.AI.run("@cf/openai/gpt-oss-120b")— accepts/returns Responses API shape for these models. - REST legacy run:
https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/run/@cf/openai/gpt-oss-120b - REST Responses:
https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/v1/responses - OpenAI-compatible chat:
https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/v1/chat/completions— for gpt-oss, chat completions on this route were noted as coming soon in that changelog; other text models use Chat Completions as described in OpenAI compatible API endpoints.
Example REST body for gpt-oss via /v1/responses (from the same changelog):
curl https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/v1/responses \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $CLOUDFLARE_API_KEY" \ -d '{ "model": "@cf/openai/gpt-oss-120b", "reasoning": {"effort": "medium"}, "input": [ { "role": "user", "content": "What are the benefits of open-source models?" } ] }'Cloudflare announced Day 0 availability of gpt-oss on Workers AI with Responses API, Code Interpreter, and Web Search (coming soon)—see OpenAI open models now available on Workers AI.
OpenAI-compatible base URL: Chat Completions vs Responses API
Section titled “OpenAI-compatible base URL: Chat Completions vs Responses API”OpenAI compatible API endpoints states:
Workers AI provides OpenAI-compatible endpoints for text generation through Chat Completions (/v1/chat/completions) and for text embedding models (/v1/embeddings). The Responses API (/v1/responses) is available only for GPT-OSS models. Easily call Workers AI by swapping the baseURL in the standard OpenAI SDK.
For gpt-oss specifically:
The Responses API is supported only by the @cf/openai/gpt-oss-120b and @cf/openai/gpt-oss-20b models. Responses requests must be non-streaming, only stream: false is supported.
— Cloudflare, OpenAI compatible API endpoints
Use baseURL https://api.cloudflare.com/client/v4/accounts/${account_id}/ai/v1 with the OpenAI SDK and openai.responses.create({ model: "@cf/openai/gpt-oss-120b", ... }) when you target gpt-oss. Use Chat Completions (/v1/chat/completions) for the broader text and embedding catalog, and embeddings (/v1/embeddings) for embedding models—per that compatibility page.
Pricing: per-million tokens, Neurons, and output-heavy workloads
Section titled “Pricing: per-million tokens, Neurons, and output-heavy workloads”Published prices appear on each model page (Unit Pricing) and in aggregate on Workers AI pricing. LLM rows list Price in Tokens (USD per million input/output tokens) and Price in Neurons (Cloudflare’s internal metering).
Patterns worth planning for:
- Output tokens often cost several times input tokens (for example gpt-oss-120b: $0.35/M input, $0.75/M output on its model page).
- Reasoning models with long chains (deepseek-r1-distill-qwen-32b, qwen3.8-27b) can be output-heavy; check both sides of the price row.
- Non-LLM billing differs:
resnet-50uses per-request pricing; classification models like distilbert charge per million input tokens only in the other model pricing section.
Some newer models document cached input token rates on the model page (e.g. qwen3.8-27b); the central pricing table may list additional DeepSeek and Moonshot variants not duplicated in this cluster’s snippets—reconcile with Workers AI pricing before budgeting.
Access, license, and restricted models
Section titled “Access, license, and restricted models”Meta Llama 3.2 11B Vision: license acceptance
Section titled “Meta Llama 3.2 11B Vision: license acceptance”Before normal use of @cf/meta/llama-3.2-11b-vision-instruct, you must accept Meta’s license via a one-time request. The Llama 3.2 11B Vision Instruct tutorial and the model page document:
To use Llama 3.2 11b Vision Instruct, you need to agree to the Meta License and Acceptable Use Policy. To do so, please send an initial request to @cf/meta/llama-3.2-11b-vision-instruct with “prompt” : “agree”. After that, you’ll be able to use the model as normal.
Acceptance call (replace account and token placeholders):
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run/@cf/meta/llama-3.2-11b-vision-instruct \ -X POST \ -H "Authorization: Bearer $CLOUDFLARE_AUTH_TOKEN" \ -d '{ "prompt": "agree" }'Form-gated models
Section titled “Form-gated models”Several open models require filling out https://forms.gle/kgvmkr6ucHN3xNuH6 before access—stated on apertus-v1.5-8b (262,144-token context, Vision, Function calling) and eurollm-9b-it. Plan compliance review before building on those IDs.
Terms and License links
Section titled “Terms and License links”Many Meta, Google, DeepSeek, and NVIDIA pages include a Terms and License link in Model Info. Follow it for redistribution and acceptable-use rules separate from Cloudflare’s platform terms.
Common mistakes when using the catalog
Section titled “Common mistakes when using the catalog”- Wrong API for the model — Using Chat Completions against gpt-oss when the compatibility page reserves Responses API for
@cf/openai/gpt-oss-120band@cf/openai/gpt-oss-20bonly. - Assuming streaming — Responses requests for gpt-oss must be non-streaming (
stream: falseonly). - Ignoring output token cost — Picking a reasoning model without checking output $/M tokens on pricing.
- Skipping license steps — Deploying Llama Vision without the
prompt: "agree"handshake. - Treating LoRA bases as full instruct models — -lora pages describe adapter inference, not always the same UX as standard instruct checkpoints.
- Stale ID after catalog updates — New entries (e.g. gpt-oss in the Workers AI changelog) may add models; verify IDs on Workers AI Models before production deploys.
Metering
SDK swap
How to check this on your site
Section titled “How to check this on your site”-
Open Workers AI Models and confirm your chosen
@cf/...ID, context window, and capability badges match the workload. -
On that model’s detail page (for example gpt-oss-120b), note Unit Pricing and compare with the same row on Workers AI pricing.
-
Send a minimal authenticated request using the API surface documented for that model—
/ai/run/for generic runs, or/ai/v1/responsesfor gpt-oss per OpenAI compatible API endpoints—and confirm the response shape matches your client. -
For
@cf/meta/llama-3.2-11b-vision-instruct, run the licenseagreerequest from the Llama vision tutorial once per account before production traffic. -
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page disagrees with the linked Cloudflare documentation, email yimasynthetic@gmail.com with the page URL and the sentence you believe is wrong, and we will clarify or correct it.