create_image
Generate an image from a text prompt and keep it on MintPage, ready to put in a page. model: grok (Grok Imagine by xAI). Returns url, width, height and ready-made markdown and html. Put it in a page with the returned markdown or html (or its url in an ): the link is permanent and works in MintPage pages; other sites can't embed it. Pro only: 50 images a month. The prompt is sent to xAI. Takes about 5–20 seconds. Requires an API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Image model. grok = Grok Imagine (xAI). | grok |
| prompt | Yes | What the image should show, in detail: subject, style, colors, composition. Text you want written in the image goes in quotes. | |
| aspect_ratio | No | 16:9 for a banner or hero, 1:1 for a card, 9:16 for a phone screen. | 1:1 |