Text-to-image
POST
/sd/v1/generation/{engine_id}/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.
请求参数
Path 参数
engine_id
string
必需
示例值:
stable-diffusion-v1-6
Query 参数
string
可选
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
string
可选
Body 参数application/json
示例代码
返回响应
修改于 2024-07-01 04:57:51