Sora 2 API - 讓驚豔的影片生成更簡單
透過我們強大且順暢的 API 存取 OpenAI Sora 2。使用目前最先進的影片生成模型 Sora,打造前沿應用程式。
Sora 2 定價
Pay-as-you-go access through PiAPI.
Sora 2
$0.08/s /秒
- Text-to-video generation
- High-quality output
Sora 2 ProPro
$0.24/s /秒
- Higher-quality output
- Optimized for demanding workloads
Features
Sora 2 API 為開發者與創作者帶來新一代的影片創作能力。
可規模化的電影級品質
在幾秒內生成逼真的影片,擁有細膩真實的細節、自然光線與可信的材質表現。
真實世界物理模擬
體驗真實的動作與互動。AI Sora 理解物體在物理空間中的移動與行為方式。
精準的 prompt 控制
描述你的想法,並取得你真正需要的結果。Sora 2 能以極高準確度理解複雜指令。
以開發者為先的 API
透過乾淨且文件完善的端點,在幾分鐘內完成整合。提供彈性參數與穩定效能。
進階鏡頭控制
精準掌控每一個鏡頭。OpenAI Sora 提供專業級鏡頭運動、角度與轉場。
Get started
Create your API key
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Top up credits
Add credits on the billing page when you are ready to scale beyond the free tier.
Call the API
POST your first task following the API docs, then poll the task until the result is ready.
Iterate in the playground
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "sora2",
"task_type": "sora2-video",
"input": {
"prompt": "A cinematic sunrise over a futuristic city",
"aspect_ratio": "16:9",
"duration": 4
}
}'
# → { "task_id": "9d5a…", "status": "pending" }curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'
# poll until status = completed
{
"data": {
"status": "completed",
"output": {
"video_url": "https://img.theapi.app/ephemeral/…"
}
}
}$ npm install -g piapi-cli $ piapi run sora-2 \ prompt="A cinematic sunrise over a futuristic city" \ aspect_ratio=16:9 \ duration=4 ✓ Task completed! https://img.theapi.app/ephemeral/…
Frequently asked questions
什麼是 Sora 2?
Sora 2 是 OpenAI 的先進影片生成模型,可根據文字描述或圖片輸入生成真實且富有創意的影片。
我要如何存取 Sora 2 API?
Sora 2 API 由 PiAPI提供,讓開發者能夠輕鬆將 Sora 2 的能力整合到自己的應用程式中。
Sora 2 支援哪些解析度與時長?
我們的 Sora 2 API 支援在 pro 模式下生成最高 1080p 的影片,時長可在 4 到 12 秒之間變化。
Sora 2 與其他影片模型有何不同?
Sora 2 在物理理解、prompt 遵循、多鏡頭一致性以及擬真品質方面都相當突出。
我可以將 Sora 2 用於商業專案嗎?
可以,透過 PiAPI 的 Sora 2 API 生成的影片可用於商業用途。請查看相關條款。
一般生成時間大概多久?
生成時間會依影片長度與複雜度而不同,但通常約為 2 到 5 分鐘。
More questions? See the API docs.
我們的部落格
查看我們的部落格以獲得更多相關內容!



