image_generation
Create custom images from text prompts using the Flux Schnell Server. Specify dimensions, seed values, and generate Base64-encoded images for versatile use.
Instructions
Generate an image from a prompt.
Args:
prompt (str): 生成图片的提示词
image_size (int, optional): 生成图片的大小. Defaults to 512.
Returns:
str: 生成的图片的base64编码
Input Schema
Name | Required | Description | Default |
---|---|---|---|
image_height | No | ||
image_width | No | ||
prompt | Yes | ||
seed | No |
Input Schema (JSON Schema)
{
"properties": {
"image_height": {
"default": 512,
"title": "Image Height",
"type": "integer"
},
"image_width": {
"default": 512,
"title": "Image Width",
"type": "integer"
},
"prompt": {
"title": "Prompt",
"type": "string"
},
"seed": {
"default": 3,
"title": "Seed",
"type": "integer"
}
},
"required": [
"prompt"
],
"title": "image_generationArguments",
"type": "object"
}