image_size Available options: 1024x1024, 512x1024, 768x512, 768x1024, 1024x576, 576x1024 batch_size Required range: 1 < x < 4 num_inference_steps Required range: 1 < x < 100 guidance_scale Required range: 0 < x < 100 seed Required range: 0 < x < 9999999999
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数
Body 参数application/json
示例
{"model":"stable-diffusion-api","messages":[{"role":"user","content":"striking poses, stunning backdrop of rocky coastline and golden hour lighting, fashion-forward wardrobe, eye-catching accessories, warm and inviting color palette, sharp and detailed digital rendering, stunning high definition finish, on eye level, scenic, masterpiece"}]}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api2.aigcbest.top/v1/chat/completions' \
--header'Authorization: Bearer ' \
--header'Content-Type: application/json' \
--data-raw'{
"model": "stable-diffusion-api",
"messages": [
{
"role": "user",
"content": "striking poses, stunning backdrop of rocky coastline and golden hour lighting, fashion-forward wardrobe, eye-catching accessories, warm and inviting color palette, sharp and detailed digital rendering, stunning high definition finish, on eye level, scenic, masterpiece"
}
]
}'