live
MODEL IDideogram:4.6@precise-edit

Ideogram 4.6 Precise Edit

Ideogram
by
Available with Zero Data Retention

Ideogram 4.6 Precise Edit is the precision editing variant of Ideogram 4.6. It applies a natural-language instruction to a source image, optionally limited by a mask and guided by up to four reference images, and returns the result at the source's exact dimensions. It accepts sources up to 8192x8192, and an edit limited to one region keeps a 4K or 8K source at full resolution. It suits retouching, exact color changes, product detail repair, and masked edits.

Ideogram 4.6 Precise Edit

Changing colors

How to recolor a product with Ideogram 4.6 Precise Edit: hex codes in the instruction, colorways from one shoot, muted colors and hex codes picked from a sample.

Introduction

A product that comes in five colors usually needs five photo shoots, or one shoot and a retoucher. Ideogram 4.6 Precise Edit turns that into one shoot and one edit per color: name the part, give the color as a hex code and say in words how light and muted it is, and the result comes back at the source's exact size with the new color in place.

Step through the colorways: the folds and the drape stay where they were in every one. Outside the sweater the photo is untouched: a crop of her face differs from the source in 10 of about 105,000 pixels.

This guide covers the request, the recolor instruction, muted colors, hex codes from a sample and checking the result.

The request

A recolor is an ordinary edit: the photo in inputs.seedImage and the color in the instruction.

Try in Playground
import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'ideogram:4.6@precise-edit',
  positivePrompt: 'Change the color of her ribbed knit sweater to #7A9E7E, a soft muted gray-green, light and desaturated. Keep its ribbed knit texture, its shape and the way it sits on her exactly the same, and keep her cream trousers, her face, her hair and the studio exactly the same.',
  inputs: {
    seedImage: 'https://assets.runware.ai/guides/ideogram-4-6-precise-edit/changing-colors/source-sweater.jpg'
  }
})
import asyncio
import os

from runware import Runware


async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "ideogram:4.6@precise-edit",
            "positivePrompt": "Change the color of her ribbed knit sweater to #7A9E7E, a soft muted gray-green, light and desaturated. Keep its ribbed knit texture, its shape and the way it sits on her exactly the same, and keep her cream trousers, her face, her hair and the studio exactly the same.",
            "inputs": {
                "seedImage": "https://assets.runware.ai/guides/ideogram-4-6-precise-edit/changing-colors/source-sweater.jpg"
            }
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "7c2e5a94-1d38-4b6f-8e07-3a9d6c1f4b52",
      "model": "ideogram:4.6@precise-edit",
      "positivePrompt": "Change the color of her ribbed knit sweater to #7A9E7E, a soft muted gray-green, light and desaturated. Keep its ribbed knit texture, its shape and the way it sits on her exactly the same, and keep her cream trousers, her face, her hair and the studio exactly the same.",
      "inputs": {
        "seedImage": "https://assets.runware.ai/guides/ideogram-4-6-precise-edit/changing-colors/source-sweater.jpg"
      }
    }
  ]'
runware run ideogram:4.6@precise-edit \
  positivePrompt="Change the color of her ribbed knit sweater to #7A9E7E, a soft muted gray-green, light and desaturated. Keep its ribbed knit texture, its shape and the way it sits on her exactly the same, and keep her cream trousers, her face, her hair and the studio exactly the same." \
  inputs.seedImage=https://assets.runware.ai/guides/ideogram-4-6-precise-edit/changing-colors/source-sweater.jpg
{
  "taskType": "imageInference",
  "taskUUID": "7c2e5a94-1d38-4b6f-8e07-3a9d6c1f4b52",
  "model": "ideogram:4.6@precise-edit",
  "positivePrompt": "Change the color of her ribbed knit sweater to #7A9E7E, a soft muted gray-green, light and desaturated. Keep its ribbed knit texture, its shape and the way it sits on her exactly the same, and keep her cream trousers, her face, her hair and the studio exactly the same.",
  "inputs": {
    "seedImage": "https://assets.runware.ai/guides/ideogram-4-6-precise-edit/changing-colors/source-sweater.jpg"
  }
}
Response
[
  {
    "taskType": "imageInference",
    "taskUUID": "7c2e5a94-1d38-4b6f-8e07-3a9d6c1f4b52",
    "imageUUID": "e3a9c6d1-5f72-4b08-a14e-8d2b7f3c9e65",
    "imageURL": "https://im.runware.ai/image/os/a14d18/ws/2/ii/e3a9c6d1-5f72-4b08-a14e-8d2b7f3c9e65.jpg"
  }
]

Writing a recolor instruction

The colorway instructions share one shape. Only the color changes from one request to the next:

Change the color of her ribbed knit sweater, to #7A9E7E, a soft muted gray-green, light and desaturated., Keep its ribbed knit texture, its shape and the way it sits on her exactly the same,, and keep her cream trousers, her face, her hair and the studio exactly the same.
TargetColorKeepsNeighbors

Four parts carry the edit:

  • The target. "Her ribbed knit sweater" names one garment.
  • The color, as a hex and in words. The code pins the value, and the description says how light and how muted it is.
  • What the color must not change. A recolor is a change of hue, so the texture, the shape and the drape are listed as staying.
  • The neighbors in the same color. The trousers are cream like the sweater. Without "keep her cream trousers", a recolor of the cream sweater could take them along.

Start from a light product. A white or cream source takes any hue without carrying a tint of its old color, and its shading is the shading the new color needs.

Describing muted colors

A color name pulls toward the familiar version of that color, and for a muted color the familiar version is brighter than the code. "#7A9E7E sage green" came back as a saturated mid-green, "#2C3E66 navy blue" as a deep, vivid navy. Described in words instead, as "a soft muted gray-green, light and desaturated" and "a dusty navy, a soft grayish blue", the same codes came back close to their values.

For a muted or dark color, say how muted and how light it is: dusty, soft, grayish, desaturated, earthy. A bright color such as a clean red or a sky blue needs only its code and a plain name.

Terracotta is the exception in the set above. #C65D3B came back redder and darker than its code in three runs, with and without the description, so check warm earth tones with a color picker before a colorway ships.

Turning a sample into a hex

The color often arrives as a sample instead of a code: a paint chip or a screenshot from a brand's style guide. Passed as a flat reference image, a chip came back as saturated as an undescribed hex. Pick the color from the flat center of the sample instead, and write it the same way as any other color.

A white electric hatchback at a three-quarter angle on a concrete forecourt in front of a glass showroom

Photorealistic automotive dealership photograph of a modern white electric hatchback parked at a three-quarter front angle on a clean pale concrete forecourt in front of a glass showroom, black wheels and tinted windows, overcast daylight with soft reflections on the paint, shot on a 35mm lens at headlight height.

Source#1B3A57
Try in Playground
import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'ideogram:4.6@precise-edit',
  positivePrompt: 'Repaint the body of the hatchback #1B3A57, a deep muted slate blue, in a glossy metallic finish. Keep the wheels, the windows, the lights, the forecourt and the showroom exactly the same.',
  inputs: {
    seedImage: 'https://assets.runware.ai/guides/ideogram-4-6-precise-edit/changing-colors/source-car.jpg'
  }
})
import asyncio
import os

from runware import Runware


async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "ideogram:4.6@precise-edit",
            "positivePrompt": "Repaint the body of the hatchback #1B3A57, a deep muted slate blue, in a glossy metallic finish. Keep the wheels, the windows, the lights, the forecourt and the showroom exactly the same.",
            "inputs": {
                "seedImage": "https://assets.runware.ai/guides/ideogram-4-6-precise-edit/changing-colors/source-car.jpg"
            }
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "3b8f1d6a-4e25-4c97-a0b3-9f6e2d8c1a47",
      "model": "ideogram:4.6@precise-edit",
      "positivePrompt": "Repaint the body of the hatchback #1B3A57, a deep muted slate blue, in a glossy metallic finish. Keep the wheels, the windows, the lights, the forecourt and the showroom exactly the same.",
      "inputs": {
        "seedImage": "https://assets.runware.ai/guides/ideogram-4-6-precise-edit/changing-colors/source-car.jpg"
      }
    }
  ]'
runware run ideogram:4.6@precise-edit \
  positivePrompt="Repaint the body of the hatchback #1B3A57, a deep muted slate blue, in a glossy metallic finish. Keep the wheels, the windows, the lights, the forecourt and the showroom exactly the same." \
  inputs.seedImage=https://assets.runware.ai/guides/ideogram-4-6-precise-edit/changing-colors/source-car.jpg
{
  "taskType": "imageInference",
  "taskUUID": "3b8f1d6a-4e25-4c97-a0b3-9f6e2d8c1a47",
  "model": "ideogram:4.6@precise-edit",
  "positivePrompt": "Repaint the body of the hatchback #1B3A57, a deep muted slate blue, in a glossy metallic finish. Keep the wheels, the windows, the lights, the forecourt and the showroom exactly the same.",
  "inputs": {
    "seedImage": "https://assets.runware.ai/guides/ideogram-4-6-precise-edit/changing-colors/source-car.jpg"
  }
}
Response
[
  {
    "taskType": "imageInference",
    "taskUUID": "3b8f1d6a-4e25-4c97-a0b3-9f6e2d8c1a47",
    "imageUUID": "d6c2a8f4-7b13-4e59-9a0e-1c5f3b7d2e86",
    "imageURL": "https://im.runware.ai/image/os/a14d18/ws/2/ii/d6c2a8f4-7b13-4e59-9a0e-1c5f3b7d2e86.jpg"
  }
]

The finish comes from the instruction too: "a glossy metallic finish" turns the flat value into paint with reflections, which is how the same slate blue reads on a car body.

List the parts that keep their color. The wheels, the windows and the lights are in the keep clause, because "repaint the hatchback" alone could reach them.

Checking the result

Check two things:

  • The new color. Sample a flat, evenly lit area of the recolored surface, average a patch rather than reading one pixel, and compare it with the hex. A knit in studio light reads darker than its code in the folds, so sample the flat front of the garment, away from the folds.
  • Everything else. Because the output has the source's exact dimensions, the two files can be diffed directly. magick compare source.jpg result.jpg diff.png paints every changed pixel, and the diff should light up the recolored part and little else.

Tips

  1. Give the color as a hex and in words. Say how light and how muted it is, because a color name alone drifts brighter.

  2. List what the recolor keeps. Texture, shape and drape stay, so say so.

  3. Name the neighbors in the old color. A garment or a trim in the same color is the first thing a recolor takes along.

  4. Start from white or cream. A light source gives every new color clean shading.

  5. Turn a sample into a hex. Pick the color from the flat center of the sample and add the finish, matte, satin or metallic, in the instruction.

  6. Diff the result against the source. Same dimensions means the comparison takes one command.