Model API

Ideogram V3 Layerize Text

Ideogram Layerize takes an existing flat graphic, removes text, and returns structured text containers you can edit/recompose in html or json format.

Model id

Use this in every request
ideogram/v3/layerize-text

Run it

Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "ideogram/v3/layerize-text",
  "input": {
    "image_url": "https://example.com/input.png",
    "prompt": "A red ceramic cup on a wooden table, soft morning light"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "ideogram/v3/layerize-text", "quote_id": "QUOTE_ID", "input": {"image_url":"https://example.com/input.png","prompt":"A red ceramic cup on a wooden table, soft morning light"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Input

Input fields for ideogram/v3/layerize-text
NameTypeDescription
image_urlrequiredstring (image URL)
URL of the flat graphic image to layerize. Must be JPEG, PNG, or WebP (max 10MB).
promptstring
Optional prompt to guide the layerization.
seedinteger
Seed for the random number generator.
font_file_h1_urlstring (URL)
URL of the font file to use for h1 text. Cannot be used with font_name_h1.
font_name_h1string
Name of the font to use for h1 text. Cannot be used with font_file_h1_url.
font_file_h2_urlstring (URL)
URL of the font file to use for h2 text. Cannot be used with font_name_h2.
font_name_h2string
Name of the font to use for h2 text. Cannot be used with font_file_h2_url.
font_file_body_urlstring (URL)
URL of the font file to use for body text. Cannot be used with font_name_body.
font_name_bodystring
Name of the font to use for body text. Cannot be used with font_file_body_url.
font_file_small_urlstring (URL)
URL of the font file to use for small text. Cannot be used with font_name_small.
font_name_smallstring
Name of the font to use for small text. Cannot be used with font_file_small_url.
sync_modeboolean
If `True`, the media will be returned as a data URI and the output data won't be available in the request history.

Default: false

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]

Pricing

  • 1 image$0.15/ image

The exact charge for your input comes from a quote. How charges settle