Deploy SAM

Cloudflare Workers AI

Built-in models for SAM features and for your agents

Workers AI comes with the Cloudflare account that runs SAM. SAM uses it for task titles, text to speech, voice input and the SAM assistant, and agents can call its models while they work within a monthly budget.

What you get

No separate model key

Workers AI is billed to the Cloudflare account that runs your SAM installation.

Models for your agents

Agents can call Workers AI models, such as a yes-or-no decision model or Whisper for transcription, within a monthly budget per project.

Platform features

Task titles, reading messages aloud, voice input and the SAM assistant use Workers AI models.

AI Gateway where it fits

Task titles and the AI proxy go through Cloudflare AI Gateway for logging and limits. Speech and transcription call the model directly.

Set it up in 3 steps

  1. Already built in

    Workers AI is bound to the SAM Worker when you deploy. There is nothing to connect.

  2. Set a budget

    Give agents a monthly budget for Workers AI calls in project settings.

  3. Watch usage

    Administrators see AI usage and cost on the admin pages.

Good for

Small decisions inside a task

Let an agent ask a cheap model a yes-or-no question instead of spending its main model's tokens.

Speech in and out

Dictate prompts and have replies read aloud.

Questions

Does Workers AI need its own API key?

No. It uses the Cloudflare account that runs SAM. Self-hosting SAM needs the Workers Paid plan.

Can my coding agent use Workers AI as its main model?

Not directly. Coding agents use their own providers. Agents can call Workers AI models as a tool alongside their main model.

Which models does SAM use?

Gemma 4 26B for task titles and preparing text for speech, Deepgram Aura 2 for text to speech and Whisper for voice input. The SAM assistant and AI proxy models are set per installation.


Get your coding agents off your laptop

SAM is open source. Deploy it to your Cloudflare account and connect your agent. Add a cloud provider when you want full environments on your own servers.