Leum chun t-susbaint

Ideogram · Custom Models · Generate

Amalaich

ID a’ mhodail ideogram/custom-models/generate
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/ideogram/custom-models/generate?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_id": "your-model-id",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

An t-iarrtas seo: $0.06 60 creideasan API · ≈ ₽6.33 Ruith e air an duilleig seo

Faigh iuchair API
Ideogram Teacsa gu Ìomhaigh #stylized#transform

Gineadh e ìomhaighean bho mhodail Ideogram gnàthaichte trèanaichte a tha air aithneachadh le model_id

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.

•riatanach

Tuairisgeul teacsa air an ìomhaigh às-chuir a thathar ag iarraidh.

rendering_speed bun-roghainn BALANCED

Suidheachadh astair airson renderadh.

•riatanach

ID modail ghnàthaichte bho /train, ris an gabhar a-mhàin às dèidh don mhodail inbhe trèanaidh COMPLETED a ruigsinn.

bun-roghainn 1:1

Co-mheas taobh na h-ìomhaigh a thig às.

num_images bun-roghainn 1

Àireamh nan ìomhaighean ri chruthachadh.

Adhartach negative_prompt · seed · expand_prompt · enable_safety_checker
bun-roghainn

Sònraich susbaint ìomhaigh ri fhàgail às, leis na tuairisgeulan negative-prompt seo fo smachd nan tuairisgeulan sa phrìomh prompt.

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

POST /run/ideogram/custom-models/generate?wait=20 tuairmse → $0.06
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/ideogram/custom-models/generate?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_id": "your-model-id",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/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 · Custom Models · Generate

Teacsa-gu-ìomhaigh a’ cleachdadh modail gnàthaichte a chrìochnaich trèanadh, air ainmeachadh le `model_id`, agus `prompt`. Tha 15 roghainnean aig `aspect_ratio`, ’s e TURBO, BALANCED no QUALITY a th’ ann an `rendering_speed`, agus tha `num_images` eadar 1-8. Tha e cuideachd a’ toirt taic do `negative_prompt`, `expand_prompt` agus `seed`.

Paramadairean

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

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
model_idriatanach
Seòrsastring
ID modail ghnàthaichte bho /train, ris an gabhar a-mhàin às dèidh don mhodail inbhe trèanaidh COMPLETED a ruigsinn.
promptriatanach
Seòrsastring
Tuairisgeul teacsa air an ìomhaigh às-chuir a thathar ag iarraidh.
aspect_ratioroghainneil
Seòrsaenum
Bun-roghainn1:1
1:33:11:22:19:1616:910:1616:102:33:23:44:34:55:41:1
Co-mheas taobh na h-ìomhaigh a thig às.
rendering_speedroghainneil
Seòrsaenum
Bun-roghainnBALANCED
TURBOBALANCEDQUALITY
Suidheachadh astair airson renderadh.
num_imagesroghainneil num_outputs
Seòrsainteger
Bun-roghainn1
1 – 8
Àireamh nan ìomhaighean ri chruthachadh.
negative_promptroghainneil
Seòrsastring
Bun-roghainn
Sònraich susbaint ìomhaigh ri fhàgail às, leis na tuairisgeulan negative-prompt seo fo smachd nan tuairisgeulan sa phrìomh prompt.
expand_promptroghainneil
Seòrsaboolean
Bun-roghainntrue
Smachd air an leudaich MagicPrompt am prompt.
seedroghainneil
Seòrsainteger | null
Sìol a chleachd gineadair nan àireamhan air thuaiream.
enable_safety_checkerroghainneil
Seòrsaboolean
Bun-roghainntrue
Faodar sgrìonadh a shocrachadh le false, ma tha cead aig an neach-gairm.
riatanach Ainm canonical, gabhar ris cuideachd

Toradh

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ideogram/custom-models/generate",
  "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": 60,
    "usd": "0.06",
    "charged": 60,
    "refunded": 0
  },
  "input": {
    "model_id": "your-model-id",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "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
      }
    ],
    "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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
images
array of object {url, content_type, file_name, file_size}Ìomhaighean a chaidh a chruthachadh leis a’ mhodail.
seed
integerLuach seed a thathar a’ cleachdadh airson gineadh àireamhan air thuaiream.

Barrachd mhodalan: Teacsa gu Ìomhaigh

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