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
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| prompt | string | Yes | - | The text description for the inpainting task. | |
| image | string | Yes | - | URL of the input image to be inpainted. | |
| mask_image | string | Yes | - | URL of the mask image. White areas will be inpainted, black areas will be preserved. | |
| size | string | No | - | 256 ~ 1536 per dimension | The size of the generated media in pixels (width*height). |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction, the ID of the prediction to get |
| data.model | string | Model ID used for the prediction |
| data.outputs | string | Array of URLs to the generated content (empty when status is not completed). |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |