DreamLayer Agent API
What this lets you do
Use one managed image API for hosted routing, execution, recovery, billing, and asset delivery. The open local paths remain free to run without it.What you need
- A server-side DreamLayer test or live key
curl- Protocol version
1
Steps
1. Store the key for this shell
2. Send the first request
started, thinking, progress, job, question, asset, and done. thinking is empty operational state, not hidden reasoning.
3. Choose test or live mode
A test key returns a deterministic image, calls no provider, and consumes no credits. A live key reserves and settles one credit for a completed text-to-image or image-to-image operation.Confirm it worked
The stream begins withstarted, emits one asset, and ends with done status completed. Save the returned opaque execution and conversation IDs.
Common errors
401: the key is missing, invalid, or revoked.402: the live account does not have one available credit.429: the account reached a request or concurrency limit.503: managed execution is disabled.