众扬汇 AI 开放平台 API 文档

即梦3 图生图

接口:POST /v1/images/generations 归属:绘图模型/ 豆包(即梦、火山)绘图 调用地址:Base URL https://api.allyang.cn(OpenAI 兼容前缀 https://api.allyang.cn/v1)+ 上述路径 鉴权:请求头 Authorization: Bearer <你的令牌>;令牌在控制台「令牌管理」创建 说明:下方为本接口契约。路径、字段名与枚举取值与线上接口一致;叙述文字已按本平台口径重写。价格、并发与限流等数值以控制台及实际返回为准,未确认处标注「待补」。

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/images/generations:
    post:
      summary: 即梦3 图生图
      description: "上游文档链接已按合规要求移除;接口契约以本平台线上实测为准。"
      tags:
        - 绘图模型/ 豆包(即梦、火山)绘图
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: false
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
            default: Bearer {{YOUR_API_KEY}}
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                prompt:
                  type: string
                image:
                  type: string
                response_format:
                  type: string
                size:
                  type: string
                seed:
                  type: integer
                guidance_scale:
                  type: number
                watermark:
                  type: boolean
              required:
                - model
                - prompt
                - image
            example:
              model: doubao-seededit-3-0-i2i-250628
              prompt: 改成爱心形状的泡泡
              image: >-
                https://api.allyang.cn/<外部地址已按合规要求移除>
              response_format: url
              size: adaptive
              seed: 21
              guidance_scale: 5.5
              watermark: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                created: 1754449685
                data:
                  - url: >-
                      https://api.allyang.cn/<外部地址已按合规要求移除>
                    revised_prompt: NONE
          headers: {}
      security: []
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []