# AI Expand

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/aiart/extender:
    post:
      summary: AI Expand
      deprecated: false
      description: >
        Al Expand

        Expand your photo with one click using Fotor's advanced Al algorithm to
        extend subjects, backgrounds, and textures naturally.
      tags:
        - Reference
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: Bearer <your api key>
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                imageUrl:
                  type: string
                  description: >-
                    The URL or BASE64 encoded image of the initial image
                    provided by the user, used to generate a new image based on
                    it.
                padImgLeft:
                  type: integer
                  description: Pixels expanded to the left
                padImgTop:
                  type: integer
                  description: Pixels expanded to the top
                padImgRight:
                  type: integer
                  description: Pixels expanded to the right
                padImgBottom:
                  type: integer
                  description: Pixels expanded to the bottom
              required:
                - imageUrl
                - padImgLeft
                - padImgTop
                - padImgRight
                - padImgBottom
              x-apifox-orders:
                - imageUrl
                - padImgLeft
                - padImgTop
                - padImgRight
                - padImgBottom
            example:
              imageUrl: >-
                https://pub-static.fotor.com/assets/goart-effects/examples/mini-figure-after.jpg
              padImgLeft: 100
              padImgTop: 100
              padImgRight: 100
              padImgBottom: 100
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: '000: Success，999: Unknown error'
                    x-apifox-mock: '000'
                    examples:
                      - '000'
                  msg:
                    type: string
                    x-apifox-mock: success
                    examples:
                      - success
                  data:
                    type: object
                    properties:
                      taskId:
                        type: string
                        description: Task ID, used to query task information.
                        x-apifox-mock: e0dc194703174b6eafeacb4ee8e02850
                        examples:
                          - e0dc194703174b6eafeacb4ee8e02850
                    required:
                      - taskId
                    x-apifox-orders:
                      - taskId
                required:
                  - code
                  - msg
                  - data
                x-apifox-orders:
                  - code
                  - msg
                  - data
          headers: {}
          x-apifox-name: success
      security: []
      x-apifox-folder: Reference
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5562290/apis/api-240777228-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api-b.fotor.com
    description: 正式环境
security: []

```
