# DALL·E 3

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/images/generations:
    post:
      summary: DALL·E 3
      deprecated: false
      description: |+
        [图片](https://platform.openai.com/docs/api-reference/images)

        给定提示和/或输入图像，模型将生成新图像。

        相关指南：[图像生成](https://platform.openai.com/docs/guides/images)

        根据提示创建图像。

      tags:
        - 模型接口/图像接口（Images）
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                prompt:
                  type: string
                  title: ''
                  description: 所需图像的文本描述。最大长度为 1000 个字符。
                'n':
                  type: integer
                  title: ''
                  description: 要生成的图像数。必须介于 1 和 10 之间。
                size:
                  type: string
                  title: ''
                  description: 生成图像的大小。必须是256x256、512x512或 1024x1024之一。
              required:
                - prompt
              x-apifox-orders:
                - prompt
                - 'n'
                - size
            example:
              prompt: A colorful sunset over the mountains
              'n': 1
              model: dall-e-3
              size: 1024x1024
      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: Create image
      security:
        - bearer: []
      x-apifox-folder: 模型接口/图像接口（Images）
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/3917179/apis/api-142078832-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.tutujin.com/v1
    description: 正式环境
security:
  - bearer: []

```
