Skip to content

How can my app keep model controls aligned with the currently supported API surface?

Show controls from the current operation contract and reviewed per-model availability, then validate the effective request again on the server. Do not infer that every model supports every visible setting. Persisted drafts also need revalidation after catalog changes; a previously selectable option is not a perpetual guarantee.

PRESERVE API DATA ACCURATELYAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Separate operation capabilities; Refresh contextual availability; Enforce server validation.
Workflow diagram: Separate operation capabilities → Refresh contextual availability → Enforce server validation. Read the article for evidence and limits.

One editor can hide several contracts

A unified UI can accidentally expose photo editing for a text-to-image endpoint or streaming for non-streaming text. Capability-driven controls help users form a supported request without pretending the application can enable an unsupported upstream feature.

What to do next

  1. 01

    Separate operation capabilities

    Maintain explicit video, image and text capability definitions based on the current public contract. Keep Studio-specific person mapping separate from H3 API references, and avoid copying controls from a vendor's broader native API.

  2. 02

    Refresh contextual availability

    Use the documented catalog and quote path to verify current model and configuration support before dispatch. Preserve older draft values visibly when unavailable, offering an explicit supported alternative rather than silently substituting a model.

  3. 03

    Enforce server validation

    Treat UI controls as assistance, not authority. Rebuild the model-specific request on the backend and reject stale or unsupported fields with a useful correction path, while leaving the user's unsent draft intact.

A concrete example

Illustrative example: an image draft retains an option that a current model configuration does not accept. The editor highlights that option for revision and requests a fresh estimate after the user changes it, rather than quietly choosing another configuration.

Before you call it ready

  • Controls match operation-specific fields.
  • Unavailable draft values are explained.
  • The server validates the effective request independently.

When to stop or choose another method

Stop enabling a capability solely because a similarly named vendor model or another AISwapLab surface offers it.

Sources

One task. A recoverable workflow.

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

Open API documentation