Neidio i'r cynnwys

Infinity Star

Integreiddio

ID y model infinity-star/text-to-video
# 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/infinity-star/text-to-video?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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Y cais hwn: $0.07 70 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
ByteDance Testun i Fideo #text-to-video

Testun-i-fideo awtoregresif gydag allbwn 16:9, 1:1 neu 9:16, anogiad negyddol, a gwella anogiad dewisol

ByteDance · Fideo

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

Cyfarwyddiadau testun a ddefnyddir i gynhyrchu'r fideo.

aspect_ratio rhagosodedig 16:9

Cymhareb agwedd yr allbwn canlyniadol.

Uwch negative_prompt · num_inference_steps · guidance_scale · tau_video · seed · use_apg · enhance_prompt
rhagosodedig

Anogiad negyddol sy'n nodi cynnwys i'w eithrio wrth gynhyrchu.

rhagosodedig 50

Cyfrif camau casglu i'w cyflawni.

rhagosodedig 7.5

Graddfa'r arweiniad a gymhwysir wrth gynhyrchu.

rhagosodedig 0.4

Gwerth tau graddfa'r fideo.

Hadau a ddefnyddir i atgynhyrchu canlyniadau. Hepgorer ef i gynhyrchu ar hap.

POST /run/infinity-star/text-to-video?wait=20 dyfynbris → $0.07
# 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/infinity-star/text-to-video?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.com/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 â Infinity Star

Yn cynhyrchu fideo o `prompt` testun, gyda `aspect_ratio` wedi’i osod i 16:9, 1:1 neu 9:16. Mae’r rheolyddion yn cynnwys `negative_prompt`, `num_inference_steps` (1 i 100), `guidance_scale` (1 i 40), `tau_video`, a togl `use_apg`. Mae `enhance_prompt` yn ailysgrifennu’r anogiad gydag LLM ac ymlaen yn rhagosodedig. Gellir gosod `seed`.

Paramedrau

EnwMath RhagosodedigCaniateir Disgrifiad
promptgofynnol
Mathstring
Cyfarwyddiadau testun a ddefnyddir i gynhyrchu'r fideo.
negative_promptdewisol
Mathstring
Rhagosodedig
Anogiad negyddol sy'n nodi cynnwys i'w eithrio wrth gynhyrchu.
num_inference_stepsdewisol
Mathinteger
Rhagosodedig50
1 – 100
Cyfrif camau casglu i'w cyflawni.
guidance_scaledewisol
Mathnumber
Rhagosodedig7.5
1 – 40
Graddfa'r arweiniad a gymhwysir wrth gynhyrchu.
tau_videodewisol
Mathnumber
Rhagosodedig0.4
0.1 – 1
Gwerth tau graddfa'r fideo.
use_apgdewisol
Mathboolean
Rhagosodedigtrue
Galluogi neu analluogi APG.
aspect_ratiodewisol
Mathenum
Rhagosodedig16:9
16:91:19:16
Cymhareb agwedd yr allbwn canlyniadol.
seeddewisol
Mathinteger | null
Hadau a ddefnyddir i atgynhyrchu canlyniadau. Hepgorer ef i gynhyrchu ar hap.
enhance_promptdewisol
Mathboolean
Rhagosodedigtrue
Galluogi gwella'r anogiad gan ddefnyddio LLM.
gofynnol

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "infinity-star/text-to-video",
  "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": 70,
    "usd": "0.07",
    "charged": 70,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "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"
  }
}
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
video
object {url, content_type, file_name, file_size}Ffeil fideo ganlyniadol.

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