跳转到正文

编辑gpt-imge-2-vip表单格式

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/images/edits:
    post:
      summary: 编辑gpt-imge-2-vip表单格式
      deprecated: false
      description: ''
      tags:
        - 绘画模型/GPT Image 系列
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: false
          example: multipart/form-data
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer sk-xxx
          schema:
            type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                image:
                  format: binary
                  type: string
                  description: 图片 URL 或者 base64,支持单图或多图
                  example: ''
                prompt:
                  description: 图片描述,用于编辑图片
                  example: 把小猫换成小狗
                  type: string
                model:
                  example: gpt-imge-2-vip
                  type: string
                size:
                  description: 生成图片的尺寸,格式为 widthxheight,例如 1024x1024、1920x1080
                  example: 3840×2160
                  type: string
                quality:
                  description: 生成图片的质量, 枚举值为 low、medium、high、auto,默认为 auto
                  example: ''
                  type: string
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 绘画模型/GPT Image 系列
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/7937429/apis/api-449064750-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://new.22codex.xyz
    description: 正式环境
security:
  - bearer: []

文档内容持续更新,请以控制台可用模型与接口为准。