curl-X POST 'https://pollo.ai/api/platform/v1/generation/openai/sora-2-pro/video'\-H'Content-Type: application/json'\-H'x-api-key: YOUR_API_KEY'\-d'{ "input": { "prompt": "A cinematic shot of a golden retriever running through a field of sunflowers at sunset, warm rim light, shallow depth of field", "duration": 4, "aspectRatio": "16:9", "resolution": "720p" }}'
İsteğe bağlı olarak, görev başarılı veya başarısız olduğunda geri bildirim almak için webhookUrl'yi ekleyebilirsiniz.
İsteğe bağlı istek alanı
{"input":{"prompt":"A cinematic shot of a golden retriever running through a field of sunflowers at sunset, warm rim light, shallow depth of field","duration":4,"aspectRatio":"16:9","resolution":"720p"},"webhookUrl":"https://example.com/webhooks/pollo"}
Şema
Seçilen uç nokta ve mod için giriş alanları.
Alan
Tip
Gerekli
Tanım
prompt
string
Evet
Text prompt describing the content to generate.
duration
number
HAYIR
The duration of the generated video, in seconds.
aspectRatio
string
HAYIR
Output aspect ratio, as width:height (e.g. 16:9).
resolution
string
HAYIR
Output resolution of the generated media (e.g. 720p, 1080p, 2K, 4K). Values are case-insensitive.
Sora 2 Pro รองรับพรอมป์ต์ที่ยาวและละเอียด และสร้างฉากที่มีการประสานกันของวัตถุ แสง การเคลื่อนไหวทางกายภาพ และความต่อเนื่องของภาพตลอดทั้งคลิป
เมื่อใช้ Sora 2 Pro บน Pollo API คุณสามารถผสานการสร้างวิดีโอจากข้อความและจากรูปภาพได้ พร้อมตั้งค่าระยะเวลาคลิป อัตราส่วนแนวตั้งหรือแนวนอน และความละเอียดเอาต์พุตได้สูงสุดถึง 1080p
Sora 2 Pro เหมาะสำหรับแอปพลิเคชันที่ต้องการฉากยาว เสียงซิงก์ และความต่อเนื่องของภาพ รองรับบทสนทนา สภาพแวดล้อมจำลอง และคลิปยาวสูงสุด 20 วินาที จึงเหมาะกับงานเล่าเรื่อง งานอธิบาย งานพรีวิชวล และเวิร์กโฟลว์คอนเทนต์ที่ขับเคลื่อนด้วยฉาก
ผ่าน Pollo API คุณสามารถเข้าถึง Sora 2 Pro ควบคู่กับโมเดลวิดีโอและรูปภาพอื่น ๆ ผ่าน API เดียว พร้อมรองรับการโพลสถานะงานและ webhook ช่วยให้การประเมินโมเดล การผสานระบบ และการนำขึ้นใช้งานจริงง่ายขึ้น
คำถามที่พบบ่อยเกี่ยวกับ Sora 2 Pro API
Sora 2 Pro คืออะไร?
Sora 2 Pro คือโมเดลวิดีโอระดับพรีเมียมของ OpenAI ที่จำลองสภาพแวดล้อมโลกจริงได้ พร้อมเสียงซิงก์และความสอดคล้องสูง รองรับทั้ง text-to-video และ image-to-video สูงสุด 20 วินาที
Sora 2 Pro API รองรับอินพุตทั้งข้อความและรูปภาพไหม?
Sora 2 Pro ส่งออกได้สูงสุด 1080p ทั้งแบบจอกว้าง 16:9 หรือแนวตั้ง 9:16 โดยเลือกได้ในแต่ละคำขอให้ตรงกับฟอร์แมตที่ต้องการ
ทำไมควรรัน Sora 2 Pro ผ่าน Pollo API?
Pollo API เปิดให้เข้าถึง Sora 2 Pro ควบคู่กับโมเดลวิดีโอและรูปภาพอื่น ๆ ผ่านการเชื่อมต่อเดียว พร้อมเอกสาร API การติดตามสถานะงาน และการรองรับ webhook สำหรับการสร้างวิดีโอแบบอะซิงโครนัส.