Zoom
Zoom Out (outpaint) on a single upscaled image: the original is kept and more background is filled outward (Outpaint / CustomZoom)
Toda a documentaçãoPOST
/v1/midjourney/generations/zoom{
"error": {
"code": 502,
"message": "Bad gateway. The server is temporarily unavailable",
"type": "bad_gateway"
}
}Zoom out (outpaint) on a single image after Upscale: the original is kept and more background is filled outward. zoom_ratio < 2 uses Outpaint (1.5×); ≥ 2 or omitted uses CustomZoom (2×); both produce an image directly.
| Item | Value |
|---|---|
| action | ZOOM |
| Billing | midjourney@zoom[-speed] |
| Required | task_id, or task_id + custom_id |
| Optional | zoom_ratio, index, speed, metadata |
Exemplos de pedidos
curl --request POST \
--url https://api.apisea.ai/v1/midjourney/generations/zoom \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"task_id": "task_01KQW0D3WJ2QYJP9E3H7GZ4D2R",
"zoom_ratio": 1.5,
"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 |
custom_id | Optional; button ID for the corresponding Zoom action |
index | Optional; which image of the parent task (1–4, default 1); usually unnecessary for a single image |
zoom_ratio | Optional; controls which Zoom Out tier is auto-matched (see table below) |
speed | relax / fast / turbo |
metadata | Optional custom metadata |
Auto matching
zoom_ratio | Button |
|---|---|
Less than 2 | Zoom Out 1.5x |
Omitted or >= 2 | Zoom Out 2x |
Request example
{
"task_id": "task_01KQW0D3WJ2QYJP9E3H7GZ4D2R",
"zoom_ratio": 1.5,
"speed": "fast"
}Notes
- The parent task must be an upscaled single image and SUCCESS; passing a grid returns
This action requires an upscaled task..., so callupscalefirst. - Both Outpaint and CustomZoom produce an image directly, need no mask, and do not enter MODAL (only Inpaint uses MODAL).
- Version metadata from the source task is inherited automatically. To price by speed, configure
midjourney@zoom-fast/midjourney@zoom-turbo.
Response
On success you receive a new local task_id. Poll GET /v1/tasks/{task_id} for the result.
Respostas
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01KV52C0TEJSYZMCG0NCS4YWKK"
}
]
}Encontrou um problema nesta documentação? Envie um e-mail para support@apisea.ai.