POST
/
images
/
generations

Authorizations

Authorization
string
headerrequired

Use the following format for authentication: Bearer <your api key>

Body

application/json
model
enum<string>
default: stabilityai/stable-diffusion-3-5-largerequired

对应的模型名称。为更好的提升服务质量,我们将不定期对本服务提供的模型做相关变更,包括但不限于模型上下线,价格调整,模型服务能力调整等,我们会在可行的情况下以公告、消息推送等适当的方式进行通知。

Available options:
stabilityai/stable-diffusion-3-5-large
prompt
string
default: an island near sea, with seagulls, moon shining over the sea, light house, boats int he background, fish flying over the searequired
image_size
enum<string>
default: 1024x1024required
Available options:
1024x1024,
512x1024,
768x512,
768x1024,
1024x576,
576x1024
batch_size
integer
default: 1required
Required range: 1 < x < 4
num_inference_steps
integer
default: 20required
Required range: 1 < x < 50
guidance_scale
number
default: 7.5required
Required range: 0 < x < 20
negative_prompt
string
seed
integer
Required range: 0 < x < 9999999999
prompt_enhancement
boolean
default: false

Rewrite prompts into detailed, model-friendly versions when switched on.

Response

200 - application/json
images
object[]
images.url
string
timings
object
timings.inference
number
seed
integer