Cloudflare

Cloudflare · @cf/meta/llama-4-scout-17b-16e-instruct

🟢 261ms 10K neurons/day shared 📏 131K

🛡️ 🛡️ Free Tier Policy & Rate Limits

Daily Neurons Replenish No Credit Card Email Only · No ID Zero Unexpected Bill
Context Window 131K
Rate Limit RPM Edge Node Dynamic Balancing
Daily Quota & Reset 10,000 Neurons Daily · Daily Reset at 00:00 UTC
Auth & Card Requirement No Card Needed
Supported Capabilities:
multimodal

📋 Core Endpoint & Model Parameters

OpenAI API Compatible
Base URL
https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run
Model ID
@cf/meta/llama-4-scout-17b-16e-instruct
🟢 [No Card Required] Register account to get Key
👉 Go to Console to Get Key

💡 Caveats & Rate Limits

🎯 Official Free Tier Endpoint · 131K Context

📋 Free Tier Quota Rules and Constraints

  • 10,000 Neurons compute units renewed daily for free
  • Supports Llama 3.3, DeepSeek R1 and diverse open-source models
  • Sign up with email without credit card on global Anycast edge

🛡️ Zero-Billing Protection and Risk Prevention

Stops gracefully with an error on hitting daily limit with zero bill risk.

Quick Integration Code and Client Setup

🍒 Connect Cherry Studio
curl https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "@cf/meta/llama-4-scout-17b-16e-instruct",
    "messages": [{"role": "user", "content": "Hello!"}],
    "stream": true
  }'
from openai import OpenAI

client = OpenAI(
    base_url="https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="@cf/meta/llama-4-scout-17b-16e-instruct",
    messages=[{"role": "user", "content": "Hello!"}],
    stream=True
)

for chunk in response:
    content = chunk.choices[0].delta.content or ""
    print(content, end="", flush=True)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run",
  apiKey: "YOUR_API_KEY"
});

const stream = await client.chat.completions.create({
  model: "@cf/meta/llama-4-scout-17b-16e-instruct",
  messages: [{ role: "user", content: "Hello!" }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content || "");
}
{
  "apiProvider": "openai",
  "openAiBaseUrl": "https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run",
  "openAiApiKey": "YOUR_API_KEY",
  "openAiModelId": "@cf/meta/llama-4-scout-17b-16e-instruct"
}
✓ ✓ Copied