API tạo video từ văn bản

API AI dành cho nhà phát triển

API tạo video từ văn bản

Xây dựng tính năng tạo video AI vào ứng dụng của bạn bằng API chuyển văn bản thành video PoYo. So sánh các mẫu video, thời lượng, độ phân giải, tùy chọn âm thanh và giá cả cho quy trình làm việc sáng tạo tự động.

Các mô hình phù hợp

Các mô hình 39

MiniMax H3 / Hailuo 03
Văn bản sang video

$0.105 /giây

hailuo-03

MiniMax H3 (Hailuo 03) generates native 2K video from text, first/last frames, or image, video, and audio references.

Seedance 2.5
Văn bản sang video

$0.085 /giây tính phí

seedance-2.5

ByteDance Seedance 2.5 video generation with 4-30 second output, first and last frame control, up to 50 image, video, and audio references, optional synchronized audio, and 480p, 720p, or 1080p delivery.

FLUX 3
Văn bản sang video

$0.17 /giây

flux-3/text-to-video

Black Forest Labs' FLUX 3 video family for text, images, first and last frames, source-video extension, positioned keyframes, and native audio generation.

Seedance 2
Văn bản sang video

$0.045 /giây video đầu ra và tham chiếu

seedance-2

ByteDance Seedance 2 video generation with text-to-video, image-to-video, multimodal reference-to-video, video-to-video, and audio-to-video workflows using image, video, and audio references with optional native audio.

Gemini Omni 1.1 Flash
Văn bản sang video

$0.225 /lần tạo

gemini-omni-1.1-flash

Gemini Omni 1.1 Flash API for text-to-video, first and last frame interpolation, reference image generation, and reference-video workflows.

Gemini Omni 1.2 Flash
Văn bản sang video

$0.027 /giây

gemini-omni-1.2-flash

Gemini Omni 1.2 Flash API on PoYo. Generate 3–15 second videos at 360p to 4K from text, first and last frames, or up to 10 reference images and 3 reference videos, and edit existing videos up to 15 seconds. From 5.46 credits ($0.0273) per second.

Seedance 2.0 Mini
Văn bản sang video

$0.03 /giây video đầu ra và tham chiếu

seedance-2-mini

ByteDance Seedance 2.0 Mini video generation for lower-cost text-to-video, image-to-video, and multimodal reference workflows with 480p and 720p output.

FLUX 3 Max
Văn bản sang video

$0.17 /giây

flux-3-max/text-to-video

Create 5–20 second videos with FLUX 3 Max from text, one or two images, or up to ten positioned keyframes. Choose 720p or 1080p and generate native synchronized audio.

Happy Horse 1.1
Văn bản sang video

$0.11 /giây

happy-horse-1.1

Alibaba Happy Horse 1.1 video generation with text-to-video, image-to-video, and reference-to-video workflows.

Kling 3.0
Văn bản sang video

$0.135 /giây

kling-3.0/standard

Kuaishou's advanced Kling 3.0 video model family with Standard, Pro, and native 4K generation, multi-shot storyboarding, synchronized audio, and element-based consistency.

Kling O3
Văn bản sang video

$0.05 /giây

kling-o3/standard

Kling O3 video generation on PoYo with Standard, Pro, and 4K variants for text-to-video, image-to-video, and reference-to-video workflows.

Sora 2 Official
Văn bản sang video

$0.20 /video

sora-2-official

OpenAI Sora 2 on PoYo with synced audio, improved physics, optional reference image input, and fixed 4-second, 8-second, 12-second, 16-second, and 20-second tiers.

Wan 2.7 Video
Văn bản sang video

$0.06 /giây

wan2.7-text-to-video

Wan 2.7 Video models on PoYo for text-to-video, image-to-video, reference-to-video, and edit-video workflows.

PixVerse V6 Max
Văn bản sang video

$0.024 /giây

pixverse-v6-max

PixVerse V6 Max API on PoYo. Generate 1–15 second videos from text or one image at 360p to 1080p, with optional native dialogue, music and sound effects. From 4.8 credits ($0.024) per second.

Wan 3.0
Văn bản sang video

$0.05 /giây tính phí

wan3.0-text-to-video

Generate videos up to 30 seconds with Wan 3.0 using text, first and last frames, or multimodal references including images, video, audio, documents, and links.

Wan 3.0 Video Prime
Văn bản sang video

$0.068 /giây tính phí

wan3.0-prime-text-to-video

Wan 3.0 Video Prime is Alibaba's Wan 3.0 tier optimized for faster turnaround, with multimodal image, video, audio, document, and public webpage references, videos up to 30 seconds, and optional generated audio.

HeyGen Avatar 6
Văn bản sang video

$0.05 /giây

heygen-avatar-6

HeyGen Avatar 6 API on PoYo: turn a photo, an animated character video, or one of 1,248 HeyGen stock avatar looks into a lip-synced talking video in 1080p or 2K, with gestures that follow the speech. From 10 credits ($0.05) per second with Avatar 6 Turbo.

Kling 4.0
Văn bản sang video

$0.085 /giây tính phí

kling-4.0

Kling 4.0 API on PoYo. Generate 3–30 second videos from text, first and last frames, or image/video references and subjects. Edit source videos at 720p or 1080p.

Kling 4.0 Flash
Văn bản sang video

$0.063 /giây tính phí

kling-4.0-flash

Kling 4.0 Flash API on PoYo. Generate fast 3–20 second 720p videos from text, a start frame, or image/video references and subjects, and edit source videos with references.

LTX 2.5
Văn bản sang video

$0.09 /giây

ltx-2.5-fast

LTX 2.5 API on PoYo. Generate 6–20 second videos with native audio from text, a start and end frame, or an audio track. LTX 2.5 Fast renders 720p to 4K; LTX 2.5 Pro renders 720p or 1080p. From 18 credits ($0.09) per second.

MiniMax H3 Max
Văn bản sang video

$0.05 /giây

h3-max

MiniMax H3 Max generates 5–15 second videos from text, first/last frames, or image, video and audio references at 480p, 768p and 1080p.

MiniMax H3 Max Turbo
Văn bản sang video

$0.025 /giây

h3-max-turbo

MiniMax H3 Max Turbo generates 5–15 second videos from text or first/last frames at 480p, 768p and 1080p.

Seedance 2.5 Flash
Văn bản sang video

$0.058 /giây tính phí

seedance-2.5-flash

ByteDance Seedance 2.5 Flash, the faster, lower-cost tier of Seedance 2.5: up to 30-second 480p or 720p videos with synchronized audio from text, first and last frames, or image, video, and audio references.

Hailuo 02
Văn bản sang video

$0.035 /giây

hailuo-02

MiniMax's #2 globally-ranked video model with NCR architecture, ultra-realistic physics, and 1080p cinematic output.

Runway Gen-4.5
Văn bản sang video

$0.375 /video

runway-gen-4.5

Runway Gen-4.5 is a high-fidelity video model focused on prompt adherence, cinematic motion, visual fidelity, and optional reference image guidance.

Veo 3.1
Văn bản sang video

$0.10 /video

veo3.1-lite

Google DeepMind's VEO 3.1 video family with text-to-video, image-to-video, 720p, 1080p, and 4K output options.

Veo 3.1 Official
Văn bản sang video

$0.018 /giây

veo3.1-fast-official

Official VEO 3.1 video generation with text, image, first/last-frame and reference workflows across fast, lite and quality tiers.

Wan 2.2 Fast
Văn bản sang video

$0.03 /lần tạo

wan2.2-image-to-video-fast

Wan 2.2 Fast provides fast text-to-video and image-to-video generation with low-cost 480p and 720p tiers for quick iteration.

Hailuo 2.3
Văn bản sang video

$0.175 /video

hailuo-2.3

MiniMax's Hailuo 2.3 video model for realistic human motion, expressive characters, and text-to-video or first-frame guided generation at 768p and 1080p.

Omni Flash
Văn bản sang video

$0.60 /lần tạo

omni-flash

Omni Flash API access for text-to-video, image-to-video, three-image reference fusion, and video-input generation workflows.

Seedance 1.0 Pro
Văn bản sang video

$0.105 /video

seedance-1.0-pro

ByteDance's #1 ranked video model with multi-shot storytelling, cinema-grade motion, and bilingual text-to-video generation.

Seedance 1.5 Pro
Văn bản sang video

$0.045 /video

seedance-1.5-pro

ByteDance's latest video model with synchronized audio generation, flexible aspect ratios, and enhanced motion control.

Wan 2.5
Văn bản sang video

$0.15 /video

wan2.5-image-to-video

Wan 2.5 combines text-to-video and image-to-video generation with 5-second and 10-second output, synchronized audio support, and multiple size and resolution tiers.

Kling 1.6
Văn bản sang video

$0.045 /giây

kling-1.6/standard

Kling 1.6 Standard and Pro video generation on PoYo with text, first/last frame, and multi-image element reference workflows.

Kling 2.6
Văn bản sang video

$0.325 /video

kling-2.6

Kuaishou's revolutionary video model that simultaneously generates visuals with synchronized dialogue, sound effects, and ambient audio in one pass.

Wan 2.6
Văn bản sang video

$0.40 /video

wan2.6-text-to-video

Alibaba's Wan 2.6 video generation family for text-to-video, image-to-video, and video-to-video with multi-shot 1080p output.

Kling 2.5 Turbo Pro
Văn bản sang video

$0.21 /video

kling-2.5-turbo-pro

Kling 2.5 Turbo Pro is a flexible short-form video model with text-to-video, optional frame guidance, smooth motion, cinematic depth, and fixed 5-second and 10-second tiers.

Kling 3.0 Turbo
Văn bản sang video

$0.085 /giây

kling-3.0-turbo/standard

Kling 3.0 Turbo is the speed-optimized Kling 3.0 variant for high-volume text-to-video and image-to-video generation with multi-shot storyboarding. Standard (720p) and Pro (1080p) models available.

Happy Horse
Văn bản sang video

$0.08 /giây

happy-horse

Alibaba Happy Horse 1.0 video generation and editing with text-to-video, image-to-video, reference-to-video, and video-edit workflows.

Văn bản sang video Model API - Giá cả và mô hình phù hợp

So sánh nhà cung cấp, đầu vào hỗ trợ, định dạng đầu ra và giá trước khi chọn mô hình.

Đúng phù hợp với nhiệm vụ

Các mô hình chỉ xuất hiện ở đây khi các metadata danh mục của họ bao gồm Text to Video.

So sánh nhà cung cấp

Xem xét các gia đình mô hình trên các nhà cung cấp mà không rời khỏi thư mục nhiệm vụ.

Các đường dẫn sẵn sàng cho API

Mỗi thẻ mô hình liên kết đến giá PoYo, ví dụ, điều khiển sân chơi và chi tiết API.

Mô hìnhNhà cung cấpCác loại nhiệm vụGiá
MiniMax H3 / Hailuo 03

hailuo-03

MiniMaxText to Video, Image to Video, Reference to Video$0.105/giây
Seedance 2.5

seedance-2.5

SeedanceText to Video, Image to Video, Video to Video$0.085/giây tính phí
FLUX 3

flux-3/text-to-video

Black Forest LabsText to Video, Image to Video$0.17/giây
Seedance 2

seedance-2

SeedanceText to Video, Image to Video, Video to Video$0.045/giây video đầu ra và tham chiếu
Gemini Omni 1.1 Flash

gemini-omni-1.1-flash

GoogleText to Video, Image to Video, Video to Video$0.225/lần tạo
Gemini Omni 1.2 Flash

gemini-omni-1.2-flash

GoogleText to Video, Image to Video, Reference to Video$0.027/giây
Seedance 2.0 Mini

seedance-2-mini

SeedanceText to Video, Image to Video, Video to Video$0.03/giây video đầu ra và tham chiếu
FLUX 3 Max

flux-3-max/text-to-video

Black Forest LabsText to Video, Image to Video$0.17/giây
Happy Horse 1.1

happy-horse-1.1

AlibabaText to Video, Image to Video, Reference to Video$0.11/giây
Kling 3.0

kling-3.0/standard

KlingText to Video, Image to Video$0.135/giây
Kling O3

kling-o3/standard

KlingText to Video, Image to Video, Reference to Video$0.05/giây
Sora 2 Official

sora-2-official

OpenAIText to Video, Image to Video$0.20/video
Wan 2.7 Video

wan2.7-text-to-video

AlibabaText to Video, Image to Video, Video to Video$0.06/giây
PixVerse V6 Max

pixverse-v6-max

PixVerseText to Video, Image to Video$0.024/giây
Wan 3.0

wan3.0-text-to-video

AlibabaText to Video, Image to Video, Reference to Video$0.05/giây tính phí
Wan 3.0 Video Prime

wan3.0-prime-text-to-video

AlibabaText to Video, Image to Video, Reference to Video$0.068/giây tính phí
HeyGen Avatar 6

heygen-avatar-6

HeyGenImage to Video, Video to Video, Audio to Video$0.05/giây
Kling 4.0

kling-4.0

KlingText to Video, Image to Video, Reference to Video$0.085/giây tính phí
Kling 4.0 Flash

kling-4.0-flash

KlingText to Video, Image to Video, Reference to Video$0.063/giây tính phí
LTX 2.5

ltx-2.5-fast

LightricksText to Video, Image to Video, Audio to Video$0.09/giây
MiniMax H3 Max

h3-max

MiniMaxText to Video, Image to Video, Reference to Video$0.05/giây
MiniMax H3 Max Turbo

h3-max-turbo

MiniMaxText to Video, Image to Video$0.025/giây
Seedance 2.5 Flash

seedance-2.5-flash

SeedanceText to Video, Image to Video, Video to Video$0.058/giây tính phí
Hailuo 02

hailuo-02

MiniMaxText to Video, Image to Video$0.035/giây
Runway Gen-4.5

runway-gen-4.5

RunwayText to Video$0.375/video
Veo 3.1

veo3.1-lite

GoogleText to Video, Image to Video$0.10/video
Veo 3.1 Official

veo3.1-fast-official

GoogleText to Video, Image to Video$0.018/giây
Wan 2.2 Fast

wan2.2-image-to-video-fast

AlibabaText to Video, Image to Video$0.03/lần tạo
Hailuo 2.3

hailuo-2.3

MiniMaxText to Video, Image to Video$0.175/video
Omni Flash

omni-flash

GoogleText to Video, Image to Video, Video to Video$0.60/lần tạo
Seedance 1.0 Pro

seedance-1.0-pro

SeedanceText to Video, Image to Video$0.105/video
Seedance 1.5 Pro

seedance-1.5-pro

SeedanceText to Video, Image to Video$0.045/video
Wan 2.5

wan2.5-image-to-video

AlibabaText to Video, Image to Video$0.15/video
Kling 1.6

kling-1.6/standard

KlingText to Video, Image to Video$0.045/giây
Kling 2.6

kling-2.6

KlingText to Video, Image to Video$0.325/video
Wan 2.6

wan2.6-text-to-video

AlibabaText to Video, Image to Video, Video to Video$0.40/video
Kling 2.5 Turbo Pro

kling-2.5-turbo-pro

KlingText to Video, Image to Video$0.21/video
Kling 3.0 Turbo

kling-3.0-turbo/standard

KlingText to Video, Image to Video$0.085/giây
Happy Horse

happy-horse

AlibabaText to Video, Image to Video, Video to Video$0.08/giây

Những câu hỏi thường được hỏi

API tạo video từ văn bản là gì?

+

API chuyển văn bản thành video biến mô tả bằng văn bản thành clip được tạo. Ứng dụng của bạn chỉ định cảnh và cài đặt được hỗ trợ, sau đó truy xuất video sau khi xử lý. Nó phù hợp với việc tạo cảnh quay, tạo mẫu sáng tạo và các sản phẩm cung cấp khả năng tạo video AI cho người dùng của họ.

Tôi nên viết lời nhắc cho API tạo video như thế nào?

+

Mô tả một cảnh rõ ràng: chủ đề, hành động, bối cảnh, chuyển động của camera và phong cách hình ảnh. Sử dụng các từ chuyển động có thể xảy ra trong khoảng thời gian đã chọn. Tránh gói gọn toàn bộ câu chuyện vào một đoạn clip ngắn; tách các bức ảnh riêng biệt thành các yêu cầu mà ứng dụng của bạn có thể tập hợp sau này.

Mô hình chuyển văn bản thành video nào phù hợp nhất cho ứng dụng của tôi?

+

So sánh người mẫu trên các bức ảnh đại diện thay vì dựa vào một video giới thiệu. Đánh giá chuyển động, độ ổn định hình ảnh, độ chính xác nhanh chóng, âm thanh và thời gian xử lý cùng với giá cả. Giữ nguyên cài đặt đầu vào và ghi lại số lần thử tạo ra một clip có thể sử dụng được cho ứng dụng cụ thể của bạn.

API chuyển văn bản thành video có thể tạo ra âm thanh và hội thoại không?

+

Một số kiểu video tạo ra âm thanh gốc, trong khi một số kiểu khác trả về các clip im lặng hoặc cung cấp các điều khiển âm thanh tùy chọn. Kiểm tra điểm cuối cụ thể đối với hành vi lời nói, âm nhạc và hiệu ứng âm thanh. Nếu cần tường thuật chính xác, hãy cân nhắc việc tạo một bản lồng tiếng riêng thông qua Chuyển văn bản thành giọng nói và kết hợp nó trong quy trình làm việc đa phương tiện của bạn.

Một video được tạo có thể dài bao lâu?

+

Tùy chọn thời lượng phụ thuộc vào kiểu máy và điểm cuối. Chọn một khoảng thời gian được ghi lại thay vì một con số tùy ý. Để có nội dung dài hơn, hãy tạo từng ảnh riêng lẻ và tập hợp chúng hoặc sử dụng các tính năng mở rộng trong đó mô hình đã chọn hỗ trợ chúng. API đoạn phim ngắn không tự động tạo một bộ phim đã chỉnh sửa hoàn chỉnh.

Tôi nên chọn độ phân giải và tỷ lệ khung hình nào?

+

Chọn độ phân giải và tỷ lệ khung hình có sẵn phù hợp với vị trí cuối cùng. Kích thước cao hơn có thể làm tăng chi phí hoặc thời gian xử lý mà không khắc phục được chuyển động yếu hoặc nội dung không chính xác. Trước tiên, hãy kiểm tra cấu hình dự thảo thực tế, sau đó xác nhận cài đặt đầu ra cuối cùng cho kiểu máy đã chọn.

Làm cách nào để cải thiện tính nhất quán trên một số clip?

+

Sử dụng lại các mô tả chủ đề và phong cách rõ ràng, lập kế hoạch chụp ảnh trước khi tạo và tránh thay đổi quá nhiều biến số giữa các yêu cầu. Nếu danh tính hoặc hình thức phải tuân theo một thiết kế cố định, hãy chuyển sang hình ảnh được hỗ trợ hoặc đầu vào tham chiếu đa phương thức. Các clip chỉ có văn bản được tạo độc lập có thể khác nhau về ký tự, đối tượng hoặc khung cảnh.

Chuyển văn bản thành video có giống như hiển thị tập lệnh với cảnh quay có sẵn không?

+

Không. Các mô hình video tổng hợp tổng hợp các clip mới từ hướng dẫn. Kết xuất mẫu, lắp ráp phụ đề và chỉnh sửa cảnh quay là các quy trình công việc riêng biệt có thể được kết hợp với các clip đã tạo. Sử dụng tài liệu mô hình và tác vụ PoYo để chọn khả năng tạo phù hợp với quy trình của bạn.

Làm cách nào để quản lý yêu cầu API chuyển văn bản thành video?

+

Gửi mô hình và các đầu vào được hỗ trợ tới /api/generate/submit và giữ lại task_id được trả về. Truy vấn /api/generate/status/{task_id} hoặc sử dụng callback_url để nhận các sự kiện hoàn thành. Giữ trạng thái công việc trong ứng dụng của bạn để việc làm mới trình duyệt hoặc thời gian chờ của ứng dụng khách không làm mất dấu yêu cầu video đang chạy.

Giá API chuyển văn bản sang video được tính như thế nào?

+

Giá video có thể theo thế hệ, mỗi clip hoặc mỗi giây, với các bậc về thời lượng, độ phân giải, chất lượng và âm thanh. So sánh cài đặt thực tế và đơn vị thanh toán cho từng model. Bao gồm chi phí của các bản nháp quảng cáo bị từ chối khi ước tính mức chi tiêu cần thiết cho một sản phẩm hoàn chỉnh.

Tại sao video của tôi vẫn đang xử lý hoặc tại sao không thành công?

+

Quá trình tạo video có thể mất nhiều thời gian hơn yêu cầu HTTP thông thường. Kiểm tra trạng thái tác vụ đã lưu trước khi thử lại và kiểm tra lỗi trả về để tìm các cài đặt không được hỗ trợ, thiếu thông tin đầu vào hoặc vấn đề về tài khoản. Không coi thời gian chờ của máy khách là bằng chứng của sự thất bại hoặc tạo các công việc trùng lặp trong khi tác vụ ban đầu đang chạy.

Tôi có thể tìm ví dụ về mã API video ở đâu?

+

Mở trang mô hình đã chọn để xem tài liệu và ví dụ API hiện tại hoặc đọc /models/{model-id}/llms.txt. Sử dụng các trường đó cho ứng dụng khách Python, JavaScript hoặc HTTP của bạn. Giữ thông tin đăng nhập trên máy chủ và tách biệt các công việc tạo clip khỏi giao diện hiển thị tiến trình của chúng.