Editing · REPRODUCIBLE GUIDE

Image-to-Image API: Reference Workflow and QA Checklist

Build an image-to-image request around uploads, transformation constraints, and review criteria.

One API gateway for multiple AI models.

APIMart is a multi-model AI API gateway with an OpenAI-compatible endpoint. Use one account to access supported image models, compare current pricing, and choose a cost-efficient option for each workload.

Create an APIMart account ↗
Browse all guides
WHY THIS GUIDE EXISTS

Test the workflow,
not the marketing claim.

Covers reference preparation, transformation strength, protected attributes, and output traceability.

Editing

Living room material redesign

Keep the room geometry, camera position and daylight unchanged; replace the sofa upholstery with warm gray boucle, change the rug to natural jute, and remove only the blue floor lamp.
Reference-preserving interior edit4:3
Editing

Fashion colorway edit

Preserve the model, pose, fabric folds, lighting and background; change only the jacket from black to deep forest green and the zipper hardware from silver to matte black.
Garment color variation4:5
Editing

Product background edit

Keep the bottle shape, cap, label geometry and camera angle identical; replace the white studio background with pale travertine and add one soft olive branch shadow from the upper left.
Campaign scene variation1:1
PYTHON QUICKSTART

Keep the request reproducible.

Store credentials in the environment. Record the exact model identifier, dimensions, test date, and retry count with the resulting asset.

import os
from openai import OpenAI

client = OpenAI(
  api_key=os.environ["APIMART_API_KEY"],
  base_url="https://api.apimart.ai/v1",
)

result = client.images.generate(
  model="gpt-image-1-official",
  prompt=PROMPT,
  size="1024x1024",
  n=1,
)
REVIEW CHECKLIST

Before you publish a result