Stable Image Core
POST
/sd/v2beta/stable-image/generate/core
Generate
speed. No prompt engineering is required! Try asking for a style, a scene, or a character, and see what you get.
Try it out
How to use
POST
request.authorization
field. The body of the request must bemultipart/form-data
, and the accept
header should be set to one of the following:image/*
to receive the image in the format specified by the output_format
parameter.application/json
to receive the image encoded as base64 in a JSON response.prompt
aspect_ratio
negative_prompt
seed
style_preset
output_format
Note: for more details about these parameters please see the request schema below.
Output
Credits
请求参数
Header 参数
authorization
string
必需
>= 1 字符
content-type
string
必需
>= 1 字符
示例值:
multipart/form-data
accept
enum<string>
必需
image/*
to get the image bytes directly. Otherwise specify application/json
to receive the image as base64 encoded JSON.枚举值:
application/jsonimage/*
默认值:
image/*
Body 参数multipart/form-data
prompt
string
必需
elements, colors, and subjects will lead to better results.
(word:weight)
,where
word
is the word you'd like to control the weight of and weight
is a value between 0 and 1. For example:
The sky was a crisp (blue:0.3) and (green:0.8)
would convey a sky that was blue and green, but more green than blue.
>= 1 字符<= 10000 字符
示例值:
aspect_ratio
enum<string>
可选
枚举值:
16:91:121:92:33:24:55:49:169:21
默认值:
1:1
示例值:
1:1
negative_prompt
string
可选
This is an advanced feature.
<= 10000 字符
示例值:
seed
number
可选
0
to use a random seed.)>= 0<= 4294967294
默认值:
0
示例值:
0
style_preset
enum<string>
可选
枚举值:
3d-modelanalog-filmanimecinematiccomic-bookdigital-artenhancefantasy-artisometricline-artlow-polymodeling-compoundneon-punkorigamiphotographicpixel-arttile-texture
示例值:
output_format
enum<string>
可选
content-type
of the generated image.枚举值:
jpegpngwebp
默认值:
png
示例值:
png
示例代码
返回响应
修改于 2025-04-07 07:23:29