Vidu Q3 और Q3 Pro मॉडल पर 50% छूट · केवल WaveSpeedAI | 20 मई – 2 जून

GLM Image Edit

z-ai /

GLM-Image Edit is a powerful image-to-image editing model that transforms images based on text prompts. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

image-to-image
Input

Drag & drop करें या upload के लिए click करें

preview
Enhance prompt using LLM for better results.
If set to true, the function will wait for the result to be generated and uploaded before returning the response. This property is only available through the API.
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Idle

Change the woman's shirt to blue.

$0.12per run·~83 / $10

Next:

ExamplesView all

Change the woman's shirt to blue.

Change the woman's shirt to blue.

Turn into a real style

Turn into a real style

Turn into night

Turn into night

Turn into wearing a white dress

Turn into wearing a white dress

Change the shirt to white

Change the shirt to white

Related Models

README

Z.AI GLM-Image Image-Edit

GLM-Image Image-Edit is Z.AI's powerful image transformation model that modifies images based on text prompts. Upload up to 4 reference images and describe the changes you want — the model reimagines your images while preserving key elements and applying your requested modifications.

Why Choose This?

  • Multi-image reference Upload up to 4 reference images to guide the transformation with richer context.

  • Text-guided transformation Describe changes in natural language — lighting, style, time of day, environment, and more.

  • Flexible output sizing Custom width and height from 256 to 1536 pixels for any aspect ratio.

  • Prompt Enhancer Built-in tool to automatically improve your prompts for better results.

  • LLM-powered prompt expansion Optional feature to automatically enhance short prompts with more detail.

Parameters

ParameterRequiredDescription
promptYesText description of the desired transformation
imagesYesReference images to transform (1-4 images)
widthNoOutput width in pixels (256-1536, default: 1024)
heightNoOutput height in pixels (256-1536, default: 1024)
seedNoRandom seed for reproducibility (-1 for random)
output_formatNoOutput format: jpeg (default) or png
enable_prompt_expansionNoEnhance prompt using LLM for better results
enable_sync_modeNoAPI only: wait for result before returning response

Output Format Options

  • jpeg — Smaller file size, good for photos and web use (default)
  • png — Lossless quality, supports transparency, best for graphics

How to Use

  1. Write your prompt — describe the transformation you want (e.g., "change to daytime", "add snow", "make it cyberpunk style").
  2. Upload reference images — add 1-4 images using "+ Add Item" button.
  3. Set size — adjust width and height (256-1536 pixels).
  4. Set seed — use -1 for random results, or specify a number for reproducibility.
  5. Choose output format — jpeg for smaller files, png for lossless quality.
  6. Enable prompt expansion (optional) — check this to let LLM enhance your prompt.
  7. Run — click Run, preview the result, and iterate if needed.

Pricing

ItemCost
Per image$0.12

Simple flat-rate pricing regardless of image size or number of reference images.

Best Use Cases

  • Lighting Changes — Transform day to night, add golden hour, change weather conditions.
  • Style Transfer — Apply artistic styles while preserving composition.
  • Scene Modification — Add or remove elements, change seasons, modify environments.
  • Creative Reimagining — Generate variations based on multiple reference images.
  • Content Adaptation — Adjust images for different moods or contexts.

Pro Tips

  • Be specific in your transformation prompt — describe exactly what should change.
  • Use multiple reference images when you want to blend styles or elements from different sources.
  • Enable prompt expansion for short prompts; disable it for precise control.
  • Start with default 1024x1024 size, then adjust for specific aspect ratios.
  • Use the same seed to compare different prompts on the same reference images.

Notes

  • Maximum 4 reference images per generation.
  • Size range: 256-1536 pixels for both width and height.
  • enable_sync_mode is only available through the API.
  • Please ensure your prompts comply with content guidelines.

Related Models

Accessibility:This website uses AI models provided by third parties.

Glm Image Edit API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/z-ai/glm-image/edit with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Glm Image Edit below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/z-ai/glm-image/edit" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "seed": -1,
    "output_format": "jpeg",
    "enable_prompt_expansion": false,
    "enable_sync_mode": false,
    "enable_base64_output": false
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("z-ai/glm-image/edit", {
        "prompt": "A cinematic shot of a city at sunset, soft golden light",
        "seed": -1,
        "output_format": "jpeg",
        "enable_prompt_expansion": false,
        "enable_sync_mode": false,
        "enable_base64_output": false
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "z-ai/glm-image/edit",
    {
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "seed": -1,
    "output_format": "jpeg",
    "enable_prompt_expansion": false,
    "enable_sync_mode": false,
    "enable_base64_output": false
}
)

print(output["outputs"][0])  # → URL of the generated output

Glm Image Edit API — Frequently asked questions

What is the Glm Image Edit API?

Glm Image Edit is a Z Ai model for image editing, exposed as a REST API on WaveSpeedAI. GLM-Image Edit is a powerful image-to-image editing model that transforms images based on text prompts. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.

How do I call the Glm Image Edit API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/z-ai/z-ai-glm-image-edit.

How much does Glm Image Edit cost per run?

Glm Image Edit starts at $0.12 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.

What inputs does Glm Image Edit accept?

Key inputs: `prompt`, `images`, `seed`, `enable_base64_output`, `enable_prompt_expansion`, `enable_sync_mode`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/z-ai/z-ai-glm-image-edit.

How long does Glm Image Edit take to generate?

Average end-to-end generation time on WaveSpeedAI is around 51 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.

Can I use Glm Image Edit outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (Z Ai). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.