Free Phoenix 1.0 API on Cloudflare

Free Phoenix 1.0 image API via Cloudflare Workers AI — Leonardo's coherent text-to-image with negative prompts within 10,000 free Neurons/day.

About the Model

Why use Phoenix 1.0?

Phoenix 1.0 is Leonardo AI's foundation text-to-image model, known for strong prompt coherence and fine control via guidance, seeds, and negative prompts.

Capabilities

Produces detailed images up to 2048px; negative prompts help exclude unwanted elements from your generations.

Why it's free

Covered by Cloudflare Workers AI's 10,000 free Neurons per day allowance.

> Note: as a Leonardo partner model, accept its terms once in your Cloudflare dashboard before the first call.

How to Access for Free (via Cloudflare Workers AI)

Free access on Cloudflare Workers AI

Generate images with Phoenix 1.0 through Cloudflare's global edge using the unified /ai/run REST endpoint. Every Cloudflare account includes 10,000 Neurons per day for free. This model returns raw JPEG bytes (not Base64). Optional negative_prompt, guidance, seed, and num_steps give fine control.

Authentication (BYOK)

Use your own Cloudflare Account ID and an API token with Workers AI access via Authorization: Bearer <token>.

> As a Leonardo partner model, accept its terms once in your Cloudflare dashboard before the first call.

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.

Your generated image will appear here.

Code Examples

curl
curl https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/ai/run/@cf/leonardo/phoenix-1.0 \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -d '{"prompt":"a majestic phoenix rising from flames, cinematic","negative_prompt":"blurry, low quality"}' \
  --output output.jpg
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/leonardo/phoenix-1.0",
    headers={"Authorization": f"Bearer {token}"},
    json={"prompt": "a majestic phoenix rising from flames, cinematic", "negative_prompt": "blurry, low quality"},
)
with open("output.jpg", "wb") as f:
    f.write(resp.content)  # Phoenix returns raw JPEG bytes