Hugging Face Inference Endpoints
gr1_z_image_turbo_generate
Generate an image using the Z-Image model based on the provided prompt and settings. This function is triggered when the user clicks the "Generate" button. It processes the input prompt (optionally enhancing it), configures generation parameters, and produces an image using the Z-Image diffusion transformer pipeline. Returns: tuple: (gallery_images, seed_str, seed_int), - seed_str: String representation of the seed used for generation, - seed_int: Integer representation of the seed used for generation (from mcp-tools/Z-Image-Turbo)
Remote huggingface
Remote (network-hosted)
Other tools also called gr1_z_image_turbo_generate?
See providers with this name
Input Schema
{
"type": "object",
"properties": {
"seed": {
"type": "integer",
"default": 42,
"description": "Seed for reproducible generation"
},
"shift": {
"type": "number",
"default": 3,
"description": "Time shift parameter for the flow matching scheduler"
},
"steps": {
"type": "number",
"default": 8,
"description": "Number of inference steps for the diffusion process"
},
"prompt": {
"type": "string",
"description": "Text prompt describing the desired image content"
},
"resolution": {
"enum": [
"1024x1024 ( 1:1 )",
"1152x896 ( 9:7 )",
"896x1152 ( 7:9 )",
"1152x864 ( 4:3 )",
"864x1152 ( 3:4 )",
"1248x832 ( 3:2 )",
"832x1248 ( 2:3 )",
"1280x720 ( 16:9 )",
"720x1280 ( 9:16 )",
"1344x576 ( 21:9 )",
"576x1344 ( 9:21 )",
"1280x1280 ( 1:1 )",
"1440x1120 ( 9:7 )",
"1120x1440 ( 7:9 )",
"1472x1104 ( 4:3 )",
"1104x1472 ( 3:4 )",
"1536x1024 ( 3:2 )",
"1024x1536 ( 2:3 )",
"1536x864 ( 16:9 )",
"864x1536 ( 9:16 )",
"1680x720 ( 21:9 )",
"720x1680 ( 9:21 )",
"1536x1536 ( 1:1 )",
"1728x1344 ( 9:7 )",
"1344x1728 ( 7:9 )",
"1728x1296 ( 4:3 )",
"1296x1728 ( 3:4 )",
"1872x1248 ( 3:2 )",
"1248x1872 ( 2:3 )",
"2048x1152 ( 16:9 )",
"1152x2048 ( 9:16 )",
"2016x864 ( 21:9 )",
"864x2016 ( 9:21 )"
],
"type": "string",
"default": "1024x1024 ( 1:1 )",
"description": "Output resolution in format \"WIDTHxHEIGHT ( RATIO )\" (e.g., \"1024x1024 ( 1:1 )\")"
},
"random_seed": {
"type": "boolean",
"default": true,
"description": "Whether to generate a new random seed, if True will ignore the seed input"
}
}
}