text_to_image
Convert text prompts into high-quality images with customizable dimensions, negative prompts, and configuration settings. Ideal for visual content creation and prototyping.
Instructions
Generate an image from a text prompt. After generation, you can use the show_image tool to view the thumbnail.
Args:
prompt: Text prompt for generating an image (maximum 1024 characters)
negative_prompt: Text prompt for excluding attributes from generation (maximum 1024 characters)
height: Image height (pixels)
width: Image width (pixels)
num_images: Number of images to generate (maximum 4)
cfg_scale: Image matching degree for the prompt (1-20)
seed: Seed value for image generation
open_browser: Whether to open the image in the browser after generation
Returns:
Dict: Dictionary containing the file path of the generated image and the thumbnail image
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cfg_scale | No | ||
height | No | ||
negative_prompt | No | ||
num_images | No | ||
open_browser | No | ||
prompt | Yes | ||
seed | No | ||
width | No |
Input Schema (JSON Schema)
{
"properties": {
"cfg_scale": {
"default": 8,
"title": "Cfg Scale",
"type": "number"
},
"height": {
"default": 1024,
"title": "Height",
"type": "integer"
},
"negative_prompt": {
"default": "",
"title": "Negative Prompt",
"type": "string"
},
"num_images": {
"default": 1,
"title": "Num Images",
"type": "integer"
},
"open_browser": {
"default": true,
"title": "Open Browser",
"type": "boolean"
},
"prompt": {
"title": "Prompt",
"type": "string"
},
"seed": {
"default": 0,
"title": "Seed",
"type": "integer"
},
"width": {
"default": 1024,
"title": "Width",
"type": "integer"
}
},
"required": [
"prompt"
],
"title": "text_to_imageArguments",
"type": "object"
}