Lewati ke konten
Logo Cloudflare Workers AI

Cloudflare Workers AI

Inference36 modelcontext maks 262KGratis: 10,000 Neurons/hari

Catatan dari sumber

10,000 Neurons/day free, no credit card required. 75+ models available on the free tier.

Setup dalam 5 menit

import OpenAI from "openai";

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

const response = await client.chat.completions.create({
  model: "cf-moonshotai-kimi-k2-7-code",
  messages: [{ role: "user", content: "Halo!" }],
});

console.log(response.choices[0].message.content);
.env
CLOUDFLARE_WORKERS_AI_API_KEY=your-api-key-here

Belum punya API key? Ambil di halaman resmi Cloudflare Workers AI.

Cara claim API key gratis

Langkah umum — detail pastinya ikutin halaman resmi Cloudflare Workers AI.

  1. 1.Buka halaman API key Cloudflare Workers AI
  2. 2.Daftar akun baru, atau login kalau udah punya.
  3. 3.Generate API key di dashboard / settings.
  4. 4.Pakai API key + Base URL https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run di SDK atau HTTP client.

Model tersedia (36+)

@cf/moonshotai/kimi-k2.7-code
cf-moonshotai-kimi-k2-7-code
Modality
text + code + image + video + reasoning
Context
262K
Output
256K
Rate limit
10K neurons/day (shared)
@cf/google/gemma-4-26b-a4b-it
@cf/google/gemma-4-26b-a4b-it
Modality
Text + Vision
Context
256K
Output
Shared w/ context
Rate limit
10K neurons/day (shared)
@cf/meta/llama-4-scout-17b-16e-instruct
@cf/meta/llama-4-scout-17b-16e-instruct
Modality
Multimodal
Context
131K
Output
Shared w/ context
Rate limit
10K neurons/day (shared)
@cf/zai-org/glm-4.7-flash
@cf/zai-org/glm-4.7-flash
Modality
Text
Context
131K
Output
Shared w/ context
Rate limit
10K neurons/day (shared)
@cf/mistralai/mistral-small-3.1-24b-instruct
@cf/mistralai/mistral-small-3.1-24b-instruct
Modality
Text
Context
128K
Output
Shared w/ context
Rate limit
10K neurons/day (shared)
@cf/openai/gpt-oss-120b
@cf/openai/gpt-oss-120b
Modality
Text
Context
128K
Output
Shared w/ context
Rate limit
10K neurons/day (shared)
@cf/deepseek-ai/deepseek-r1-distill-qwen-32b
@cf/deepseek-ai/deepseek-r1-distill-qwen-32b
Modality
Text (reasoning)
Context
80K
Output
Shared w/ context
Rate limit
10K neurons/day (shared)
Mistral 7B
mistral-7b
Modality
text
Context
33K

+ 72 more models model lainnya — lihat daftar lengkap di sumber.

Model ini di provider lain (8)

FAQ

Apakah API Cloudflare Workers AI gratis?

Ya — 10,000 Neurons/hari. Data dari mnfst/awesome-free-llm-apis, freellm.net, models.dev, terakhir di-sync 2 Sep 2026 — cek sumber untuk kondisi terbaru.

Ada berapa model gratis di Cloudflare Workers AI?

36 model tercantum per 2 Sep 2026, termasuk @cf/moonshotai/kimi-k2.7-code, @cf/google/gemma-4-26b-a4b-it, @cf/meta/llama-4-scout-17b-16e-instruct.

Berapa rate limit Cloudflare Workers AI?

Beda-beda per model, contoh: @cf/moonshotai/kimi-k2.7-code: 10K neurons/day (shared); @cf/google/gemma-4-26b-a4b-it: 10K neurons/day (shared); @cf/meta/llama-4-scout-17b-16e-instruct: 10K neurons/day (shared). Limit lengkap per model, lihat tabel di atas.

Berapa context window maksimal di Cloudflare Workers AI?

262K (@cf/moonshotai/kimi-k2.7-code).