个人项目
  1. SD3
个人项目
  • 系统介绍
  • 系统优势
  • 补充说明
  • 辅助功能
    • 功能介绍
    • 账户余额查询
      • 余额查询-OpenAI Next
      • 余额查询-MJ Next
    • 文件上传
      • 文件上传-OpenAI Next
      • 文件上传-MJ Next
    • 文件解析(无特定接口)
      • 文件解析功能介绍
  • 按量计费
    • LLM
      • 资源介绍
      • 接入说明
      • 参数详情
      • 发出请求
      • 身份验证
      • 项目说明
      • 费用说明
      • 聊天(Chat)
        • 聊天完成对象
        • 聊天完成块对象
        • 创建聊天补全
      • 自动补全(Completions)
        • 完成对象
        • 创建完成
      • 音频(Audio)
        • 创建语音
        • 创建转录
        • 创建翻译
      • 嵌入(Embeddings)
        • 嵌入对象
        • 创建嵌入
      • 微调(Fine-tuning)
        • 微调作业对象
        • 微调作业事件对象
        • 创建微调作业
        • 列出微调作业
        • 检索微调作业
        • 取消微调
        • 列出微调事件
      • 图像(Images)
        • README
        • 图像对象
        • 创建图像
        • 创建图片编辑
        • 创建图像变体
      • 模型(Models)
        • 模型对象
        • 列出模型
        • 检索模型
        • 删除微调模型
      • 文件(Files)
        • README
        • 文件对象
        • 上传文件
        • 删除文件
        • 检索文件
        • 检索文件内容
        • 列出文件
      • 审查(Moderations)
        • 调节对象
        • 创建内容审核
      • 助手测试版(AssistantsBeta)
        • 辅助对象
        • 辅助文件对象
        • 创建助手
        • 检索助手
        • 修改助手
        • 删除助手
        • 列出助手
        • 创建辅助文件
        • 检索助手文件
        • 删除辅助文件
        • 列出助手文件
      • 线程数(Threads)
        • 线程对象
        • 创建线程
        • 检索线程
        • 修改线程
        • 删除话题
      • 留言(Messages)
        • 消息对象
        • 消息文件对象
        • 创建消息
        • 检索消息
        • 修改留言
        • 列出消息
        • 检索消息文件
        • 列出消息文件
      • 运行(Runs)
        • 运行对象
        • 运行步骤对象
        • 创建运行
        • 检索运行
        • 修改运行
        • 列表运行
        • 提交工具输出以运行
        • 取消运行
        • 创建线程并运行
        • 检索运行步骤
        • 列出运行步骤
    • GPTs
      • 资源介绍
      • 接入说明
      • 可用模型
      • GPTs
        • 流式接入GPTs
        • 非流式接入GPTs
        • 根据ID查询GPTs详情
        • 搜索GPTs
      • 文件上传
  • 按次计费
    • MJ Chat
      • 资源介绍
      • ImageGenerations
    • Suno-Proxy
      • 歌词生成
        • 生成歌词
      • 音乐生成
        • 生成音乐
      • 音乐上传
        • 上传音乐
      • 歌曲拼接
        • 歌曲拼接
      • 任务查询
        • 查询任务
    • sora
      • 官方格式
        • 创建视频
        • 查询视频
      • openai chat 格式
        • 生成视频
    • 可灵(官方格式)
      • 图像生成(暂不支持)
      • 文生视频
      • 图生视频
      • 查询任务
    • MJ Proxy
      • 资源介绍
      • 参数说明
      • 调用示例
      • 费用说明
      • 任务查询
        • FetchFromTask
        • ImageSeed
      • 任务提交
        • Blend
        • SwapFace
        • Describe
        • Imagine
        • Shorten
        • Modal
        • Action
        • Change
    • SD Chat
      • ImageGenerations Copy Copy
    • SD Proxy
      • SD3
        • Stable Image Ultra
          POST
        • Stable Image Core
          POST
        • Stable Diffusion 3
          POST
      • SDXL
        • Text-to-image
    • Suno Chat
      • SunoGenerations
    • Suno Proxy 旧
      • /v1/song/feed
      • /v1/song/create
    • Luma Chat
      • LumaGenerations
    • Lumvip Proxy
      • /generations
      • /task
      • /extend
    • Luma Proxy
      • /generations
      • /extend
      • /task
    • Pika
      • 创建视频
      • 查询视频
    • Domo
      • 创建视频
      • 查询视频
    • urlanalysis
      • 链接总结(summary)
      • 链接聊天(chat)
      • 字幕导出(subtitle)
  1. SD3

Stable Image Ultra

POST
/sd/v2beta/stable-image/generate/ultra
Generate
Our most advanced text to image generation service, Stable Image Ultra creates the highest quality images
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#

Grab your API key and head over to Open Google Colab

How to use#

Please invoke this endpoint with a POST request.
The headers of the request must include an API key in the authorization field. The body of the request must be
multipart/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.
The only required parameter is the 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#

The resolution of the generated image will be 1 megapixel. The default resolution is 1024x1024.

Credits#

The Ultra service uses 8 credits per successful result. You will not be charged for failed results.

请求参数

Header 参数
authorization
string 
必需
Your Stability API key, used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.
>= 1 字符
content-type
string 
必需
The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.
>= 1 字符
示例值:
multipart/form-data
accept
enum<string> 
必需
Specify 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 
必需
What you wish to see in the output image. A strong, descriptive prompt that clearly defines
elements, colors, and subjects will lead to better results.
To control the weight of a given word use the format (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 
可选
A blurb of text describing what you do not wish to see in the output image.
This is an advanced feature.
<= 10000 字符
aspect_ratio
enum<string> 
可选
Controls the aspect ratio of the generated image.
枚举值:
16:91:121:92:33:24:55:49:169:21
默认值:
1:1
示例值:
1:1
seed
number 
可选
A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass 0 to use a random seed.)
>= 0<= 4294967294
默认值:
0
output_format
enum<string> 
可选
Dictates the content-type of the generated image.
枚举值:
jpegpngwebp
默认值:
png
示例值:
png

示例代码

Python
JavaScript
Shell
Java
Swift
Go
PHP
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Python
JavaScript
Shell
Java
curl --location --request POST '/sd/v2beta/stable-image/generate/ultra' \
--header 'authorization;' \
--header 'accept;' \
--form 'prompt=""'

返回响应

🟢200Generation was successful.
application/json
Body
object {0}
示例
{}
🟠400Invalid parameter(s), see the `errors` field for details.
🟠403Your request was flagged by our content moderation system.
🟠413Your request was larger than 10MiB.
🟠422You made a request with an unsupported language.
🟠429You have made more than 150 requests in 10 seconds.
🔴500An internal error occurred. If the problem persists [contact support](https://stabilityplatform.freshdesk.com/support/tickets/new).
上一页
ImageGenerations Copy Copy
下一页
Stable Image Core
Built with