fattly_generate_image
Generates an AI image from a prompt. Returns a link to the finished image. Credits are deducted from the user's account.
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 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. |