VMAN API Docs
  1. SD3
VMAN API Docs
模型接口
  • 模型接口
  • 帮助中心
  • 聊天接口(Chat)
    • 聊天接口
      POST
    • gpts
      POST
    • gemini-pro
      POST
    • gpt-4-all(分析图片)
      POST
    • gpt-4-vision-preview
      POST
  • 自动补全接口(Completions)
    • 内容补全接口
      POST
  • 图像接口(Images)
    • DALL·E 3
      POST
    • Stable-Diffusion
      POST
    • gpt-4-all(生成图片)
      POST
  • 向量生成接口(Embeddings)
    • 创建嵌入
      POST
  • 音频接口(Audio)
    • 创建转录
      POST
    • 创建翻译
      POST
    • TTS文本转语音
      POST
  • Midjourney
    • 补充 - 其他参数以及回调
    • InsightFace任务提交
      • 提交swap_face任务
    • 任务提交
      • 执行动作
      • 提交Blend任务
      • 提交Describe任务
      • 提交Imagine任务
      • 提交Modal
      • 提交Shorten任务
    • 任务查询
      • 查询所有任务
      • 根据ID列表查询任务
      • 分页查询任务
      • 查询任务队列
      • 取消任务
      • 指定ID获取任务
      • 获取任务图片的seed(需设置mj或niji的私信ID)
  • Suno音乐(逆向)
    • v3.0
      • 生成音乐
      • 获取音乐
      • 合并音乐
    • v3.5
      • 生成音乐
      • 获取音乐
  • Flux图像(官方格式)
    • flux-pro-1.1
    • flux-pro
    • flux-dev
    • flux-查询
  • Recraft图像(官方格式)
    • styles
      • 创建样式
    • images
      • 生成图像
      • 图像矢量化
      • 移除背景
      • 清晰度提升
      • 生成式放大
  • Stability AI图像(官方格式)
    • SD3
      • Stable Image Ultra
        POST
      • Stable Image Core
        POST
      • Stable Diffusion 3
        POST
    • SDXL
      • Text-to-image
  • Ideogram图像(官方格式)
    • Generate(文生图)
    • Remix(混合图)
    • Upscale(放大高清)
    • Describe(描述)
  • Ideogram图像(逆向)
    • 图片描述
    • 文生图
    • 合成图
    • 放大图片
    • ideogram任务查询
  • Kling视频(官方格式)
    • 图像生成
    • 文生视频
    • 图生视频
    • 查询任务
  • Luma视频(逆向)
    • 付费版
      • 生成视频
      • 获取视频
  • Runway视频(官方格式)
    • 图生视频
    • 任务查询
  • CogVideoX视频(官方格式)
    • CogVideoX视频生成
    • CogVideoX视频查询
  • Viggle舞蹈(逆向)
    • Mix上传视频并生成视频
    • Mix官方模板列表
    • Mix上传视频素材库
    • Mix上传图片素材库
    • Multi上传视频并生成视频
    • Multi模板列表
    • Move上传视频并生成视频
    • 查询视频任务
    • 剩余积分查询
  • Midjourney视频
    • 视频提交
    • 查询任务
    • Fast视频提交
    • Relax视频提交
  • Veo视频
    • 提交视频生成任务
    • 查询视频生成状态
  1. SD3

Stable Image Core

POST
https://api.mjdjourney.cn/sd/v2beta/stable-image/generate/core
Our primary service for text-to-image generation, Stable Image Core represents the best quality achievable at high
speed. No prompt engineering is required! Try asking for a style, a scene, or a character, and see what you get.

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, 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.
The body of the request should include:
prompt
The body may optionally include:
aspect_ratio
negative_prompt
seed
style_preset
output_format
Note: for more details about these parameters please see the request schema below.

Output#

The resolution of the generated image will be 1.5 megapixels.

Credits#

Flat rate of 3 credits per successful generation. You will not be charged for failed generations.

请求参数

Header 参数

Body 参数multipart/form-data

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mjdjourney.cn/sd/v2beta/stable-image/generate/core' \
--header 'authorization;' \
--header 'accept;' \
--form 'prompt=""' \
--form 'aspect_ratio="1:1"' \
--form 'negative_prompt=""' \
--form 'seed=""' \
--form 'style_preset=""' \
--form 'output_format="png"'

返回响应

🟢200Generation was successful.
application/json
Body

示例
{}
🟠400Invalid parameter(s), see the `errors` field for details.
🟠403Your request was flagged by our content moderation system.
🟠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).
修改于 2024-09-09 11:48:18
上一页
Stable Image Ultra
下一页
Stable Diffusion 3
Built with