dreamlayer_generate
Generate or edit images from text prompts, run image-to-image, background removal, or upscaling. Asks clarifying questions when a request is ambiguous, returning an image or a question.
Instructions
Generate or edit an image and return the resulting event stream. May end asking the user a question instead of producing an image; that is not a failure. Costs one credit per finished image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | ||
| respond | No | Answer a previous question. Requires conversation_id. | |
| operation | No | Name it to run deterministically and skip interpretation, so the request cannot come back as a question. Omit it to let DreamLayer read the prompt. | |
| aspect_ratio | No | One of 1:1, 16:9, 9:16, 4:3, 3:4. | |
| input_asset_id | No | From dreamlayer_upload_image. Required for every operation except text_to_image. | |
| conversation_id | No | ||
| idempotency_key | No | Optional. Generated automatically. Supply the SAME one to retry safely. |