# Edit images with private references and masks

> OpenGen image editing pairs workspace-private uploaded assets with one canonical input schema across 25 image models. Upload your source image via POST /v1/assets to receive a ready assetKey, pass it inside input.references (plus optional input.mask on models such as GPT Image 2), check pricing with POST /v1/pricing/estimate, and submit once with a persisted Idempotency-Key so retries never double-bill.

## Agent Prompt

```text
Walk me through an image-edit generation on OpenGen (https://opengen.dev):
1. Discover models supporting image-edit via GET https://opengen.dev/v1/models?operation=image-edit (or MCP find_models with operation="image-edit"; add inputRole="mask" if inpainting is needed).
2. Inspect the exact model via GET https://opengen.dev/v1/models/{provider}/{model}?operation=image-edit (or MCP get_model, e.g. id="openai/gpt-image-2", operation="image-edit") to check maximum reference counts, mask support, and published pricing.
3. Upload each private source image (and optional mask) using POST https://opengen.dev/v1/assets (or MCP upload_asset) and confirm state="ready" before referencing its assetKey.
4. Estimate spend via POST https://opengen.dev/v1/pricing/estimate (or MCP estimate_cost) and confirm the route and maxCostMicros cap with me.
5. Submit once with a persisted Idempotency-Key via POST https://opengen.dev/v1/generations (Prefer: wait=20) or MCP generate (waitMs=20000), then follow or refresh private output links via job_get without blind resubmission.
```

OpenGen `image-edit` transforms one or more workspace-private reference images using natural-language instructions and, on mask-capable variants, an explicit alpha mask. Source images always enter through OpenGen's private asset API so files stay scoped to your workspace rather than being published to public URLs.

## Prerequisites

- An OpenGen credential with `read` and `generate` scopes (`OPENGEN_API_KEY`, MCP OAuth on `https://opengen.dev/mcp`, or `@opengen-dev/cli` login).
- A local PNG, JPEG, or WebP source image you own or have permission to edit (plus an optional PNG mask when using mask inpainting).

## 1. Inspect an image-edit model and its media limits

Reference limits, mask support, and transparent-background rules vary by exact variant. Check them before uploading or building a payload:

- [GPT Image 2](/openai/gpt-image-2) (`openai/gpt-image-2`, official route `openai-undisclosed/openai-gpt-image-2` is live-verified for `text-to-image` at `1K`, while `image-edit` remains `documented` with an active OpenAI adapter): up to `16` image references, supports optional `mask`, `background: "transparent"` with `png`/`webp`, and `1K`–`4K` output.
- [Seedream 5.0 Pro](/bytedance/seedream-5.0-pro) (`bytedance/seedream-5.0-pro`): up to `10` image references, supports constrained transparent PNG editing (`references.length === 1`, `background: "transparent"`, `outputFormat: "png"`).
- [Nano Banana 2](/google/nano-banana-2) (`google/nano-banana-2`): `0.5K`–`4K` editing, up to `14` references, with `thinkingLevel: "minimal" | "high"`.

```bash tab="cURL"
# Filter models supporting image-edit (add &inputRole=mask for mask inpainting)
curl --fail-with-body \
  "https://opengen.dev/v1/models?operation=image-edit&inputRole=mask"

# Inspect exact schema, routes, and published pricing for GPT Image 2
curl --fail-with-body \
  "https://opengen.dev/v1/models/openai/gpt-image-2?operation=image-edit"
```

```ts tab="TypeScript"
const origin = process.env.OPENGEN_API_URL ?? 'https://opengen.dev';
const detail = await fetch(`${origin}/v1/models/openai/gpt-image-2?operation=image-edit`).then(
  (r) => r.json(),
);
console.log(detail.model.generationProfiles[0].capabilities.references);
```

```python tab="Python"
import os
import httpx

origin = os.environ.get("OPENGEN_API_URL", "https://opengen.dev")
with httpx.Client(timeout=30.0) as client:
    detail = client.get(
        f"{origin}/v1/models/openai/gpt-image-2",
        params={"operation": "image-edit"},
    ).raise_for_status().json()
    print(detail["model"]["generationProfiles"][0]["capabilities"]["references"])
```

```json tab="MCP"
{
  "tool": "get_model",
  "arguments": {
    "id": "openai/gpt-image-2",
    "operation": "image-edit"
  }
}
```

```bash tab="CLI"
opengen catalog search --operation image-edit --input-role mask
opengen catalog get openai/gpt-image-2
```

## 2. Upload your private source image (and optional mask)

Use `POST /v1/assets` to register your source image privately inside your workspace. Single-step `multipart/form-data` handles files up to **4 MiB** (JSON `base64` handles up to **3 MiB** decoded; files up to **100 MiB** use presigned single-PUT + `POST /v1/assets/complete`—see [Owned Assets](/docs/assets)). Require `state: "ready"` before referencing `assetKey`.

```bash tab="cURL"
curl --fail-with-body \
  -X POST "https://opengen.dev/v1/assets" \
  -H "Authorization: Bearer $OPENGEN_API_KEY" \
  -H "Idempotency-Key: asset-src-$(uuidgen | tr '[:upper:]' '[:lower:]')" \
  -F "file=@./ceramic-mug.png;type=image/png"
```

```ts tab="TypeScript"
import { readFile } from 'node:fs/promises';
import { randomUUID } from 'node:crypto';

const origin = process.env.OPENGEN_API_URL ?? 'https://opengen.dev';
const form = new FormData();
const bytes = await readFile('./ceramic-mug.png');
form.append('file', new Blob([bytes], { type: 'image/png' }), 'ceramic-mug.png');

const uploadRes = await fetch(`${origin}/v1/assets`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.OPENGEN_API_KEY}`,
    'Idempotency-Key': `asset-src-${randomUUID()}`,
  },
  body: form,
});
if (!uploadRes.ok) throw new Error(await uploadRes.text());
const asset = await uploadRes.json();
// Verify asset.state === 'ready' and save asset.assetKey
console.log(asset.assetKey, asset.state);
```

```python tab="Python"
import os
import uuid
import httpx

origin = os.environ.get("OPENGEN_API_URL", "https://opengen.dev")
with open("ceramic-mug.png", "rb") as fh, httpx.Client(timeout=60.0) as client:
    asset = client.post(
        f"{origin}/v1/assets",
        headers={
            "Authorization": f"Bearer {os.environ['OPENGEN_API_KEY']}",
            "Idempotency-Key": f"asset-src-{uuid.uuid4()}",
        },
        files={"file": ("ceramic-mug.png", fh, "image/png")},
    ).raise_for_status().json()
    print(asset["assetKey"], asset["state"])
```

```json tab="MCP"
{
  "tool": "upload_asset",
  "arguments": {
    "source": "presign_prepare",
    "mediaType": "image/png",
    "size": 245760
  }
}
```

```bash tab="CLI"
opengen upload /absolute/path/ceramic-mug.png --media-type image/png
```

> [!TIP]
> To iterate on a previous OpenGen image output without downloading and re-uploading bytes, reuse it directly via `POST https://opengen.dev/v1/assets` with `{ "source": "job_output", "sourceJobId": "<prior-job-uuid>", "outputIndex": 0 }` and a stable `Idempotency-Key` (or MCP `upload_asset` with `source: "job_output"`).

## 3. Estimate route eligibility before submitting

Pass uploaded images in `input.references` as `{ "type": "image", "asset": { "assetKey": "..." } }`. Image operations never use video-frame fields (`firstFrame` or `lastFrame`).

> [!IMPORTANT]
> Because image-edit billing varies with input-image tokens and dimensions, managed `image-edit` estimates on `openai-undisclosed/openai-gpt-image-2` are currently comparison-only (`selectedRouteId: null`). To execute live `image-edit` jobs today, connect your own provider credential and submit with `"billing": "byok"` (your connected provider account is billed directly; omit `maxCostMicros`, since OpenGen does not cap direct BYOK charges).

```bash tab="cURL"
set -eu
umask 077
if [ -e edit-submission.key ]; then
  echo "Existing edit-submission.key found; recover read-only via GET /v1/generations/lookup before replacing edit-request.json." >&2
  exit 1
fi
rm -f edit-request.json
cat <<'JSON' > edit-request.json
{
  "modelId": "openai/gpt-image-2",
  "operation": "image-edit",
  "input": {
    "prompt": "Replace the tabletop background with warm honed travertine stone while keeping the ceramic mug and shadows identical.",
    "references": [
      {
        "type": "image",
        "asset": {
          "assetKey": "inputs/YOUR_WORKSPACE/RETURNED_IMAGE_UUID.png"
        }
      }
    ],
    "resolution": "1K",
    "quality": "medium",
    "outputFormat": "png"
  },
  "routeId": "openai-undisclosed/openai-gpt-image-2",
  "billing": "byok"
}
JSON
chmod 600 edit-request.json

# Dry-run estimate only (review selectedRouteId and workspaceEligibility before submitting)
curl --fail-with-body \
  -X POST "https://opengen.dev/v1/pricing/estimate" \
  -H "Authorization: Bearer $OPENGEN_API_KEY" \
  -H "Content-Type: application/json" \
  --data @edit-request.json
```

```json tab="MCP"
{
  "tool": "estimate_cost",
  "arguments": {
    "modelId": "openai/gpt-image-2",
    "operation": "image-edit",
    "input": {
      "prompt": "Replace the tabletop background with warm honed travertine stone while keeping the ceramic mug and shadows identical.",
      "references": [
        {
          "type": "image",
          "asset": {
            "assetKey": "inputs/YOUR_WORKSPACE/RETURNED_IMAGE_UUID.png"
          }
        }
      ],
      "resolution": "1K",
      "quality": "medium",
      "outputFormat": "png"
    },
    "routeId": "openai-undisclosed/openai-gpt-image-2",
    "billing": "byok"
  }
}
```

```bash tab="CLI"
opengen pricing estimate --input edit-request.json
```

### Submit once after reviewing the estimate

Run this step only after reviewing the estimate output above and confirming `selectedRouteId`, `workspaceEligibility` (`policyAllowed: true`, `hasActiveBillingHold: false`, `executableCandidateCount > 0`, `blockers: []`), and your BYOK billing payer.

```bash tab="cURL"
set -eu
umask 077
if [ -e edit-submission.key ]; then
  echo "Existing edit-submission.key found; recover read-only via GET /v1/generations/lookup before creating a new submission." >&2
  exit 1
fi
RAW_UUID="$(uuidgen)"
[ -n "$RAW_UUID" ] || { echo "uuidgen failed" >&2; exit 1; }
IDEMPOTENCY_KEY="edit-$(printf '%s' "$RAW_UUID" | tr '[:upper:]' '[:lower:]')"
(set -C; printf '%s\n' "$IDEMPOTENCY_KEY" > edit-submission.key)

curl --fail-with-body \
  -X POST "https://opengen.dev/v1/generations" \
  -H "Authorization: Bearer $OPENGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Prefer: wait=20" \
  --data @edit-request.json > edit-receipt.json
```

```ts tab="TypeScript"
import { randomUUID } from 'node:crypto';
import { writeFile } from 'node:fs/promises';

const editPayload = {
  modelId: 'openai/gpt-image-2',
  operation: 'image-edit',
  input: {
    prompt:
      'Replace the tabletop background with warm honed travertine stone while keeping the ceramic mug and shadows identical.',
    references: [
      {
        type: 'image',
        asset: { assetKey: asset.assetKey },
      },
    ],
    resolution: '1K',
    quality: 'medium',
    outputFormat: 'png',
  },
  routeId: 'openai-undisclosed/openai-gpt-image-2',
  billing: 'byok',
} as const;

const headers = {
  Authorization: `Bearer ${process.env.OPENGEN_API_KEY}`,
  'Content-Type': 'application/json',
};

// 1. Run stateless dry-run estimate and stop if the request is rejected or ineligible.
const estRes = await fetch(`${origin}/v1/pricing/estimate`, {
  method: 'POST',
  headers,
  body: JSON.stringify(editPayload),
});
if (!estRes.ok) throw new Error(`Estimate failed (${estRes.status}): ${await estRes.text()}`);
const estimate = await estRes.json();
console.log('Review estimate before submitting:', estimate);

// 2. Only after the estimate is eligible and the user confirms the route and billing payer:
const eligibility = estimate.workspaceEligibility;
const canSubmit = Boolean(
  estimate.selectedRouteId &&
  eligibility?.policyAllowed === true &&
  eligibility.hasActiveBillingHold === false &&
  eligibility.executableCandidateCount > 0 &&
  (eligibility.billingMode === 'byok' || eligibility.sufficientBalance === true) &&
  Array.isArray(eligibility.blockers) &&
  eligibility.blockers.length === 0,
);
if (canSubmit && process.env.CONFIRM_SUBMIT === '1') {
  const idempotencyKey = `edit-${randomUUID()}`;
  await writeFile(
    'edit-submission.json',
    JSON.stringify({ idempotencyKey, payload: editPayload }, null, 2),
    { mode: 0o600, flag: 'wx' },
  );
  const genRes = await fetch(`${origin}/v1/generations`, {
    method: 'POST',
    headers: { ...headers, 'Idempotency-Key': idempotencyKey, Prefer: 'wait=20' },
    body: JSON.stringify(editPayload),
  });
  if (!genRes.ok) throw new Error(`Generation failed (${genRes.status}): ${await genRes.text()}`);
  const job = await genRes.json();
  console.log({ jobId: job.id, status: job.status });
}
```

```python tab="Python"
import json
import os
import uuid
import httpx

origin = os.environ.get("OPENGEN_API_URL", "https://opengen.dev")
edit_payload = {
    "modelId": "openai/gpt-image-2",
    "operation": "image-edit",
    "input": {
        "prompt": "Replace the tabletop background with warm honed travertine stone while keeping the ceramic mug and shadows identical.",
        "references": [
            {"type": "image", "asset": {"assetKey": asset["assetKey"]}},
        ],
        "resolution": "1K",
        "quality": "medium",
        "outputFormat": "png",
    },
    "routeId": "openai-undisclosed/openai-gpt-image-2",
    "billing": "byok",
}

with httpx.Client(timeout=45.0) as client:
    auth = {"Authorization": f"Bearer {os.environ['OPENGEN_API_KEY']}"}
    estimate = client.post(f"{origin}/v1/pricing/estimate", headers=auth, json=edit_payload).raise_for_status().json()
    print("Review estimate before submitting:", estimate)

    # Submit only after confirming route eligibility and billing payer, persisting the key exclusively first.
    eligibility = estimate.get("workspaceEligibility") or {}
    can_submit = (
        bool(estimate.get("selectedRouteId"))
        and eligibility.get("policyAllowed") is True
        and eligibility.get("hasActiveBillingHold") is False
        and eligibility.get("executableCandidateCount", 0) > 0
        and (eligibility.get("billingMode") == "byok" or eligibility.get("sufficientBalance") is True)
        and eligibility.get("blockers") == []
    )
    if can_submit and os.environ.get("CONFIRM_SUBMIT") == "1":
        idempotency_key = f"edit-{uuid.uuid4()}"
        fd = os.open("edit-submission.json", os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o600)
        with os.fdopen(fd, "w", encoding="utf-8") as handle:
            json.dump({"idempotencyKey": idempotency_key, "payload": edit_payload}, handle, indent=2)
        job = client.post(
            f"{origin}/v1/generations",
            headers={**auth, "Idempotency-Key": idempotency_key, "Prefer": "wait=20"},
            json=edit_payload,
        ).raise_for_status().json()
        print(job["id"], job["status"])
```

```json tab="MCP"
{
  "tool": "generate",
  "arguments": {
    "idempotencyKey": "edit-example-001",
    "modelId": "openai/gpt-image-2",
    "operation": "image-edit",
    "input": {
      "prompt": "Replace the tabletop background with warm honed travertine stone while keeping the ceramic mug and shadows identical.",
      "references": [
        {
          "type": "image",
          "asset": {
            "assetKey": "inputs/YOUR_WORKSPACE/RETURNED_IMAGE_UUID.png"
          }
        }
      ],
      "resolution": "1K",
      "quality": "medium",
      "outputFormat": "png"
    },
    "routeId": "openai-undisclosed/openai-gpt-image-2",
    "billing": "byok",
    "waitMs": 20000
  }
}
```

```bash tab="CLI"
set -eu
umask 077
if [ -e edit-submission.key ]; then
  echo "Existing edit-submission.key found; run 'opengen job recover --idempotency-key \"\$(cat edit-submission.key)\"' before creating a new submission." >&2
  exit 1
fi
RAW_UUID="$(uuidgen)"
[ -n "$RAW_UUID" ] || { echo "uuidgen failed" >&2; exit 1; }
IDEMPOTENCY_KEY="edit-$(printf '%s' "$RAW_UUID" | tr '[:upper:]' '[:lower:]')"
(set -C; printf '%s\n' "$IDEMPOTENCY_KEY" > edit-submission.key)
opengen generate --input edit-request.json --idempotency-key "$IDEMPOTENCY_KEY" --wait 20 > edit-receipt.json
```

### Adding an optional inpainting mask

On mask-capable variants (`openai/gpt-image-2`, `openai/gpt-image-2.5-*`, `openai/gpt-image-2.6-*`), upload a second workspace-private PNG mask and attach it under `input.mask` alongside at least one `image` entry in `input.references` (using `"billing": "byok"` since managed `image-edit` quotes are currently comparison-only):

```json
{
  "modelId": "openai/gpt-image-2",
  "operation": "image-edit",
  "input": {
    "prompt": "Replace only the masked mug handle with fluted matte brass.",
    "references": [
      {
        "type": "image",
        "asset": {
          "assetKey": "inputs/YOUR_WORKSPACE/RETURNED_IMAGE_UUID.png"
        }
      }
    ],
    "mask": {
      "assetKey": "inputs/YOUR_WORKSPACE/RETURNED_MASK_UUID.png"
    },
    "resolution": "1K",
    "quality": "medium",
    "outputFormat": "png"
  },
  "routeId": "openai-undisclosed/openai-gpt-image-2",
  "billing": "byok"
}
```

## 4. Retrieve outputs and clean up unused inputs

Poll `GET /v1/generations/{id}/status?waitMs=25000` (or MCP `job_get`) until `deliveryStatus` is `available`, then download from the returned first-party `/media/...` capability URL. If a submission disconnects before returning a job ID, recover with `GET /v1/generations/lookup?idempotencyKey=$IDEMPOTENCY_KEY`.

When you no longer need the uploaded source image for future jobs, tombstone it with `DELETE https://opengen.dev/v1/assets?key=<URL-encoded assetKey>` (or MCP `delete_asset`). Accepted jobs keep their private input pins until finished.

## Next steps

- Need higher resolution without re-composing the scene? See [Image Upscaling](/docs/guides/image-upscale).
- Need a transparent subject cutout? See [Background Removal](/docs/guides/background-remove).
- Ready to animate the edited still into video? See [Image to Video](/docs/guides/image-to-video).

## Supported Models

Live catalog variants supporting `image-edit` (single-source tariffs from `@media-router/catalog`; unknown prices stay `Unknown`, never `$0`).

| Model | Exact ID | Creator | Routes | Lowest published rate | Weights | Inspect schema |
| --- | --- | --- | --- | --- | --- | --- |
| [Seedream 5.0 Pro](https://opengen.dev/bytedance/seedream-5.0-pro#variant-bytedance-seedream-5.0-pro) | `bytedance/seedream-5.0-pro` | ByteDance | 5 | $0.03825 / image | Closed | `GET /v1/models/bytedance/seedream-5.0-pro?operation=image-edit` |
| [GPT Image 2](https://opengen.dev/openai/gpt-image-2#variant-openai-gpt-image-2) | `openai/gpt-image-2` | OpenAI | 5 | ≈$0.0059 / image | Closed | `GET /v1/models/openai/gpt-image-2?operation=image-edit` |
| [FLUX 3 Image](https://opengen.dev/bfl/flux-3-image#variant-bfl-flux-3-image) | `bfl/flux-3-image` | Black Forest Labs | 2 | ≈$0.0283 / image | Closed | `GET /v1/models/bfl/flux-3-image?operation=image-edit` |
| [FLUX 3 Klein](https://opengen.dev/bfl/flux-3-image#variant-bfl-flux-3-klein) | `bfl/flux-3-klein` | Black Forest Labs | 2 | $0.008 / image | Open weights | `GET /v1/models/bfl/flux-3-klein?operation=image-edit` |
| [Seedream 5.0 Flash](https://opengen.dev/bytedance/seedream-5.0-flash#variant-bytedance-seedream-5.0-flash) | `bytedance/seedream-5.0-flash` | ByteDance | 2 | $0.018 / image | Closed | `GET /v1/models/bytedance/seedream-5.0-flash?operation=image-edit` |
| [MiniMax H3 Image Highspeed](https://opengen.dev/minimax/h3-image#variant-minimax-h3-image-highspeed) | `minimax/h3-image-highspeed` | MiniMax | 2 | ≈$0.0156 / image | Closed | `GET /v1/models/minimax/h3-image-highspeed?operation=image-edit` |
| [Qwen Image 3 · fal](https://opengen.dev/qwen/image-3.0-pro#variant-fal-qwen-image-3) | `fal/qwen-image-3` | fal | 1 | $0.04 / image | Closed | `GET /v1/models/fal/qwen-image-3?operation=image-edit` |
| [Nano Banana 2 Lite](https://opengen.dev/google/nano-banana-2-lite#variant-google-nano-banana-2-lite) | `google/nano-banana-2-lite` | Google | 1 | ≈$0.0336 / image | Closed | `GET /v1/models/google/nano-banana-2-lite?operation=image-edit` |
| [Qwen Image 3.0 Pro](https://opengen.dev/qwen/image-3.0-pro#variant-alibaba-qwen-image-3.0-pro) | `alibaba/qwen-image-3.0-pro` | Alibaba | 7 | $0.03438 / image | Closed | `GET /v1/models/alibaba/qwen-image-3.0-pro?operation=image-edit` |
| [Qwen Image 2.1 Pro · Hosted](https://opengen.dev/qwen/image-2.1#variant-alibaba-qwen-image-2.1-pro) | `alibaba/qwen-image-2.1-pro` | Alibaba | 6 | $0.035333 / image | Closed | `GET /v1/models/alibaba/qwen-image-2.1-pro?operation=image-edit` |
| [Qwen Image 2.1 Turbo](https://opengen.dev/qwen/image-2.1#variant-qwen-image-2.1-turbo) | `qwen/image-2.1-turbo` | Qwen | 6 | $0.014133 / image | Open weights | `GET /v1/models/qwen/image-2.1-turbo?operation=image-edit` |
| [Nano Banana 2.1](https://opengen.dev/google/nano-banana-2.1#variant-google-nano-banana-2.1) | `google/nano-banana-2.1` | Google | 5 | $0.0336 / image | Closed | `GET /v1/models/google/nano-banana-2.1?operation=image-edit` |
| [GPT Image 2.5 Flare](https://opengen.dev/openai/gpt-image-2.5#variant-openai-gpt-image-2.5-flare) | `openai/gpt-image-2.5-flare` | OpenAI | 5 | ≈$0.0056 / image | Closed | `GET /v1/models/openai/gpt-image-2.5-flare?operation=image-edit` |
| [GPT Image 2.5 Sunburst](https://opengen.dev/openai/gpt-image-2.5#variant-openai-gpt-image-2.5-sunburst) | `openai/gpt-image-2.5-sunburst` | OpenAI | 5 | ≈$0.0056 / image | Closed | `GET /v1/models/openai/gpt-image-2.5-sunburst?operation=image-edit` |
| [Grok Imagine Image 2.0](https://opengen.dev/xai/grok-imagine-image-2.0#variant-xai-grok-imagine-image-2.0) | `xai/grok-imagine-image-2.0` | xAI | 5 | $0.04 / image | Closed | `GET /v1/models/xai/grok-imagine-image-2.0?operation=image-edit` |
| [Seedream 4.0](https://opengen.dev/bytedance/seedream-4.0#variant-bytedance-seedream-4.0) | `bytedance/seedream-4.0` | ByteDance | 2 | $0.03 / image | Closed | `GET /v1/models/bytedance/seedream-4.0?operation=image-edit` |
| [Seedream 4.5](https://opengen.dev/bytedance/seedream-4.5#variant-bytedance-seedream-4.5) | `bytedance/seedream-4.5` | ByteDance | 2 | $0.04 / image | Closed | `GET /v1/models/bytedance/seedream-4.5?operation=image-edit` |
| [Seedream 5.0 Lite](https://opengen.dev/bytedance/seedream-5.0-lite#variant-bytedance-seedream-5.0-lite) | `bytedance/seedream-5.0-lite` | ByteDance | 2 | $0.035 / image | Closed | `GET /v1/models/bytedance/seedream-5.0-lite?operation=image-edit` |
| [Seedream 5.5](https://opengen.dev/bytedance/seedream-5.5#variant-bytedance-seedream-5.5) | `bytedance/seedream-5.5` | ByteDance | 2 | $0.02 / image | Closed | `GET /v1/models/bytedance/seedream-5.5?operation=image-edit` |
| [Nano Banana 2](https://opengen.dev/google/nano-banana-2#variant-google-nano-banana-2) | `google/nano-banana-2` | Google | 2 | ≈$0.0448 / image | Closed | `GET /v1/models/google/nano-banana-2?operation=image-edit` |
| [Nano Banana Pro](https://opengen.dev/google/nano-banana-pro#variant-google-nano-banana-pro) | `google/nano-banana-pro` | Google | 2 | ≈$0.1344 / image | Closed | `GET /v1/models/google/nano-banana-pro?operation=image-edit` |
| [MiniMax H3 Image](https://opengen.dev/minimax/h3-image#variant-minimax-h3-image) | `minimax/h3-image` | MiniMax | 2 | ≈$0.0078 / image | Closed | `GET /v1/models/minimax/h3-image?operation=image-edit` |
| [GPT Image 2.6 Flare](https://opengen.dev/openai/gpt-image-2.6#variant-openai-gpt-image-2.6-flare) | `openai/gpt-image-2.6-flare` | OpenAI | 2 | ≈$0.0247 / image | Closed | `GET /v1/models/openai/gpt-image-2.6-flare?operation=image-edit` |
| [GPT Image 2.6 Sunburst](https://opengen.dev/openai/gpt-image-2.6#variant-openai-gpt-image-2.6-sunburst) | `openai/gpt-image-2.6-sunburst` | OpenAI | 2 | ≈$0.0247 / image | Closed | `GET /v1/models/openai/gpt-image-2.6-sunburst?operation=image-edit` |
