# 修复

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/stable-diffusion/inpaint:
    post:
      summary: 修复
      deprecated: false
      description: |+
        根据文本提示、源图像和遮罩区域生成重绘图像。

      tags:
        - 'Stable Diffusion '
      parameters:
        - name: content-type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                prompt:
                  type: string
                  description: 生成所需的文本输入
                image:
                  type: string
                  description: >-
                    Base64 编码的将要进行照片修复的图像。图像中使用 mask_image 掩蔽出的部分将根据提示进行重新绘制。 
                    每个维度的最大尺寸为 1024 像素。
                mask_image:
                  type: string
                  description: >-
                    Base64 编码的图像掩码。掩码中的白色像素将被重新绘制，而黑色像素将被保留。  每个维度的最大尺寸为 1024
                    像素。
              x-apifox-orders:
                - prompt
                - image
                - mask_image
              required:
                - prompt
                - mask_image
                - image
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  image:
                    type: string
                  seed:
                    type: integer
                  cost:
                    type: number
                required:
                  - image
                  - seed
                  - cost
                x-apifox-orders:
                  - image
                  - seed
                  - cost
              example:
                image: ...looooong base64 encoded image string...
                seed: 42
                cost: 0.00663552
          headers: {}
          x-apifox-name: 成功
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                      type:
                        type: string
                      param:
                        type: string
                      code:
                        type: string
                    required:
                      - message
                      - type
                      - param
                      - code
                    x-apifox-orders:
                      - message
                      - type
                      - param
                      - code
                required:
                  - error
                x-apifox-orders:
                  - error
          headers: {}
          x-apifox-name: 请求有误
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                      type:
                        type: string
                      param:
                        type: 'null'
                      code:
                        type: string
                      doc_url:
                        type: string
                    required:
                      - message
                      - type
                      - param
                      - code
                      - doc_url
                    x-apifox-orders:
                      - message
                      - type
                      - param
                      - code
                      - doc_url
                required:
                  - error
                x-apifox-orders:
                  - error
          headers: {}
          x-apifox-name: 没有权限
        '429':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                      type:
                        type: string
                      param:
                        type: 'null'
                      code:
                        type: string
                    required:
                      - message
                      - type
                      - param
                      - code
                    x-apifox-orders:
                      - message
                      - type
                      - param
                      - code
                required:
                  - error
                x-apifox-orders:
                  - error
          headers: {}
          x-apifox-name: 请求有误
      security: []
      x-apifox-folder: 'Stable Diffusion '
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/3997609/apis/api-146685417-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://dev-cn.your-api-server.com
    description: 开发环境
  - url: http://test-cn.your-api-server.com
    description: 测试环境
  - url: https://api.getimg.ai/v1
    description: 正式环境
security: []

```
