Neidio i'r cynnwys

Omnilottie

Integreiddio

ID y model omnilottie
# 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/omnilottie?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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"

Y cais hwn: $0.05 50 o gredydau API · ≈ ₽5.33 Ei redeg ar y dudalen hon

Cael allwedd API
Open model Arall #lottie

Yn creu ffeil JSON animeiddiad Lottie o ddisgrifiad testun

Open model · Ffeil

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol 88 / 2000

Testun sy'n disgrifio'r animeiddiad Lottie dymunol.

Uwch max_tokens · temperature · top_p · top_k
rhagosodedig 4096

Terfyn uchaf ar docynnau Lottie a gynhyrchir.

rhagosodedig 0.9

Tymheredd a ddefnyddir wrth samplu yn ystod cynhyrchu.

rhagosodedig 0.25

Trothwy tebygolrwydd ar gyfer samplu niwclews.

rhagosodedig 5

Gosodiad ar gyfer samplu top-k.

POST /run/omnilottie?wait=20 dyfynbris → $0.05
# 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/omnilottie?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Omnilottie

Yn cynhyrchu animeiddiad Lottie o `prompt` testun hyd at 2,000 nod, wedi'i ddychwelyd fel ffeil JSON. Rheolir y cynhyrchu gan `max_tokens` (256 i 8192), `temperature`, `top_p` a `top_k`. Nid yw'n cymryd mewnbwn delwedd na fideo.

Paramedrau

EnwMath RhagosodedigCaniateir Disgrifiad
promptgofynnol
Mathstring
≤ 2,000 nod
Testun sy'n disgrifio'r animeiddiad Lottie dymunol.
max_tokensdewisol
Mathinteger
Rhagosodedig4096
256 – 8,192
Terfyn uchaf ar docynnau Lottie a gynhyrchir.
temperaturedewisol
Mathnumber
Rhagosodedig0.9
0 – 2
Tymheredd a ddefnyddir wrth samplu yn ystod cynhyrchu.
top_pdewisol
Mathnumber
Rhagosodedig0.25
0 – 1
Trothwy tebygolrwydd ar gyfer samplu niwclews.
top_kdewisol
Mathinteger
Rhagosodedig5
1 – 100
Gosodiad ar gyfer samplu top-k.
gofynnol

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "omnilottie",
  "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": 50,
    "usd": "0.05",
    "charged": 50,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "lottie_file": {
      "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
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
lottie_file
object {url, content_type, file_name, file_size}Ffeil JSON sy'n cynnwys yr animeiddiad Lottie a gynhyrchir.

Mwy o fodelau: Arall

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/omnilottie.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt