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
ideogram/v3/layerize-textRun 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
| Name | Type | Description |
|---|---|---|
image_urlrequired | string (image URL) | URL of the flat graphic image to layerize. Must be JPEG, PNG, or WebP (max 10MB). |
prompt | string | Optional prompt to guide the layerization. |
seed | integer | Seed for the random number generator. |
font_file_h1_url | string (URL) | URL of the font file to use for h1 text. Cannot be used with font_name_h1. |
font_name_h1 | string | Name of the font to use for h1 text. Cannot be used with font_file_h1_url. |
font_file_h2_url | string (URL) | URL of the font file to use for h2 text. Cannot be used with font_name_h2. |
font_name_h2 | string | Name of the font to use for h2 text. Cannot be used with font_file_h2_url. |
font_file_body_url | string (URL) | URL of the font file to use for body text. Cannot be used with font_name_body. |
font_name_body | string | Name of the font to use for body text. Cannot be used with font_file_body_url. |
font_file_small_url | string (URL) | URL of the font file to use for small text. Cannot be used with font_name_small. |
font_name_small | string | Name of the font to use for small text. Cannot be used with font_file_small_url. |
sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
Output
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"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