> ## 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 アウトペイント

> - 四方向に同時に画像キャンバスを拡張し、元の画像とシームレスに繋がる新しいコンテンツを生成します
- panとの違い：outpaintは四方向に同時に拡張、panは一方向に拡張
- **draft モードで生成されたソースタスクはサポートされません**
- 非同期処理モード、返されたタスクIDで[照会を実行](/ja/api-manual/task-management/get-task-detail)

<Note>
  Midjourneyにはコンテンツ審査機能が組み込まれています。生成された画像の一部が審査でフィルタリングされた場合、そのリクエストで消費されたクレジットは返金されません。プロンプトの内容がガイドラインに準拠しているかご確認ください。
</Note>


## OpenAPI

````yaml ja/api-manual/image-series/midjourney/mj-v7-outpaint.json POST /v1/images/generations
openapi: 3.1.0
info:
  title: mj-v7-outpaint インターフェース
  version: 1.0.0
  description: |-
    - 四方向に同時に画像キャンバスを拡張し、元の画像とシームレスに繋がる新しいコンテンツを生成します
    - panとの違い：outpaintは四方向に同時に拡張、panは一方向に拡張
    - 非同期処理モード、返されたタスクIDで[照会を実行](/ja/api-manual/task-management/get-task-detail)
servers:
  - url: https://api.evolink.ai
security: []
paths:
  /v1/images/generations:
    post:
      summary: Midjourney V7 アウトペイント
      description: >-
        - 四方向に同時に画像キャンバスを拡張し、元の画像とシームレスに繋がる新しいコンテンツを生成します

        - panとの違い：outpaintは四方向に同時に拡張、panは一方向に拡張

        - **draft モードで生成されたソースタスクはサポートされません**

        -
        非同期処理モード、返されたタスクIDで[照会を実行](/ja/api-manual/task-management/get-task-detail)
      operationId: mjV7Outpaint
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MjV7OutpaintRequest'
            examples:
              outpaint_example:
                summary: 四方向に拡張
                value:
                  model: mj-v7-outpaint
                  model_params:
                    task_id: task-unified-xxx
                    image_number: 1
                    scale: 1.5
      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:
    MjV7OutpaintRequest:
      type: object
      required:
        - model
        - model_params
      properties:
        model:
          type: string
          enum:
            - mj-v7-outpaint
          default: mj-v7-outpaint
          description: モデル名
        prompt:
          type: string
          description: 拡張領域の内容をガイド
        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)
            scale:
              type: number
              minimum: 1.1
              maximum: 2
              default: 1.5
              description: 拡張比率（最大2.0、panの3.0範囲より小さい）
            speed:
              type: string
              enum:
                - fast
                - turbo
              default: fast
              description: |-
                速度モード（promptが入力された場合のみ有効）

                **コスト説明：** turboモードはコストが高くなります
        callback_url:
          type: string
          format: uri
          description: タスク完了後のコールバックURL
    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
        ```

````