vendor/model route. The default vendor is Workers AI, which needs only a Cloudflare token and account id.
The Cloudflare class defaults to @cf/meta/llama-3.3-70b-instruct-fp8-fast. Agno rewrites any @cf/... id to workers-ai/@cf/... for the gateway.
Authentication
Cloudflare needs an API token and your account id. The AI Gateway id is optional and falls back todefault.
Example
UseCloudflare with your Agent:
View more examples here.
Parameters
Cloudflare extends the OpenAI-compatible interface and supports most parameters from the OpenAI model. Use use_json_mode=True for structured output when a model does not support native structured outputs.
Model selection
Pick the route by settingid: