为什么选择 FLUX.2 [klein]?
如果你需要秒出的、电影级质感的 AI 生图,FLUX.2 [klein] 是目前的工业级标准。它在保持细节丰富度的同时,极大地降低了推理开销。
Get high-speed free access to flux-2-klein on Cloudflare Workers AI with 10,000 daily free neurons. No credit card required.
如果你需要秒出的、电影级质感的 AI 生图,FLUX.2 [klein] 是目前的工业级标准。它在保持细节丰富度的同时,极大地降低了推理开销。
Cloudflare Workers AI 为所有免费账户提供每天 10,000 Neurons 的免费额度。这一额度足够支撑每天上百次的文本生成、数十张高质量生图或多段长音频转录。
Cloudflare Workers AI 支持直接调用 Flux.1 Schnell、Stable Diffusion XL、Whisper 等模型,每日提供 10,000 Neurons 免费算力额度,无需绑定海外信用卡。
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.
curl https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/ai/run/@cf/black-forest-labs/flux-1-schnell-klein \
-H "Authorization: Bearer $CF_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A futuristic city in cyberpunk style, highly detailed 8k",
"steps": 4
}' --output image.jpgimport requests
ACCOUNT_ID = "YOUR_CF_ACCOUNT_ID"
API_TOKEN = "YOUR_CF_API_TOKEN"
response = requests.post(
f"https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/run/@cf/black-forest-labs/flux-1-schnell-klein",
headers={"Authorization": f"Bearer {API_TOKEN}"},
json={"prompt": "A futuristic city in cyberpunk style, highly detailed 8k", "steps": 4},
)
with open("output.jpg", "wb") as f:
f.write(response.content)
print("Image successfully saved as output.jpg")
Community Feedback
Comments are tied to your GitHub account — sign in to join the discussion.