Skip to content

Why does quality=high fail even though I selected 4K?

The current published image rates support quality=medium. Selecting 4K changes dimensions, not the permitted quality mode. Check the live model catalog's qualities field rather than assuming every enum or upstream option is enabled commercially. A high-quality request can be rejected before generation even when the account has enough credits.

GENERATE AND INSPECT API IMAGESAISwapLab team · Editorial methodUpdated 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Read the active model row; Normalize your request; Obtain a new quote.
Workflow diagram: Read the active model row → Normalize your request → Obtain a new quote. Read the article for evidence and limits.

Capability schemas can be broader than active pricing

The general request validator recognizes low, medium and high as quality names, but quote and readiness checks enforce the configured rate. Your application should derive its visible options from the current model catalog and quote behavior. Otherwise users may approve an option your deployed integration cannot actually buy. The OpenAPI schema lists low, medium and high as possible field values; that syntax alone does not establish a priced combination for your selected model. Read its current catalog qualities and request a quote.

What to do next

  1. 01

    Read the active model row

    Confirm available, sizes and qualities for the exact alias. Do not reuse cached settings from another gateway or from an earlier deployment without checking freshness.

  2. 02

    Normalize your request

    Set medium explicitly and remove UI defaults that silently add high. Preserve the intended size and prompt so the correction does not change unrelated creative requirements.

  3. 03

    Obtain a new quote

    Verify that the corrected payload is accepted before creation. Explain to the user that resolution remains 4K while the supported quality mode is medium.

A concrete example

Illustrative error: a design app automatically sends quality=high whenever its resolution selector reaches 4K. The request fails because these are separate dimensions of the contract. Set the supported quality rather than raising max_credits blindly.

Before you call it ready

  • Quality and size have separate controls.
  • Only catalog-supported modes are offered.
  • The corrected body is quoted before submission.

When to stop or choose another method

If high quality is essential to a deliverable, do not describe medium as equivalent. Choose a service with that documented mode or wait for a verified supported configuration.

Sources

One task. A recoverable workflow.

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

Open API documentation