WaveSpeedAI APIWavespeed AIZ Image Turbo Inpaint

Z Image Turbo Inpaint

Z Image Turbo Inpaint

Playground

Try it on WavespeedAI!

Z-Image Turbo Inpaint delivers ultra-fast image inpainting with natural-language instructions—seamlessly fill, fix, or replace regions in your images with production-quality results. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

Features

Z-Image Turbo Inpaint

Z-Image Turbo Inpaint is a lightning-fast image inpainting model that allows you to seamlessly fill, fix, or replace specific regions in your images using natural language instructions. Built for speed and quality, it delivers production-ready results in seconds.


Suitable for

  • Product image editing and cleanup
  • Photo restoration and object removal
  • Creative image manipulation
  • Automated image processing pipelines

Fast and reliable inpainting

Simply provide an image, a mask defining the region to modify, and a text prompt describing what you want. Z-Image Turbo Inpaint handles the rest, generating high-quality inpainted results with minimal latency.


Key Features

Natural language control

Describe your inpainting task in plain English—no complex parameters or technical knowledge required. The model understands your intent and applies changes accordingly.

High-speed processing

Optimized for performance, Z-Image Turbo Inpaint delivers results in seconds, making it ideal for real-time applications and high-volume workflows.

Production-ready quality

Generate seamless, natural-looking inpainted regions that blend perfectly with the surrounding image content.

Simple API integration

Ready-to-use REST API with straightforward inputs: image URL, mask URL, and prompt. No cold starts, consistent performance.


Pricing

  • $0.02 per inpainted image

More Image Tools on WaveSpeedAI

  • FLUX.2 [max] Edit – Production-grade image editing with natural language instructions and hex color control.
  • FLUX.2 [flex] Edit – Precise, controllable, and color-accurate image editing.
  • Qwen Edit Plus – Enhanced image editor for precise inpainting and local style changes.

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result


# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/z-image/turbo-inpaint" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{}'

# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
promptstringYes-The text description for the inpainting task.
imagestringYes-URL of the input image to be inpainted.
mask_imagestringYes-URL of the mask image. White areas will be inpainted, black areas will be preserved.
sizestringNo-256 ~ 1536 per dimensionThe size of the generated media in pixels (width*height).

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction, the ID of the prediction to get
data.modelstringModel ID used for the prediction
data.outputsstringArray of URLs to the generated content (empty when status is not completed).
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2025 WaveSpeedAI. All rights reserved.