Generate an image
image_generateDraw an image from a text description with an image model from the Hubris catalogue (FLUX, Recraft, Seedream, GPT Image and others) and get the picture back right away as image content. Same as POST /v1/images/generations.
Only models whose tool is "image_generate" work here. Models that draw inside a chat answer and also write text (Gemini Image, GPT-5 Image) have tool "chat_complete" and run there. Sizes such as 4K can be heavier than your client accepts in one answer — ask for 2K or less here.
Spends money from the account balance: most image models are billed per image, some per megapixel or per token — models_get_pricing shows the price before you call. The charge shows up in usage_get.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | How many images to draw, 1 or 2. Each one is billed. Defaults to 1. | |
| size | No | Image size such as "1024x1024", or a tier such as "2K" on models that use tiers. Leave out for the model default. | |
| model | Yes | Image model id, vendor included and matched exactly, e.g. "black-forest-labs/flux.2-pro". Find one with models_search and tool: "image_generate". | |
| prompt | Yes | What to draw. Be specific about subject, style and composition. |