Skip to content

How do I generate a portrait or landscape image instead of a square?

Use a documented non-square size: 1024x1536 for portrait or 1536x1024 for landscape. The aliases 1K, 2K and 4K select square dimensions in the customer API. Do not add an unsupported aspect_ratio field or assume that choosing 2K automatically creates a portrait version of your earlier 1K request.

GENERATE AND INSPECT API IMAGESAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Choose the actual destination; Send the supported size; Review framing after download.
Workflow diagram: Choose the actual destination → Send the supported size → Review framing after download. Read the article for evidence and limits.

Composition should be specified before spending

The shape changes how a subject, headline or empty space fits the frame. A prompt can describe placement, but it does not override an incompatible size. The currently exposed non-square options fall in the 1K price tier. Nano Banana's non-square native output is checked for matching ratio and a sufficient long edge rather than a universal exact pair.

What to do next

  1. 01

    Choose the actual destination

    Write whether the asset is for a portrait card, landscape header or square post. Check if the supported ratio is suitable before promising a platform-specific final export.

  2. 02

    Send the supported size

    Use the exact numeric string in the approved payload and quote it for the chosen model. Remove provider-specific ratio parameters not accepted by the customer schema.

  3. 03

    Review framing after download

    Measure actual dimensions and inspect whether essential content stays in frame. If a separate crop is needed, keep it distinct from the generated original and check that it does not remove the subject.

A concrete example

Illustrative choice: a landscape concept uses 1536x1024 and a prompt leaving space for a title. It is not a guarantee of exact brand layout; the user still reviews spacing and adds final typography in a design tool if needed.

Before you call it ready

  • The size matches a documented shape.
  • Square aliases are not treated as ratio controls.
  • Critical content survives any later crop.

When to stop or choose another method

If the required high-resolution non-square shape is not supported, do not invent dimensions. Use a suitable editing workflow or another documented service.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation