Get API Key Get API
Docs

Zoom

Zoom Out (outpaint) on a single upscaled image: the original is kept and more background is filled outward (Outpaint / CustomZoom)

Request example

curl --request POST \
  --url https://api.openveer.com/v1/midjourney/generations/zoom \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "task_id": "task_01KQW0D3WJ2QYJP9E3H7GZ4D2R",
    "zoom_ratio": 1.5,
    "speed": "fast"
  }'

Response example

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

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

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 call upscale first.
  • 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.

This documentation is built and hosted on Mintlify, a developer documentation platform.