Text-to-image
POST
/sd/v1/generation/stable-diffusion-xl-1024-v1-0/text-to-image
SDXL & SD1.6
Using SDXL 1.0
stable-diffusion-xl-1024-v1-0
as the engine_id
of your request and pass in height
& width
as one of the following combinations:Using SD 1.6
stable-diffusion-v1-6
as the engine_id
of your request and ensure the height
& width
you pass in adhere to the following restrictions:Using SD Beta
stable-diffusion-xl-beta-v2-2-2
as the engine_id
of your request and ensure the height
& width
you pass in adhere to the following restrictions:NOTE: Only Version 1 engines will work with this endpoint.
请求参数
Header 参数
Accept
enum<string>
可选
枚举值:
application/jsonimage/png
默认值:
application/json
Organization
string
可选
示例值:
org-123456
Stability-Client-ID
string
可选
示例值:
my-great-plugin
Stability-Client-Version
string
可选
示例值:
1.2.1
Body 参数application/json
示例代码
返回响应
修改于 2025-04-07 07:23:29