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
Install theopenai package, which Cloudflare uses as its client:
Cloudflare with your Agent:
View more examples here.
Parameters
Cloudflare extends the OpenAI-compatible interface and supports most parameters from the OpenAI model. For structured output on models without native support, set use_json_mode=True on the Agent.
Model selection
Pick the route by settingid: