🚀 Z-Image Turbo Image-to-Image is Live — Unlimited Generations for Premium Users

Try Now
Z Image Turbo Image To Image thumbnail

ModelsLab/Z Image Turbo Image To Image

z-image-turbo
Z Image Turbo Image To ImageFree for Premium UsersLLMs.txt
Z-Image Turbo Model transform an existing image into a new version using a text prompt, rather than generating a picture from scratch. You upload a source image and then describe how you want it changed
API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v6/images/img2img

API Authentication

Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.

Integration Examples

Production-ready code samples for API integration

{
"init_image": "https://assets.modelslab.com/generations/6506705e-79a8-4c87-84ee-3450ea51b793.jpg",
"prompt": "Young woman in red Hanfu, intricate embroidery. Impeccable makeup, red floral forehead pattern. Elaborate high bun, golden phoenix headdress, red flowers, beads. Holds round folding fan with lady, trees, bird. Neon lightning-bolt lamp, bright yellow glow, above extended left palm. Soft-lit outdoor night background, silhouetted tiered pagoda, blurred colorful distant lights.",
"width": "1024",
"height": "1024",
"samples": "1",
"model_id": "z-image-turbo",
"strength": "0.7",
"guidance_scale": "3",
"enhance_prompt": true,
"key": "YOUR_API_KEY"
}

SDKs

Official SDKs

Production-ready SDKs and client libraries for all major programming languages

API Parameters

Technical specifications for API request parameters.

Field NameParameterTechnical Description
Reference Imageinit_imagePlease upload the reference image you want to edit.
PromptpromptEnter the text for the image you want to generate
WidthwidthMax width supported is 1488
HeightheightMax height supported is 1488
Number of ImagessamplesNumber of images that can be generated in a single request Max samples - 2
Modelmodel_idModel selected for generating the image. Each model generate different image.
strengthstrengthPrompt strength when using the initial image. 1.0 corresponds to full destruction of information in the initial image. Required range: 0.7 <= x <= 1 default- 0.7
guidance_scaleguidance_scaleGuidance scale Required range: 1 <= x <= 10
enhance_promptenhance_promptIf true, the prompt will be enhanced for better results. Default is (true).