generate_with_reference
Create images using a reference image to guide style and content. Specify a prompt and reference image URL to generate visuals with controlled similarity to your reference.
Instructions
Generate images with a style/content reference image.
Uses the reference_image feature of flux-general to guide generation toward a similar style or content as the reference.
Args: reference_image_url: URL of the reference image for style guidance. reference_strength: How strongly to follow the reference (0.0-1.0).
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_url": "<reference_image_url>"
},
"name": "generate_with_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| reference_image_url | Yes | ||
| reference_strength | No | ||
| model | No | fal-ai/flux-general | |
| width | No | ||
| height | No | ||
| num_inference_steps | No | ||
| guidance_scale | No | ||
| seed | No | ||
| num_images | No | ||
| output_format | No | png | |
| filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||