Stable Image Ultra
POST
/sd/v2beta/stable-image/generate/ultra
Generate
with unprecedented prompt understanding. Ultra excels in typography, complex compositions, dynamic lighting,
vibrant hues, and overall cohesion and structure of an art piece. Made from the most advanced models,
including Stable Diffusion 3, Ultra offers the best of the Stable Diffusion ecosystem.
Try it out
How to use
POST
request.authorization
field. The body of the request must bemultipart/form-data
. 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 in the format specified by the output_format
parameter, but encoded to base64 in a JSON response.prompt
field, which should contain the text prompt for the image generation.Note: for the full list of optional parameters, please see the request schema below.
Output
Credits
请求参数
Query 参数
string
可选
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/*
string
可选
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 字符
negative_prompt
string
可选
This is an advanced feature.
<= 10000 字符
aspect_ratio
enum<string>
可选
枚举值:
16:91:121:92:33:24:55:49:169:21
默认值:
1:1
示例值:
1:1
seed
number
可选
0
to use a random seed.)>= 0<= 4294967294
默认值:
0
output_format
enum<string>
可选
content-type
of the generated image.枚举值:
jpegpngwebp
默认值:
png
示例值:
png
string
可选
示例代码
返回响应
修改于 2024-07-01 04:57:36