Generate an image
fattly_generate_imageGenerate AI images from a text prompt or edit uploaded photos, then receive direct links to finished images. Spends credits only on successful generations, with automatic refunds if a generation fails.
Instructions
Generates an AI image from a prompt (or edits uploaded images). Returns links to the finished images. Spends credits: model price × numImages (see fattly_list_models); fails with an error if the balance is too low, and credits are refunded automatically when a generation fails. Prompts must be safe-for-work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id (default nano-banana-2). List: fattly_list_models. | |
| prompt | Yes | Description of the image to generate. | |
| numImages | No | Number of images 1–4 (default 1). | |
| aspectRatio | No | Aspect ratio, e.g. 1:1, 16:9, 9:16 (default 1:1). | |
| inputImageUrl | No | Optional single input image for editing / face-swap models — must be a fal URL. Get one by uploading a local photo with fattly_upload_image. | |
| inputImageUrls | No | Optional MULTIPLE input images (fal URLs) for multi-image edit models like nano-banana-2-edit / nano-banana-pro-edit. Typical swap use: image #1 = the scene/frame to keep (background, framing, lighting), image #2 = the subject/face to place into that scene. Get each URL from fattly_upload_image. |