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)
Gesamte DokumentationPOST
/v1/midjourney/generations/pan{
"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.
| Item | Value |
|---|---|
| action | PAN |
| Billing | midjourney@pan[-speed] |
| Required | task_id + direction, or task_id + custom_id |
| Optional | index, speed, metadata |
Anfragebeispiele
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
| Field | Description |
|---|---|
task_id | Task ID returned by this platform (must be an Upscale single-image task) |
nsfw_check | boolean — 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 |
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 |
Auto matching uses customId substrings: pan_left, pan_right, pan_up, and pan_down.
Request example
{
"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; 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 local task_id. Poll GET /v1/tasks/{task_id} for the result.
Antworten
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01KV52C0TEJSYZMCG0NCS4YWKK"
}
]
}Einen Fehler in dieser Dokumentation gefunden? Schreiben Sie an support@apisea.ai.