Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
const main = async () => {
|
| 5 |
+
const response = await fetch('https://api.aimlapi.com/v2/video/generations', {
|
| 6 |
+
method: 'POST',
|
| 7 |
+
headers: {
|
| 8 |
+
Authorization: 'Bearer <YOUR_API_KEY>',
|
| 9 |
+
'Content-Type': 'application/json',
|
| 10 |
+
},
|
| 11 |
+
body: JSON.stringify({
|
| 12 |
+
model: 'openai/sora-2-t2v',
|
| 13 |
+
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 white old video: hyper realistic, photorealistic, photography, super detailed, very sharp, on a very white background',
|
| 14 |
+
}),
|
| 15 |
+
}).then((res) => res.json());
|
| 16 |
+
|
| 17 |
+
console.log('Generation:', response);
|
| 18 |
+
};
|
| 19 |
+
|
| 20 |
+
main()
|