> ## Documentation Index
> Fetch the complete documentation index at: https://docs.evolink.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Midjourney V7 延展

<Note>
  Midjourney 内置内容审核机制。如果生成的部分图像触发了审核过滤，该次请求已消耗的积分将无法退还，请留意提示词的内容合规性。
</Note>


## OpenAPI

````yaml cn/api-manual/image-series/midjourney/mj-v7-pan.json POST /v1/images/generations
openapi: 3.1.0
info:
  title: mj-v7-pan 接口
  version: 1.0.0
  description: |-
    - 向指定方向扩展图像画布，生成与原图无缝衬接的新内容
    - 支持上下左右四个方向
    - 与 outpaint 的区别：pan 向单一方向延展，outpaint 向四周同时扩展
    - 异步处理模式，使用返回的任务ID [进行查询](/cn/api-manual/task-management/get-task-detail)
servers:
  - url: https://api.evolink.ai
security: []
paths:
  /v1/images/generations:
    post:
      summary: Midjourney V7 延展
      operationId: mjV7Pan
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MjV7PanRequest'
            examples:
              pan_right:
                summary: 向右延展
                value:
                  model: mj-v7-pan
                  model_params:
                    task_id: task-unified-xxx
                    image_number: 0
                    direction: right
                    scale: 2
      responses:
        '200':
          description: 任务创建成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageGenerationResponse'
        '400':
          description: 请求参数错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: 未认证
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: 配额不足
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 无权限
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: 频率超限
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: 服务器内部错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    MjV7PanRequest:
      type: object
      required:
        - model
        - model_params
      properties:
        model:
          type: string
          enum:
            - mj-v7-pan
          default: mj-v7-pan
          description: 模型名称
        prompt:
          type: string
          description: 引导延展区域的内容
          example: 延展出一片星空
        model_params:
          type: object
          required:
            - task_id
          description: 模型参数
          properties:
            task_id:
              type: string
              description: 源任务 ID
              example: task-unified-xxx
            image_number:
              type: integer
              enum:
                - 0
                - 1
                - 2
                - 3
              default: 0
              description: 选择第几张图（0-3）
            direction:
              type: string
              enum:
                - down
                - right
                - up
                - left
              default: down
              description: 延展方向
            scale:
              type: number
              minimum: 1.1
              maximum: 3
              default: 1.5
              description: 延展比例，越大延展区域越多
            speed:
              type: string
              enum:
                - fast
                - turbo
              default: fast
              description: |-
                速度模式（仅当传入 prompt 时生效）

                **费用说明：** turbo 模式费用更高
        callback_url:
          type: string
          format: uri
          description: 任务完成后的回调地址
    ImageGenerationResponse:
      type: object
      properties:
        created:
          type: integer
          description: 任务创建时间戳
          example: 1757165031
        id:
          type: string
          description: 任务ID
          example: task-unified-1757165031-mjv7
        model:
          type: string
          description: 实际使用的模型名称
        object:
          type: string
          enum:
            - image.generation.task
          description: 任务的具体类型
        progress:
          type: integer
          description: 任务进度百分比 (0-100)
          minimum: 0
          maximum: 100
          example: 0
        status:
          type: string
          description: 任务状态
          enum:
            - pending
            - processing
            - completed
            - failed
          example: pending
        task_info:
          $ref: '#/components/schemas/TaskInfo'
        type:
          type: string
          enum:
            - text
            - image
            - audio
            - video
          example: image
        usage:
          $ref: '#/components/schemas/Usage'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            type:
              type: string
    TaskInfo:
      type: object
      properties:
        can_cancel:
          type: boolean
          description: 任务是否可以取消
          example: true
        estimated_time:
          type: integer
          description: 预估完成时间（秒）
          minimum: 0
          example: 45
    Usage:
      type: object
      properties:
        billing_rule:
          type: string
          enum:
            - per_call
            - per_token
            - per_second
          example: per_call
        credits_reserved:
          type: number
          description: 预估消耗积分数
          minimum: 0
          example: 1.8
        user_group:
          type: string
          example: default
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        ##所有接口均需要使用Bearer Token进行认证##

        **获取 API Key ：**

        访问 [API Key 管理页面](https://evolink.ai/dashboard/keys) 获取您的 API Key

        **使用时在请求头中添加：**
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````