图像系列
创建图片生成请求
Creates an image response for the given prompt.
POST
/
images
/
generations
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
model
enum<string>
default: stabilityai/stable-diffusion-3-5-largerequiredAvailable 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 searequiredimage_size
enum<string>
default: 1024x1024requiredAvailable options:
1024x1024
, 512x1024
, 768x512
, 768x1024
, 1024x576
, 576x1024
batch_size
integer
default: 1requiredRequired range:
1 < x < 4
num_inference_steps
integer
default: 20requiredRequired range:
1 < x < 100
guidance_scale
number
default: 7.5requiredRequired range:
0 < x < 100
negative_prompt
string
seed
integer
Required range:
0 < x < 9999999999
Response
200 - application/json
images
object[]
images.url
string
timings
object
timings.inference
number
seed
integer