stable-diffusion-xl-base-1.0

Beta

Text-to-Image • Stability.ai

@cf/stabilityai/stable-diffusion-xl-base-1.0

  • Cloudflare-hosted

Diffusion-based text-to-image generative model by Stability AI. Generates and modify images based on text prompts.

Model Info
Terms and License link ↗
More information link ↗
Beta Yes
Unit Pricing $0.00 per step

Parameters

prompt

stringrequiredminLength: 1A text description of the image you want to generate

negative_prompt

stringText describing elements to avoid in the generated image

height

integerminimum: 256maximum: 2048The height of the generated image in pixels

width

integerminimum: 256maximum: 2048The width of the generated image in pixels

▶image[]

arrayFor use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values

image_b64

stringFor use with img2img tasks. A base64-encoded string of the input image

▶mask[]

arrayAn array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values

num_steps

integerdefault: 20maximum: 20The number of diffusion steps; higher values can improve quality but take longer

strength

numberdefault: 1A 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

numberdefault: 7.5Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt

seed

integerRandom seed for reproducibility of the image generation

The binding returns a ReadableStream with the output (check the model's output schema).

API Schemas (Raw)

Input Open Download

Output Open Download

Was this helpful?

YesNo

On this page

stable-diffusion-xl-base-1.0 - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/workers-ai/models/stable-diffusion-xl-base-1.0/#page","headline":"stable-diffusion-xl-base-1.0","description":"Diffusion-based text-to-image generative model by Stability AI. Generates and modify images based on text prompts.","url":"https://developers.cloudflare.com/workers-ai/models/stable-diffusion-xl-base-1.0/","inLanguage":"en","image":"https://developers.cloudflare.com/og-docs.png","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: "Apertus 1.5 is an 8B parameter language model designed to advance the state of multilingual, multimodal, fully open, and transparent AI. The models support a wide range of languages, handle contexts of up to 262,144 tokens, and it uses only fully open training data whilst delivering performance comparable to other models of similar size. For access, please fill out this form: https://forms.gle/kgvmkr6ucHN3xNuH6" title: apertus-v1.5-8b image: https://developers.cloudflare.com/og-docs.png


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/llms.txt
Use this file to discover all available pages before exploring further.

s