input.messages holds one user message whose content is a single {"text": "..."}. Prompts can be Chinese or English, ideally under 4,500 tokens; other languages may work but are not guaranteed.
Writing prompts
- Subject and scene: say what is in the picture, where and what it is doing; specific counts and positions are followed more accurately.
- Style and light: photorealistic, watercolor, 3D render; early-morning backlight, soft natural light, neon night.
- Composition and camera: close-up, top-down, wide angle, where to leave empty space.
- Text in the image: put the words in quotes and give their position, font, color or material, e.g. “the words ‘Full Moon, Family Reunion’ in gold calligraphy in the center”.
- What to avoid: put it in
parameters.negative_prompt, e.g. “low resolution, misspelled text, blurry”.
Request
A 16:9 poster with Chinese text. The prompt is already detailed, soprompt_extend is off to follow it literally and save time. $DREAMTO_API_KEY is your API Key.
output.choices[0].message.content[].image holds the image links (PNG, valid for 24 hours) and usage the billed quantities:
Common parameters
See Create image for every field.

