const main = async () => {
const response = await fetch('
https://api.aimlapi.com/v2/video/generations', {
method: 'POST',
headers: {
Authorization: 'Bearer ',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'openai/sora-2-t2v',
prompt: 'A DJ on the stand is playing, around a World War II battlefield, lots of explosions, thousands of dancing soldiers, between tanks shooting, barbed wire fences, lots of smoke and fire, black and… See the full description on the dataset page:
https://huggingface.co/datasets/George870/Sora2.