Generate image
generate_imageCreate images from text prompts using Poe image bots, edit or remix with reference pictures, and save files locally with returned paths.
Instructions
Generate an image from a text prompt with a Poe image bot (default: GPT-Image-1; others include FLUX-pro-1.1-ultra, Imagen-4-Ultra, Ideogram-v3, Seedream-4.0, Nano-Banana). Pass reference_images to edit or remix existing pictures. Files are saved locally and their paths returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Poe bot name, e.g. GPT-Image-1, Imagen-4-Ultra, FLUX-pro-1.1-ultra | |
| prompt | Yes | What to draw | |
| output_dir | No | Folder to save files in. Defaults to /root/poe-media | |
| parameters | No | Extra bot-specific parameters sent with the request (Poe's extra_body), e.g. {"aspect_ratio": "16:9"}. Names differ per bot; see the bot's page at poe.com/<bot>/api. | |
| aspect_ratio | No | e.g. 1:1, 16:9, 9:16, 4:3 | |
| prompt_flags | No | Poe-style flags appended to the prompt, e.g. "--aspect 16:9 --duration 8". Use when a bot ignores `parameters`. | |
| reference_images | No | Local image paths to edit or use as reference |