# 图像变化

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/images/variations:
    post:
      summary: 图像变化
      deprecated: false
      description: |+
        创建给定图像的变体。

      tags:
        - 模型接口/图像接口（Images）
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: false
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                image:
                  format: binary
                  type: string
                  description: 用作变化基础的图像。必须是有效的PNG文件，小于4MB，并且是方形的。
                  example: ''
                model:
                  description: |
                    用于图像生成的模型。目前仅支持dall-e-2。
                  example: dall-e-2
                  type: string
                size:
                  description: 生成的图像的大小。必须是256x256、512x512或1024x1024之一。
                  example: 1024x1024
                  type: string
              required:
                - image
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  created:
                    type: integer
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                      required:
                        - url
                      x-apifox-orders:
                        - url
                required:
                  - created
                  - data
                x-apifox-orders:
                  - created
                  - data
              example:
                created: 1589478378
                data:
                  - url: https://...
                  - url: https://...
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 模型接口/图像接口（Images）
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/2946232/apis/api-230939726-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.chatanywhere.tech
    description: 正式环境
security: []

```
