Saltar al cuntegna

PixVerse V4 Text To Video

Integrar

ID dal model pixverse/v4/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.ru/v1/run/pixverse/v4/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Datotecas sco l'exempel: $0,20 200 credits API · ≈ ₽21,52 tias datotecas vegnan mesiradas avant l'execuziun Lantschar sin questa pagina

Obtegna ina clav API
PixVerse Text a video 5–8 sfin a 1080p

PixVerse V4 text-to-video cun relaziun d'aspect tschernibla, resoluziun fin a 1080p e preselecziuns da stil

PixVerse · Video

Tes emprim resultat vegn qua

Construis ina dumonda sutvart e l'exequescha cun tia clav API. Outputs vegnan copiads en nossa memorisaziun, conservads per adina u 7 dis gratuitamain.

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

•obligatori

Prompt per la generaziun da video cun in limit da grondezza basà sin bytes: schizunt in text visualmain curt po surpassar il limit, sch'emoji, letras accentuadas u caracters betg latins occupan plirs bytes per caracter. La lunghezza codada maximala è 2048 bytes en UTF-8; il dumber da caracters na decida betg, sch'il text entra.

duration 5 s

Durada dal video, cun in maximum da 5 secundas per output 1080p; inditga la lunghezza en secundas.

aspect_ratio standard 16:9

Quotiant d'aspect per il video output.

resolution standard 720p

Resoluziun dal video d'output.

Avanzà negative_prompt · style · seed · enable_safety_checker
standard

Prompt negativ da generaziun cun in limit da lunghezza basà sin bytes: schizunt in text visualmain curt po surpassar il limit, perquai che emoji, letras accentuadas e caracters betg latins occupan plirs bytes. Il maximum è 2048 bytes mesurads en UTF-8, betg in dumber da caracters.

style

Stil applitgà al video generà.

Seed per ina generaziun da video repetibla. Ina reproducziun exacta en mintga execuziun dovra ina versiun dal model, in prompt ed in seed invariads.

POST /run/pixverse/v4/text-to-video?wait=20 calculaziun → $0,20
# 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/pixverse/v4/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Davart PixVerse V4 Text To Video

Crea video dad in `prompt` fin a 2048 bytes UTF-8. Tscherna `aspect_ratio` tranter 16:9, 4:3, 1:1, 3:4 e 9:16, e `resolution` da 360p fin 1080p. `duration` è 5 u 8 secundas, e 1080p resta a 5. Sustegna `style`, `negative_prompt` e `seed`; questa varianta textuala na porscha nagin moviment da camera.

Parameters

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
Prompt per la generaziun da video cun in limit da grondezza basà sin bytes: schizunt in text visualmain curt po surpassar il limit, sch'emoji, letras accentuadas u caracters betg latins occupan plirs bytes per caracter. La lunghezza codada maximala è 2048 bytes en UTF-8; il dumber da caracters na decida betg, sch'il text entra.
aspect_ratioopziunal
Tipenum
Standard16:9
16:94:31:13:49:16
Quotiant d'aspect per il video output.
resolutionopziunal
Tipenum
Standard720p
360p540p720p1080p
Resoluziun dal video d'output.
durationopziunal
Tipenum
Standard5
58
Durada dal video, cun in maximum da 5 secundas per output 1080p; inditga la lunghezza en secundas.
negative_promptopziunal
Tipstring
Standard
Prompt negativ da generaziun cun in limit da lunghezza basà sin bytes: schizunt in text visualmain curt po surpassar il limit, perquai che emoji, letras accentuadas e caracters betg latins occupan plirs bytes. Il maximum è 2048 bytes mesurads en UTF-8, betg in dumber da caracters.
styleopziunal
Tipenum
anime3d_animationclaycomiccyberpunk
Stil applitgà al video generà.
seedopziunal
Tipinteger | null
Seed per ina generaziun da video repetibla. Ina reproducziun exacta en mintga execuziun dovra ina versiun dal model, in prompt ed in seed invariads.
enable_safety_checkeropziunal
Tipboolean
Standardtrue
La controlla po vegnir schluccada cun definir false, premess che l'appelant saja autorisà.
obligatori

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "pixverse/v4/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": 200,
    "usd": "0.20",
    "charged": 200,
    "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
video
object {url, content_type, file_name, file_size}Video producì dal model.

Dapli models: Text a video

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/pixverse/v4/text-to-video.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt