Free Mistral Small 3.1 API on Cloudflare Workers AI

Get high-speed free access to mistral-small-3-1 on Cloudflare's global edge network.

Updated 6/9/2026Provider trust 99/1002 code examples

About the Model

为什么选择 Mistral Small 3.1?

Mistral Small 3.1 证明了参数量不代表一切。24B 的体量却拥有极其强悍的逻辑推理能力,尤其是在 JSON 输出和工具调用方面。

How to Access for Free (via Cloudflare Workers AI)

Cloudflare 免费政策

Cloudflare Workers AI 为所有免费账户提供每天 10,000 Neurons 的免费额度。这一额度足够支撑每天上百次的文本生成、数十张高质量生图或多段长音频转录。

Try it in your browser

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

Code Examples

curl
curl https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/ai/run/@cf/mistralai/mistral-small-3.1-24b-instruct \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -d '{"messages":[{"role":"user","content":"Hello!"}]}'
python
import os, requests

account = os.environ["CF_ACCOUNT_ID"]
token = os.environ["CF_API_TOKEN"]

resp = requests.post(
    f"https://api.cloudflare.com/client/v4/accounts/{account}/ai/run/@cf/mistralai/mistral-small-3.1-24b-instruct",
    headers={"Authorization": f"Bearer {token}"},
    json={"messages": [{"role": "user", "content": "Hello!"}]},
)
print(resp.json()["result"]["response"])