About Ideogram Character
This endpoint needs three images: image_url is the picture to keep, mask_url marks in black where the reference person is drawn and in white what is preserved, and reference_image_urls carries exactly one portrait. prompt describes only what fills the black area. quality, style, num_outputs, seed and enable_prompt_expansion behave as on scene generation.
Call it with the model name ideogram/character/edit on POST /jobs/createTask, from $0.08.
Introduction
This is the masked-edit side of Ideogram Character, the single-photo consistency model Ideogram launched in July 2025. Instead of inventing a scene from text, it starts from a picture you already have and redraws only the area you mark, putting the person from your reference portrait there. Everything outside the mask stays as it was.
Key features
Repaint one region, keep the rest
Black in mask_url is redrawn and white is preserved. In our jazz-club test we blacked out the singer's head: the gold sequined gown, the microphone, the band and the red curtain came back untouched, and the face and hair became the dark-bobbed woman from the reference.
The source picture sets the frame
The edited image keeps the proportions of image_url; our portrait-format stage still came back at 866 by 1154. That makes this endpoint the way to get a non-square result with your character, since new-scene generation always returns a square.
Same tiers and styles as generation
Our Turbo edits finished in roughly 25 to 50 seconds.
Request parameters
| Parameter | Required | Description |
|---|---|---|
enable_prompt_expansion | No | Lets the model add detail to a short prompt. Default: true |
image_url | Yes | The picture to start from. |
mask_url | Yes | Paint over the area that should change. |
num_outputs | No | How many results to make in one go. ≥ 1 · ≤ 4 · Default: 1 |
prompt | Yes | Describe what you want to make. |
quality | No | Choose one of this model’s quality settings. turbo · balanced · quality · Default: balanced |
reference_image_urls | Yes | Pictures of the people, outfits or places the result should keep. |
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
style | No | A preset look or genre. auto · realistic · fiction · Default: auto |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per image |
|---|---|
| quality turbo | $0.08 |
| quality balanced | $0.12 |
| quality quality | $0.16 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
Recasting a finished layout
A poster mock-up, album sleeve or ad comp often arrives with a placeholder face. Masking the head and repainting it with the approved talent keeps every other part of the design intact.
Continuity fixes in a series
When a character drifts in one image of a set, mask the face and repaint it from the same portrait used everywhere else instead of regenerating the whole frame.
Placing a person into location photography
Shoot or source the location first, mask the spot where the person should be, and let the model draw them in with the light of that scene.
Prompt guide & pro tips
Size the mask generously
Paint black over the head plus a little margin of hair and neck so the new hairline blends into the scene. Keep the mask the same proportions as image_url; anything left white is guaranteed to stay. The page lets you draw the mask directly over the uploaded picture.
Describe only the masked content
The prompt is about what appears inside the mask, for example the woman with the dark bob singing with her eyes closed under red stage light. Repeating the whole scene is unnecessary, and asking for changes outside the mask has no effect.
Keep wardrobe changes modest
For scenes that need more freedom, use the new-scene endpoint with the same portrait.
API quick start
Call the Ideogram Character API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model ideogram/character/edit and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "ideogram/character/edit",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"reference_image_urls": [
"https://media.popnow.ai/influencer/examples/ava.webp"
],
"mask_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"quality": "balanced",
"style": "auto",
"num_outputs": 1
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
About the Ideogram Character Edit Image endpoint
The mask must share the base picture's proportions; a mask drawn on a cropped or rotated copy will not line up. Build masks server-side from the user's brush strokes at the base image's aspect ratio, binarise them to pure black and white, and export PNG so compression does not leave grey fringes along the edge.
Output follows the base image's shape but not its resolution. The dock edit returned 1330 by 751, a portrait-format rooftop 892 by 1119 and a cafe terrace 1152 by 848, all close to one megapixel. If your product must hand back the full-size original, one option is to upscale the result and blend only the masked region into the source file.
Mask size is the main quality lever. A tall black rectangle over open foreground blended into the scene's light with no visible seam; a thin strip pressed against the right edge gave a blurred face and a visible box. Validate on the client and warn when the black region touches an edge or is narrower than a figure would need.
Pixels just inside the boundary may be redrawn. In the cafe test the back of a rattan chair under the mask edge changed slightly. If a nearby object must stay exact, keep it white and accept a slightly smaller paint area.
On balanced, masked edits took 29 to 60 seconds in our tests, longer than scene generation, so queue the job, persist the taskId and deliver through polling or the signed callback. The per-image price matches the scene endpoint at the same tier.
Ideogram Character API questions
How much does the Ideogram Character API cost?
Ideogram Character starts at $0.08 per image with Edit Image, its lowest-priced task. Prices by option: turbo $0.08 per image, balanced $0.12 per image, quality $0.16 per image. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What are the limits of the Ideogram Character · Edit Image API?
Outputs per call: 1–4; Reference images: 1; Prompt length (characters): 5,000; Largest upload: 10 MB. Requests outside these limits are rejected before anything is charged.
More about Ideogram Character
- Endpoints
- Ideogram Character · Create Image