Choose Auto, TokenLab Verified, or Official for each request, with prices shown up front. See what's new

Stability AI: Stability AI Inpaint

Stability Inpaint edits a masked region of an image from a text instruction. It is useful for replacing an object, repairing an unwanted detail, or revising one area while the surrounding composition stays in place.
Compare models
stability-inpaint
AvailableStability AIImageSync
Price
From $0.05
Modalities
Image

About Stability AI Inpaint

Stability Inpaint is Stability AI's masked editing service: you provide an image, mark a region, and describe in text what should appear there. The rest of the picture is left as it was. It is used to swap an object, remove a flaw, or rework one area of a composition. For whole-image restyling, the Control and Style Guide services fit better.

Where it works well

  • Edits stay inside the masked region, so the surrounding composition remains as delivered.
  • A plain-language instruction drives the change; no manual retouching tool is needed.
  • Suits repeat jobs such as replacing a product or removing a distraction across many photos.

When to choose another model

  • It needs a mask, so batch use requires a way to produce masks automatically or by hand.
  • Large masked areas give the model more freedom, which makes a clean match with the original picture harder.

Getting started

  1. Create API key

    Create a key in Console, then use it with every model on the platform.

  2. Send your first request

    Copy the example for your language and run it against the endpoint.

    Image editingTokenLab endpoint
    POST/v1/images/edits
    curl -X POST "https://api.tokenlab.sh/v1/images/edits" \
      -H "Authorization: Bearer sk-xxx" \
      -H "Content-Type: application/json" \
      -d '{
      "model": "stability-inpaint",
      "prompt": "A minimalist product photo of matte black headphones on a soft blue background.",
      "image_url": "https://example.com/source.png"
    }'

Parameters

Image editing

ParameterValues and limitsDefaultNotes
imageInputs: ≥ 1, ≤ 1Not providedOne source image. Mask input, where declared, applies to this source image.
maskNot providedNot providedNot provided
modeNot providedNot providedNot provided
promptNot providedNot providedNot provided

Follows the official Stability inpaint contract.

Pricing

The Verified price applies to Verified, which costs less on most models. The Official price is the model maker's published price and applies to the more reliable Official route. Auto bills the route that completes the request.

Image editing

per image
Official price
$0.05
Verified price
—
Discount
—

Usage & activity

Success rate is the share of requests that completed. Latency is how long a full response takes; P95 means 95% of requests finished within that time.

Usage & availability

Last 24 hours
Requests
Success rate
P95 latency
Total tokens
Model performance
Metrics appear once privacy and data volume thresholds are met.

Data is based on aggregate user requests, excluding status checks.

Open in Console

Open Stability AI Inpaint in Console with a prompt ready to edit or send.

Help me create an image with stability-inpaint using image-edit at /v1/images/edits. Show the result, cost, and any limits I should know.

Use cases

  • Object replacement

    Mask a cup on a table and replace it with a plant, keeping the lighting and table surface consistent.

  • Blemish and distraction removal

    Mask a stray sign or power line in a landscape photo and ask for a natural continuation of the background.

  • Catalogue colour or product swaps

    Change one item in a staged scene while the photographed room stays fixed.

  • Marketing variations

    Alter the text area, signage, or accessory in a hero image to make regional versions.

Prompt examples

Replace the masked sofa with a green velvet armchair, same lighting and floor reflection.

Fill the masked area with open sky and distant hills to match the rest of the photo.

In the masked region add a steaming cup of coffee on the wooden table.

FAQ

What is Stability Inpaint for?

Changing a selected region of an image from a text instruction. You mask the area, describe the replacement, and the model fills it while the unmasked pixels remain part of the composition.

What inputs does it take?

An image, a mask marking the area to change, and a prompt describing what should be there. Its catalog operation is image edit, so the source picture is always required, and the mask decides exactly which pixels may be replaced.

Can it extend an image beyond its borders?

This listing is for masked edits inside the picture. Stability offers outpainting as a separate edit tool for extending a canvas, so do not expect border expansion here; treat Inpaint as a way to rework existing content.

Why does my edit look different from the surrounding photo?

Smaller masks and prompts that name the lighting and material of the scene blend best. Very large masks give the model more to invent and make seams more likely.

Does it generate images from text alone?

No. It always needs an input image and a mask to work on. For text-only generation, use Stable Image Core for everyday drafts or Stable Image Ultra when realism and fine detail matter for the result.

How much does Stability AI Inpaint cost?

On TokenLab, Stability AI Inpaint costs $0.05 per image. The pricing table above shows the full breakdown. Rates depend on the billing unit, specification, and usage. Compare matching conditions in the model's detailed pricing; a single rate does not determine the total cost.

Which endpoint should Stability AI Inpaint use?

Use https://api.tokenlab.sh/v1/images/edits for Stability AI Inpaint. The request example below shows the matching code shape.

Which operations does Stability AI Inpaint support?

Stability AI Inpaint supports Image editing. Select an operation above to see its endpoint and request example.

Compare Stability AI Inpaint

Guides that use Stability AI Inpaint

Sources

Reviewed Oct 2, 2026

More from Stability AI

Related models