generate_image
Create custom images from text prompts using AI with adjustable size, quantity, and output format settings.
Instructions
Generate an image using Together AI API
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>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of images to generate (default: 1) | |
| model | No | Model to use for generation (default: black-forest-labs/FLUX.1-schnell-Free) | |
| steps | No | Number of inference steps (default: 1) | |
| width | No | Image width (default: 1024) | |
| height | No | Image height (default: 768) | |
| prompt | Yes | Text prompt for image generation | |
| image_path | No | Optional path to save the generated image as PNG | |
| response_format | No | Response format (default: b64_json) |