Profile

tongyi-mai / z-image/turbo/image-to-image

Generate images from text and an initial image using Tongyi-MAI's super-fast Z-Image Turbo model.

0.005 per megapixel of image

Model Input

Input

The prompt to generate an image from.

URL of Image for Image-to-Image generation.

Max: 1

The strength of the image-to-image conditioning.

Min: 1 - Max: 8

The number of inference steps to perform.

Min: 1 - Max: 4

The number of images to generate.

The size of the generated image. Select a preset or specify custom dimensions.

The format of the generated image.

The acceleration level to use.

Additional Settings

Customize your input with more control.

The same seed and the same prompt given to the same version of the model will output the same image every time.

Safety checker can only be disabled on API call

You need to be logged in to run this model and view results.
Log in

Model Output

Output

preview
preview
Generated in 3.283 seconds
Logs (1 lines)

Model Example Requests

Examples

idENrTh1H9ULuHGnpbA5q

Model Details

Model Details

Z-Image Turbo is a high-speed image-to-image model that transforms an existing image based on a text prompt. By providing both an initial image and a description, you can guide the model to create a new, modified version that blends the structure of your original image with the concepts in your prompt. Its speed makes it excellent for rapid iteration and creative exploration.

This model is ideal for a wide range of creative tasks, such as changing the style of a photograph, turning a simple drawing into a detailed illustration, modifying objects or scenery in a picture, or rapidly iterating on visual concepts.

### How to get the best results - **Input Image:** Start with a clear, well-defined image. The model will use its composition and forms as a structural base. - **Prompting:** Write a descriptive prompt for the *final* image you want. The model will try to apply these new concepts to the input image. - **Strength:** The `strength` parameter is key to balancing the influence of the input image and the prompt. A lower value (e.g., 0.4) gives the model more creative freedom to follow the prompt, resulting in bigger changes. A higher value (e.g., 0.8) makes the output adhere more closely to the original image's structure. - **Seed:** To create reproducible results, you can use the `seed` parameter. The same seed, prompt, and input image will generate the same output every time.

### Example Usage To run this model via the ModelRunner javascript client, use the following code:

```javascript import { modelrunner } from "@modelrunner/client";

const result = await modelrunner.subscribe('tongyi-mai/z-image/turbo/image-to-image', { input: { "prompt": "A young Asian woman as a fantasy elf with long, vibrant silver hair, standing in a mystical forest. She has pointed ears and wears ornate elven attire.", "image_url": "https://storage.googleapis.com/falserverless/example_inputs/z-image-turbo-i2i-input.png", "strength": 0.7, "num_images": 1 } });

console.log(result); ```