flow_generate_image_with_references
Create images guided by up to 14 reference images of characters, objects, or styles, keeping subjects consistent across a prompt-driven generation.
Instructions
Generate images guided by up to 14 reference images (characters, objects, style).
Nano Banana 2.1: up to 10 object + 4 character images. Nano Banana Pro: up to 6 object + 5 character + 3 style images.
Args: prompt: What to create and how to use the references. reference_image_paths: 1-14 image paths. model: 'fast' (default), 'pro', 'lite', or a full model id. aspect_ratio / image_size / preset / style: same as flow_generate_image. number_of_images: 1-4. output_dir: Override the output folder.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"reference_image_paths": "<reference_image_paths>"
},
"name": "flow_generate_image_with_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| style | No | ||
| preset | No | ||
| prompt | Yes | ||
| image_size | No | ||
| output_dir | No | ||
| aspect_ratio | No | ||
| number_of_images | No | ||
| reference_image_paths | Yes |