Grok

image

Grok Imagine Image 2.0 Segment Edit API

Generate or edit images with AI

Pricing · 100 credits = $1

An option within Grok Imagine 2.

Input

Text prompt describing the desired image. Up to 65,000 characters.

The source task ID to use for image editing(This can be a task ID generated by the `grok-imagine-image-2-0/text-to-image` model, or a task ID generated by the `grok-imagine-image-2-0/segment-map` model by passing an `image_url`.).

Indexes of the segments to edit, taken from resultObject.segments[].index of the segment-map task (0-based). Example: [0, 2].

Runs use your account credits. View this model’s prices100 credits = $1.00 USD · Charged for successful work.

Checking your session…

Output

A little curiosity. A new creation.

Give Grok Imagine Image 2.0 Segment Edit an input and see what it can do. Your result will appear here.

Keep exploring

All models →