Leum chun t-susbaint

Ideogram · v3 · Layerize Text

Amalaich

ID a’ mhodail ideogram/v3/layerize-text
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ideogram/v3/layerize-text?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

An t-iarrtas seo: $0.09 90 creideasan API Ruith e air an duilleig seo

Faigh iuchair API
Ideogram · Ìomhaigh

Thèid a’ chiad toradh agad an-seo

Tog iarrtas gu h-ìosal agus ruith e leis an iuchair API agad. Tha na h-às-churan air an lethbhreacadh dhan stòradh againn, air an cumail gu bràth no 7 latha an-asgaidh.

Tog iarrtas

Tha na smachdan air an cruthachadh bho sgeama a’ mhodail. Bidh an còd agus a’ phrìs ag ùrachadh fhad ’s a dh’atharraicheas tu iad.

Prompt roghainneil a stiùireas tionndadh gu sreathan.

•riatanach image_url
Leig às faidhle, no

URL ìomhaigh ghrafaig rèidh airson tionndadh gu sreathan. Is iad JPEG, PNG agus WebP na fòrmatan ris an gabhar; ’s e 10 MB am meud as motha.

Adhartach font_file_h1_url · font_name_h1 · font_file_h2_url · font_name_h2 · font_file_body_url · font_name_body · font_file_small_url · font_name_small · seed

URL faidhle crutha airson teacsa h1; chan urrainnear a chleachdadh còmhla ri font_name_h1.

Ainm a’ chruth airson teacsa h1; chan urrainnear a chleachdadh còmhla ri font_file_h1_url.

URL faidhle crutha airson teacsa h2; chan urrainnear a chleachdadh còmhla ri font_name_h2.

Ainm a’ chruth airson teacsa h2; chan urrainnear a chleachdadh còmhla ri font_file_h2_url.

URL faidhle crutha airson teacsa bodhaig; chan urrainnear a chleachdadh còmhla ri font_name_body.

Ainm a’ chruth airson teacsa bodhaig; chan urrainnear a chleachdadh còmhla ri font_file_body_url.

URL faidhle crutha airson teacsa beag; chan urrainnear a chleachdadh còmhla ri font_name_small.

Ainm a’ chruth airson teacsa beag; chan urrainnear a chleachdadh còmhla ri font_file_small_url.

Sìol a chleachd gineadair nan àireamhan air thuaiream.

POST /run/ideogram/v3/layerize-text?wait=20 tuairmse → $0.09
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ideogram/v3/layerize-text?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Ruith an t-iarrtas seo

Fuirichidh an iuchair agad sa bhrobhsair seo: thèid a cur chun Doitong API a-mhàin agus a sàbhaladh (localStorage) a-mhàin ma chuireas tu comharra ri Cuimhnich. Faigh iuchair API

Mu Ideogram · v3 · Layerize Text

Gabhaidh e grafaig rèidh (`image_url`, JPEG, PNG no WebP, suas ri 10MB) agus tillidh e an cùl-raon le teacsa air a thoirt air falbh, sreathan ìomhaighe às-tharraingte, soithichean teacsa structaraichte agus HTML ath-chòmhdachaidh airson co-dhealbhadh. Faodar cruthan-clò airson h1, h2, body agus teacsa beag a shuidheachadh a rèir ainm no URL faidhle. Gabhar ri `prompt` agus `seed` roghainneil.

Paramadairean

Cuir an t-ainm canonical no an t-ainm dùthchasach, chan e an dà chuid. Ainmean canonical

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
image_urlriatanach image
Seòrsaurl · image
URL ìomhaigh ghrafaig rèidh airson tionndadh gu sreathan. Is iad JPEG, PNG agus WebP na fòrmatan ris an gabhar; ’s e 10 MB am meud as motha.
promptroghainneil
Seòrsastring | null
Prompt roghainneil a stiùireas tionndadh gu sreathan.
seedroghainneil
Seòrsainteger | null
Sìol a chleachd gineadair nan àireamhan air thuaiream.
font_file_h1_urlroghainneil
Seòrsastring | null
URL faidhle crutha airson teacsa h1; chan urrainnear a chleachdadh còmhla ri font_name_h1.
font_name_h1roghainneil
Seòrsastring | null
Ainm a’ chruth airson teacsa h1; chan urrainnear a chleachdadh còmhla ri font_file_h1_url.
font_file_h2_urlroghainneil
Seòrsastring | null
URL faidhle crutha airson teacsa h2; chan urrainnear a chleachdadh còmhla ri font_name_h2.
font_name_h2roghainneil
Seòrsastring | null
Ainm a’ chruth airson teacsa h2; chan urrainnear a chleachdadh còmhla ri font_file_h2_url.
font_file_body_urlroghainneil
Seòrsastring | null
URL faidhle crutha airson teacsa bodhaig; chan urrainnear a chleachdadh còmhla ri font_name_body.
font_name_bodyroghainneil
Seòrsastring | null
Ainm a’ chruth airson teacsa bodhaig; chan urrainnear a chleachdadh còmhla ri font_file_body_url.
font_file_small_urlroghainneil
Seòrsastring | null
URL faidhle crutha airson teacsa beag; chan urrainnear a chleachdadh còmhla ri font_name_small.
font_name_smallroghainneil
Seòrsastring | null
Ainm a’ chruth airson teacsa beag; chan urrainnear a chleachdadh còmhla ri font_file_small_url.
riatanach Ainm canonical, gabhar ris cuideachd

Gabhaidh paramadairean faidhle ri URL poblach https://, URI data: suas ri 10 MB, no file_url de luchdachadh suas. Faidhlichean

Toradh

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ideogram/v3/layerize-text",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 90,
    "usd": "0.09",
    "charged": 90,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "image": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "prompt": "string",
    "text_containers": [
      {}
    ],
    "text_html": "string",
    "image_layers": [
      {}
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Na faidhlichean agad, do roghainnTha gach outputs[].url na lethbhreac air an stòradh againn: air a chumail gu bràth (air a phàigheadh gach GB-mìos) no 7 latha an-asgaidh, a rèir suidheachadh a’ chunntais agad no ?storage=.
An aon chruth air gach modailtype, url, content_type, width, height agus duration, airson dealbhan, bhidio agus fuaim le chèile. ’S e output nì toraidh a’ mhodail fhèin.
Raointean toraidh
image
object {url, content_type, file_name, file_size}Cùl-fhiosrachadh na h-ìomhaighe às dèidh an teacsa a thoirt air falbh.
prompt
stringTha am prompt layerization ann às dèidh leudachadh MagicPrompt, agus mar sin dh’fhaodadh nach eil e co-ionann ris an in-chur thùsail.
text_containers
array of object | nullSoithichean teacsa air an cur ann an rangachd de shoithichean, nithean agus spans.
text_html
string | nullOverlay HTML air a renderadh airson teacsa a chur còmhla ris an ìomhaigh chùil.
image_layers
array of objectSreathan ìomhaighe air an sgaradh às an dealbhadh.
seed
integerLuach seed a thathar a’ cleachdadh airson gineadh àireamhan air thuaiream.

Barrachd mhodalan: Deasachadh Ìomhaighean

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/ideogram/v3/layerize-text.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt