Free Lucid Origin API on Cloudflare

Free Lucid Origin image API via Cloudflare Workers AI — Leonardo's high-fidelity text-to-image up to 2500px within 10,000 free Neurons/day.

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

About the Model

Why use Lucid Origin?

Lucid Origin is Leonardo AI's high-fidelity text-to-image model with strong prompt adherence and resolutions up to 2500px, plus guidance and seed controls for repeatable results.

Capabilities

Great for detailed illustrations, product shots, and design work where prompt accuracy matters.

Why it's free

Runs within 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 Lucid Origin through Cloudflare's global edge using the unified /ai/run REST endpoint. Every Cloudflare account includes 10,000 Neurons per day for free. The response is a Base64-encoded image in result.image. Optional guidance, seed, width, and height (up to 2500px) give you 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.

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/leonardo/lucid-origin \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -d '{"prompt":"a futuristic city skyline at dusk, highly detailed","width":1024,"height":1024}'
python
import os, base64, 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/lucid-origin",
    headers={"Authorization": f"Bearer {token}"},
    json={"prompt": "a futuristic city skyline at dusk, highly detailed", "width": 1024, "height": 1024},
)
image_b64 = resp.json()["result"]["image"]
with open("output.png", "wb") as f:
    f.write(base64.b64decode(image_b64))
Free Lucid Origin API on Cloudflare - Free API, Quota & Code