AIsphere tarafından
PixVerse v6 Max text-to-video and image-to-video from a first frame, with optional native audio. 1–15 second clips at 360p, 540p, 720p or 1080p. Billed on the tokens the vendor meters; a clip with audio costs more than a silent one.
itibaren $0.04
üretilen saniye başına
360p · 540p · 720p · 1080p
faturalandırma kademeleri — gönderdiğiniz boyut değil
Async API — Video üretimi asenkron bir akış kullanır: bir iş gönderin, tamamlanana kadar yoklayın ve ardından dosyayı ayrı bir uç noktadan indirin. Üretim dakikalar sürer, bu yüzden her 3-5 saniyede bir yoklayın. Aşağıdaki örnekler üç adımı da gösterir.
# 1. Submit the job. model, prompt and seconds are required. Each account may hold only a small number of
# unfinished jobs at once — 5 by default, set per deployment — and one over that returns 429
# video_jobs_in_flight_limit.
#
# The model's own options go under "metadata"; every field and the values it accepts are listed below.
# No image is text-to-video; one image_url item with role first_frame in metadata.content (a URL or a base64
# data: URI) is image-to-video, which follows the image's aspect ratio (a ratio sent with it is ignored). No
# last frame or reference images. Every request needs a prompt. metadata.audio true adds native audio (off by
# default).
curl "https://router-api.0g.ai/v1/videos" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "pixverse-video-v6.0-max",
"prompt": "A cat surfing a wave at sunset",
"seconds": 5,
"metadata": {
"resolution": "720p",
"ratio": "16:9",
"audio": false
}
}'
# Response: {"id": "v0_426354818031858", "status": "queued", "provider_address": "0x..."}
# 2. Poll until status is "completed". Generation takes minutes — 3-5s is a sane interval. The poll answers
# 200 and reports the job's own status, so a failure arrives as 200 + {"status":"failed"}, NOT as an error
# code. The SUBMIT response echoes what you sent; the POLL response reports what was actually rendered — so
# reconcile against the poll. Which fields carry that answer depends on the upstream:
# usage.output_video_duration when the provider reported a duration, size/seconds on some providers and not
# others. Read what is present rather than assuming a particular field.
curl "https://router-api.0g.ai/v1/videos/<VIDEO_ID>" \
-H "Authorization: Bearer <YOUR_API_KEY>"
# 3. Download the finished file. This is where 409 / 424 / 429 live: 409 = not ready yet, 429 = too many
# concurrent downloads (both retryable), 424 = the job failed and has no output (terminal).
curl "https://router-api.0g.ai/v1/videos/<VIDEO_ID>/content" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-o video.mp4
| Girdi | rol | Tür | Maks | Senaryo |
|---|---|---|---|---|
| İlk kare | first_frame | Görsel | 1 | İlk / son kare |
No image is text-to-video; one image_url item with role first_frame in metadata.content (a URL or a base64 data: URI) is image-to-video, which follows the image's aspect ratio (a ratio sent with it is ignored). No last frame or reference images. Every request needs a prompt. metadata.audio true adds native audio (off by default).
| Alan | Değerler | Varsayılan |
|---|---|---|
| metadata.resolution | 360p · 540p · 720p · 1080p | 720p |
| metadata.ratio | 16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 2:3 · 3:2 · 21:9 | 16:9 |
| seconds | 1–15s | 5 |
| metadata.audio | true · false | false |
| metadata.seed | Herhangi bir tam sayı | — |
Billed on the tokens the vendor meters for the clip, $1.6 per 1M. The per-second prices shown are with audio; a silent clip meters less (360p $0.026667, 540p $0.04, 720p $0.048889, 1080p $0.097778 per second).
Sağlayıcı Yönlendirme
X-0G-Provider-* istek başlıklarını kullanarak isteğinizi hangi sağlayıcının işleyeceğini belirleyin.
X-0G-Provider-Address bir sağlayıcıyı sabitler; X-0G-Provider-Identity, sağlayıcının üst akışlarından hangisine yönlendirme yapılacağını sabitler. Her iki değer de GET /v1/providers uç noktasındaki address ve provider_identity alanlarından gelir. Birlikte, bir sağlayıcının belirli bir üst akışını adreslerler. İkisi de gönderilmezse yönlendirme katmanı, tıpkı önceki gibi fiyata ve sağlık durumuna göre seçer.
curl "https://router-api.0g.ai/v1/videos" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-H "X-0G-Provider-Address: <PROVIDER_ADDRESS>" \
-H "X-0G-Provider-Identity: <UPSTREAM>" \
-H "X-0G-Provider-Sort: latency" \
-H "X-0G-Provider-Allow-Fallbacks: true" \
-d '{
"model": "pixverse-video-v6.0-max",
"prompt": "A cat surfing a wave at sunset",
"seconds": 6
}'