Generate an image
generate_imageGenerate an image from a text description with GenMagic. Pass 'image' (an https or data URL) to transform THAT image instead of generating from scratch (image-to-image), and type "logo" to make a brand mark. Returns the image inline plus a hosted URL. On-brand automatically when the account has brand personalization on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Image size, e.g. 1024x1024 (square), 1792x1024 (wide), 1024x1792 (tall). | |
| type | No | Set to 'logo' to generate a brand mark instead of a picture. | |
| image | No | Optional reference image (an https URL or a data:image URL) to transform (image-to-image), e.g. a character to keep consistent. | |
| prompt | Yes | A description of the image to create (or the edit to make when 'image' is given). |