Midjourney
Pan
Pan out in a direction on a single upscaled image; chain pans to stitch a panorama (v6 / v6.1 / v7 / niji 6 only)
POST
| Item | Value |
|---|---|
| action | PAN |
| Billing | midjourney@pan[-speed] |
| Required | task_id + direction, or task_id + custom_id |
| Optional | index, speed, metadata |
Parameters
| Field | Description |
|---|---|
task_id | Task ID returned by this platform (must be an Upscale single-image task) |
direction | left / right / up / down |
custom_id | Optional; button ID for the corresponding Pan action; when set, direction is not required |
index | Optional (1–4); backend auto-converts to 0-based |
speed | relax / fast / turbo |
metadata | Optional custom metadata |
customId substrings: pan_left, pan_right, pan_up, and pan_down.
Request example
Notes
- Version support: pan works only on v6 / v6.1 / v7 / niji 6; v5.2 and earlier FAIL (the MJ engine can’t run it), and v8 / v8.1 removed pan from the action panel (returns an “invalid generation request”).
- If it returns
This action requires an upscaled task..., you passed a grid task; callupscalefirst. directionmust be one ofleft/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 localtask_id. Poll GET /v1/tasks/{task_id} for the result.