Skip to content
このページはまだお使いの言語に対応していないため、英語で表示されています。

Pan

Pan out in a direction on a single upscaled image; chain pans to stitch a panorama (v6 / v6.1 / v7 / v8.1 / v8.2 / niji 6 only)

すべてのドキュメント
POST/v1/midjourney/generations/pan
json
{
  "error": {
    "code": 502,
    "message": "Bad gateway. The server is temporarily unavailable",
    "type": "bad_gateway"
  }
}

Pan out in a direction on a single image after Upscale: the original stays at the edge and the new area is filled in. Pan can be chained (keep panning right) to stitch a panorama.

ItemValue
actionPAN
Billingmidjourney@pan[-speed]
Requiredtask_id + direction, or task_id + custom_id
Optionalindex, speed, metadata

リクエスト例

curl --request POST \
  --url https://api.apisea.ai/v1/midjourney/generations/pan \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "task_id": "task_01KQW0D3WJ2QYJP9E3H7GZ4D2R",
    "direction": "right",
    "speed": "fast"
  }'

Parameters

FieldDescription
task_idTask ID returned by this platform (must be an Upscale single-image task)
nsfw_checkboolean — Optional; defaults to false. Run content moderation before submitting a Midjourney task. • true: use omni-moderation-latest to review prompts and input images • false: skip moderation without adding moderation cost or latency
directionleft / right / up / down
custom_idOptional; button ID for the corresponding Pan action; when set, direction is not required
indexOptional (1–4); backend auto-converts to 0-based
speedrelax / fast / turbo
metadataOptional custom metadata

Auto matching uses customId substrings: pan_left, pan_right, pan_up, and pan_down.

Request example

json
{
  "task_id": "task_01KQW0D3WJ2QYJP9E3H7GZ4D2R",
  "direction": "right",
  "speed": "fast"
}

Notes

  • Version support: pan works only on v6 / v6.1 / v7 / v8.1 / v8.2 / niji 6; v5.2 and earlier FAIL (the MJ engine can't run it).
  • If it returns This action requires an upscaled task..., you passed a grid task; call upscale first.
  • direction must be one of left / right / up / down.
  • Version metadata from the source task is inherited automatically. To price by speed, configure midjourney@pan-fast / midjourney@pan-turbo.

Response

On success you receive a new local task_id. Poll GET /v1/tasks/{task_id} for the result.

レスポンス

{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01KV52C0TEJSYZMCG0NCS4YWKK"
    }
  ]
}

ドキュメントに問題が見つかりましたか?support@apisea.aiまでメールでお知らせください。