{ "name": "@cf/bytedance/stable-diffusion-xl-lightning", "properties": [ { "property_id": "beta", "value": "true" }, { "property_id": "price", "value": [ { "unit": "per step", "price": 0, "currency": "USD" } ] }, { "property_id": "info", "value": "https://huggingface.co/ByteDance/SDXL-Lightning" }, { "property_id": "planned_deprecation_date", "value": "2026-11-20" } ], "id": "7f797b20-3eb0-44fd-b571-6cbbaa3c423b", "source": 1, "description": "SDXL-Lightning is a lightning-fast text-to-image generation model. It can generate high-quality 1024px images in a few steps.", "task": { "id": "3d6e1f35-341b-4915-a6c8-9a7142a9033a", "name": "Text-to-Image", "description": "Generates images from input text. These models can be used to generate and modify images based on text prompts." }, "created_at": "2024-02-27 17:41:29.578", "tags": [], "schema": { "input": { "type": "object", "properties": { "prompt": { "type": "string", "minLength": 1, "description": "A text description of the image you want to generate" }, "negative_prompt": { "type": "string", "description": "Text describing elements to avoid in the generated image" }, "height": { "type": "integer", "minimum": 256, "maximum": 2048, "description": "The height of the generated image in pixels" }, "width": { "type": "integer", "minimum": 256, "maximum": 2048, "description": "The width of the generated image in pixels" }, "image": { "type": "array", "description": "For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values", "items": { "type": "number", "description": "A value between 0 and 255" } }, "image_b64": { "type": "string", "description": "For use with img2img tasks. A base64-encoded string of the input image" }, "mask": { "type": "array", "description": "An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values", "items": { "type": "number", "description": "A value between 0 and 255" } }, "num_steps": { "type": "integer", "default": 20, "maximum": 20, "description": "The number of diffusion steps; higher values can improve quality but take longer" }, "strength": { "type": "number", "default": 1, "description": "A value between 0 and 1 indicating how strongly to apply the transformation during img2img tasks; lower values make the output closer to the input image" }, "guidance": { "type": "number", "default": 7.5, "description": "Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt" }, "seed": { "type": "integer", "description": "Random seed for reproducibility of the image generation" } }, "required": [ "prompt" ] }, "output": { "type": "string", "contentType": "image/png", "format": "binary", "description": "The generated image in PNG format" } }, "deprecated": false }