POST /accounts/{account_id}/ai/run/@cf/bytedance/stable-diffusion-xl-lightning
Servers
- https://api.cloudflare.com/client/v4
Path parameters
Name | Type | Required | Description |
---|---|---|---|
account_id |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
queueRequest |
String | No |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
guidance |
Number | No |
Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt Default value: 7.5 |
prompt |
String | Yes |
A text description of the image you want to generate |
mask[] |
Array | No |
An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values |
seed |
Integer | No |
Random seed for reproducibility of the image generation |
strength |
Number | No |
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 Default value: 1 |
height |
Integer | No |
The height of the generated image in pixels |
width |
Integer | No |
The width of the generated image in pixels |
negative_prompt |
String | No |
Text describing elements to avoid in the generated image |
image[] |
Array | No |
For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values |
image_b64 |
String | No |
For use with img2img tasks. A base64-encoded string of the input image |
num_steps |
Integer | No |
The number of diffusion steps; higher values can improve quality but take longer Default value: 20 |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.