Developer API
DreamUtopia API
Generate images and videos from your own scripts, or hand the recipe to an AI coding agent. One REST API, one API key, the same credits and models as the web app.
Base URL
https://api.dreamutopia.net/v1Authentication
Bearer du_live_…Access
Paid accounts only
60-second quickstart
- Create a key on your profile page and export it. A key is shown once; store it somewhere safe.
export DREAMUTOPIA_API_KEY="du_live_..."Create an image and read the job id:
curl -sS -X POST https://api.dreamutopia.net/v1/images/generations \
-H "Authorization: Bearer $DREAMUTOPIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"lite","prompt":"a red fox in fresh snow","resolution":"2k","aspect_ratio":"1:1"}'{ "id": "3f2b…", "type": "image", "status": "queued", "created_at": "2026-10-24T12:00:00Z" }Poll until it finishes, then use the result URL:
curl -sS https://api.dreamutopia.net/v1/generations/3f2b… \
-H "Authorization: Bearer $DREAMUTOPIA_API_KEY"{ "id": "3f2b…", "type": "image", "status": "succeeded",
"result": { "url": "<result_url>" }, "error": null }What you can build
- Images — text-to-image, image-to-image, and multi-reference blending.
- Videos — text-to-video, image-to-video, first/last frame, optional audio.
- Jobs — one polling shape for both media types.
- Models & account — live tiers, resolutions, durations and the credit matrix.
- API keys — mint, list and revoke from the profile page.
Use it from an AI coding agent
Each harness page carries a complete skill you can paste into the harness chat. The same recipe works everywhere; only the harness you paste it into changes.