Skip to content

Can I edit an uploaded photo or pass image references to GPT Image here?

The public /api/v1 image-generation contract creates a new image from text; it does not expose an uploaded-photo editing endpoint. Use only its documented model, prompt, size, quality, n=1 and max_credits fields. The website Image swap workspace is a separate supported photo-editing workflow, not a public editing API.

GENERATE AND INSPECT API IMAGESAISwapLab team · Editorial methodUpdated 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Identify the real task; Validate accepted fields; Offer a suitable alternative.
Workflow diagram: Identify the real task → Validate accepted fields → Offer a suitable alternative. Read the article for evidence and limits.

An image model name does not define every exposed feature

Different gateways can offer different subsets of a model's capabilities. Your app must distinguish generating a new image from editing the customer's existing one. Telling users that an uploaded photograph will be preserved when the route never accepts it creates a misleading workflow and an avoidable privacy risk.

What to do next

  1. 01

    Identify the real task

    Ask whether the user wants a new scene from text, a precise edit of an existing asset or identity-consistent references. Only the first is directly covered by this image route.

  2. 02

    Validate accepted fields

    Reject unsupported image arrays, masks and input_image_id locally with a clear explanation. Do not silently ignore the uploaded file while charging for a text-only generation.

  3. 03

    Offer a suitable alternative

    For a still-photo character edit, use the website Image swap workspace and review its current quote and mappings. For an integration, follow the public OpenAPI contract; do not send private website-only reference fields or assume an upstream editing endpoint is exposed.

A concrete example

Illustrative mismatch: a user uploads a product photo expecting its logo to remain unchanged. A text-only prompt cannot establish that preservation. The app should explain the missing editing capability before any image generation is approved.

Before you call it ready

  • The interface labels text-to-image accurately.
  • No uploaded image is silently ignored.
  • Provider-only fields are not forwarded speculatively.

When to stop or choose another method

If the brief requires exact asset preservation or reference-image editing, stop before spending on an unsupported substitute. A similar-looking generated scene is not the same deliverable.

Sources

One task. A recoverable workflow.

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

Open API documentation