From Google's latest video generation model, generating 8s videos with sound effects in one goPrice: 7 PTC per generation
Request
Header Params
Authorization
string
required
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
prompt
string
required
aspect_ratio
string
optional
16:9 9:16 1:1
enhance_prompt
boolean
optional
generate_audio
boolean
optional
Example
{"prompt":"A crowded corporate elevator during morning rush hour. Two well-dressed colleagues stand face-to-face, uncomfortably close due to the packed space. One, maintaining a straight face, leans in slightly and says, “I once sneezed in the all-hands and clicked ‘share screen’ at the same time. No survivors.” The other tries to suppress a laugh. The elevator dings, and doors open to a bustling office floor.","aspect_ratio":"9:16","enhance_prompt":true,"generate_audio":true}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.302.ai/302/submit/veo3' \
--header'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header'Content-Type: application/json' \
--data-raw'{
"prompt": "A crowded corporate elevator during morning rush hour. Two well-dressed colleagues stand face-to-face, uncomfortably close due to the packed space. One, maintaining a straight face, leans in slightly and says, “I once sneezed in the all-hands and clicked ‘share screen’ at the same time. No survivors.” The other tries to suppress a laugh. The elevator dings, and doors open to a bustling office floor.",
"aspect_ratio": "9:16",
"enhance_prompt": true,
"generate_audio": true
}'