Lewati ke konten
Buka CastalyKonsol

Video

happyhorse-1.1-t2vAPI

Gunakan ID model happyhorse-1.1-t2v yang tepat melalui perutean video asinkron Modelflare.

Gunakan ID model yang tepat happyhorse-1.1-t2v. Bidang model harus sama persis dengan halaman ini.

Contoh keluaranhappyhorse-1.1-t2vPOST /v1/videos5.2s

Parameter: duration=5resolution=1080pratio=16:9

Prompt: One continuous take, no cuts. An arcade after closing, cabinets still on, carpet glowing under blacklight. A figure in a holographic windbreaker slaps the side of one cabinet and its picture comes off the screen: the pixels lift as solid coloured tiles, swarm out across the aisle and pull the pictures off every other machine with them, until the whole room is a moving cloud of cyan and hot pink squares. The camera tracks sideways down the aisle and turns into the swarm as it builds. One hard cyan key from the nearest screen, deep violet ambient. Real weight and inertia, each tile catching light separately, no text.

Permintaan yang menghasilkan sampel ini
{
"model": "happyhorse-1.1-t2v",
"prompt": "One continuous take, no cuts. An arcade after closing, cabinets still on, carpet glowing under blacklight. A figure in a holographic windbreaker slaps the side of one cabinet and its picture comes off the screen: the pixels lift as solid coloured tiles, swarm out across the aisle and pull the pictures off every other machine with them, until the whole room is a moving cloud of cyan and hot pink squares. The camera tracks sideways down the aisle and turns into the swarm as it builds. One hard cyan key from the nearest screen, deep violet ambient. Real weight and inertia, each tile catching light separately, no text.",
"seconds": "5",
"duration": 5,
"resolution": "1080p",
"ratio": "16:9",
"aspect_ratio": "16:9"
}

Gunakan kunci API Modelflare dengan https://modelflare.dev/v1. Titik masuk gateway adalah POST /v1/videos.

HTTP
Authorization: Bearer YOUR_MODELFLARE_API_KEY
Terminal windowbash
curl https://modelflare.dev/v1/videos \
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "happyhorse-1.1-t2v",
"input": {"prompt": "A white cat runs through a neon-lit street in the rain, cinematic tracking shot"},
"parameters": {"resolution": "1080P", "ratio": "16:9", "duration": 5, "watermark": false}
}'

Simpan ID tugas. Jajak pendapat GET /v1/videos/{task_id} dan unduh dengan GET /v1/videos/{task_id}/content. URL hasil mungkin kedaluwarsa, jadi segera transfer file.

Terminal windowbash
curl https://modelflare.dev/v1/videos/TASK_ID \
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"

HappyHorse menggunakan input.prompt; pilih bentuk input.media yang cocok dengan ID model t2v, i2v, atau r2v.

HappyHorse T2V menggunakan input.prompt untuk menghasilkan video.

Bidang Wajib diisi Catatan
model Ya happyhorse-1.1-t2v
input.prompt Ya Deskripsi teks atau instruksi referensi, hingga 5.000 karakter non-China atau 2.500 karakter China
input.media[] Tidak —
parameters.resolution Tidak 720P / 1080P, bawaan 1080P
parameters.ratio Tidak 16:9 / 9:16 / 1:1 / 4:3 / 3:4 / 4:5 / 5:4 / 9:21 / 21:9, bawaan 16:9
parameters.duration Tidak 3–15 detik, default 5
parameters.watermark Tidak Apakah akan menambahkan tanda air HappyHorse
parameters.seed Tidak Benih opsional dari 0 hingga 2.147.483.647

T2V hanya membutuhkan input.prompt; perintahnya dibatasi hingga 5.000 karakter non-China atau 2.500 karakter China, outputnya 720P atau 1080P dengan sembilan nilai rasio, dan durasinya 3–15 detik.

Parameter model yang tidak valid menampilkan 4xx dengan ID permintaan. Tugas asinkron juga bisa gagal masuk setelah pembuatan berhasil; gunakan error_code dan error_message dari respon polling sebagai alasan tugas akhir. Jangan coba lagi permintaan yang sama dengan bentuk JSON yang berbeda.

Halaman ini mencakup pembuatan model Modelflare dan panggilan pengeditan. Pengayaan penelusuran atau peta, pengelolaan suara, dan pengelolaan pustaka elemen merupakan API sumber daya di luar permukaan panggilan model publik ini dan bukan merupakan bidang permintaan yang wajib diisi.

Model ini menggunakan penagihan video per detik. Lihat halaman harga model untuk harga pelanggan saat ini, harga daftar referensi, dan spesifikasi lengkap.

Kontrak media · v1

ID Kontrak: media.happyhorse-1-1-t2v.v1Adaptor: video.happyhorse.v1@v1Sidik Jari: 4f3b6a3c628a981b1d15070759d8f96df185c43c684a22bba802349f85e3e6f9

Sumber resmi: Alibaba Cloud Model Studio

Parameter kontrak

Bidang maksudKontrolPilihan
ratioselect16:9 / 9:16 / 1:1 / 4:3 / 3:4 / 4:5 / 5:4 / 21:9 / 9:21
resolutionselect720p / 1080p
durationselect3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15

Kemampuan yang didukung

  • allowed_values · ratio · 16:9, 9:16, 1:1, 4:3, 3:4, 4:5, 5:4, 21:9, 9:21
  • allowed_values · resolution · 720p, 1080p
  • allowed_values · duration · 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

Contoh permintaan terstruktur

text

Maksud

{
  "duration": 3,
  "prompt": "A red paper kite over a quiet harbour at dusk.",
  "ratio": "16:9",
  "resolution": "720p"
}

Permintaan penyedia

{
  "duration": 3,
  "model": "happyhorse-1.1-t2v",
  "prompt": "A red paper kite over a quiet harbour at dusk.",
  "ratio": "16:9",
  "resolution": "720p",
  "seconds": "3"
}