{"model":"cogvideox-2","prompt":"Peter Rabbit dritves a small car, wandering on the road, with a iface full of happiness and joy.","image_url":"https://file.302.ai/gpt/imgs/20240806/448066b8585148e1bda23d276f0f9af2.png"}
Request Code 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/zhipu/api/paas/v4/videos/generations' \
--header'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header'Content-Type: application/json;charset:utf-8;' \
--data-raw'{
"model": "cogvideox-2",
"prompt": "Peter Rabbit dritves a small car, wandering on the road, with a iface full of happiness and joy.",
"image_url":"https://file.302.ai/gpt/imgs/20240806/448066b8585148e1bda23d276f0f9af2.png"
}'