it's free*.ai

Cloudflare Workers AI

Models at the edge, one fetch away from your Worker.

Workers AI runs inference at Cloudflare’s edge, so a Worker can call a model without a round trip to a regional GPU farm. The free unit is 10,000 neurons a day, shared across the catalogue. Llama 3.3 70B, GPT-OSS 120B and Qwen 3.8 stay on that tier.

The longest free window is 262K, on Qwen 3.8 27B — there is no 10M model here. Kimi K2.6, GLM 5.x and DeepSeek V4 are Workers Paid only. The REST URL needs your {account_id}; inside a Worker, use the AI binding instead.

Free models
40
Max context
262K
Free tier
10,000 neurons per day
Requirement
Email account, no card

Endpoint

Base URLhttps://api.cloudflare.com/client/v4/accounts/{account_id}/ai/v1
Env varCLOUDFLARE_API_TOKEN
Rate limit10K neurons per day (shared across models)

Code examples

npm install openai
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/v1',
  apiKey: process.env.CLOUDFLARE_API_TOKEN
})

const response = await client.chat.completions.create({
  model: '@cf/openai/gpt-oss-120b',
  messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})

console.log(response.choices[0].message.content)

Worth knowing

Models you get for free39