Spaces:
Running
Running
Upload index.html with huggingface_hub
Browse files- index.html +79 -19
index.html
CHANGED
|
@@ -1,19 +1,79 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<title>Veo 3 Python and JavaScript Guide - NexaAPI</title>
|
| 6 |
+
<style>
|
| 7 |
+
body { font-family: sans-serif; max-width: 900px; margin: 0 auto; padding: 20px; }
|
| 8 |
+
h1 { color: #1a1a2e; border-bottom: 3px solid #6c5ce7; padding-bottom: 10px; }
|
| 9 |
+
pre { background: #1a1a2e; color: #e0e0e0; padding: 20px; border-radius: 8px; overflow-x: auto; }
|
| 10 |
+
.cta { background: linear-gradient(135deg, #6c5ce7, #0f3460); color: white; padding: 20px; border-radius: 10px; text-align: center; margin: 30px 0; }
|
| 11 |
+
.cta a { color: #ffd700; font-weight: bold; text-decoration: none; }
|
| 12 |
+
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
|
| 13 |
+
th { background: #16213e; color: white; padding: 12px; text-align: left; }
|
| 14 |
+
td { padding: 10px 12px; border-bottom: 1px solid #eee; }
|
| 15 |
+
tr:nth-child(even) { background: #f8f9fa; }
|
| 16 |
+
</style>
|
| 17 |
+
</head>
|
| 18 |
+
<body>
|
| 19 |
+
<h1>Veo 3 API - Python and JavaScript Guide</h1>
|
| 20 |
+
<p>Complete developer guide for generating AI videos with Google Veo 3 via NexaAPI - 2.7x cheaper than official pricing.</p>
|
| 21 |
+
|
| 22 |
+
<h2>Python Example</h2>
|
| 23 |
+
<pre>import requests
|
| 24 |
+
|
| 25 |
+
API_KEY = "your_rapidapi_key"
|
| 26 |
+
|
| 27 |
+
response = requests.post(
|
| 28 |
+
"https://veo-3-video.p.rapidapi.com/generate",
|
| 29 |
+
headers={
|
| 30 |
+
"x-rapidapi-key": API_KEY,
|
| 31 |
+
"x-rapidapi-host": "veo-3-video.p.rapidapi.com",
|
| 32 |
+
"Content-Type": "application/json"
|
| 33 |
+
},
|
| 34 |
+
json={
|
| 35 |
+
"prompt": "A cinematic drone shot over a futuristic city at golden hour, 4K",
|
| 36 |
+
"duration": 8,
|
| 37 |
+
"aspect_ratio": "16:9"
|
| 38 |
+
}
|
| 39 |
+
)
|
| 40 |
+
|
| 41 |
+
data = response.json()
|
| 42 |
+
print("Video URL:", data["video_url"])</pre>
|
| 43 |
+
|
| 44 |
+
<h2>JavaScript Example</h2>
|
| 45 |
+
<pre>const axios = require('axios');
|
| 46 |
+
|
| 47 |
+
const response = await axios.post(
|
| 48 |
+
'https://veo-3-video.p.rapidapi.com/generate',
|
| 49 |
+
{
|
| 50 |
+
prompt: 'A cinematic drone shot over a futuristic city at golden hour, 4K',
|
| 51 |
+
duration: 8,
|
| 52 |
+
aspect_ratio: '16:9'
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
headers: {
|
| 56 |
+
'x-rapidapi-key': 'your_rapidapi_key',
|
| 57 |
+
'x-rapidapi-host': 'veo-3-video.p.rapidapi.com'
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
);
|
| 61 |
+
|
| 62 |
+
console.log('Video URL:', response.data.video_url);</pre>
|
| 63 |
+
|
| 64 |
+
<h2>Comparison: Vertex AI vs NexaAPI</h2>
|
| 65 |
+
<table>
|
| 66 |
+
<tr><th>Feature</th><th>Veo 3 on Vertex AI</th><th>NexaAPI (RapidAPI)</th></tr>
|
| 67 |
+
<tr><td>Setup time</td><td>30-60 minutes</td><td>2 minutes</td></tr>
|
| 68 |
+
<tr><td>Price per video</td><td>~$0.40</td><td>$0.15 (2.7x cheaper)</td></tr>
|
| 69 |
+
<tr><td>GCP required</td><td>Yes</td><td>No</td></tr>
|
| 70 |
+
<tr><td>Free tier</td><td>Limited trial</td><td>Yes</td></tr>
|
| 71 |
+
</table>
|
| 72 |
+
|
| 73 |
+
<div class="cta">
|
| 74 |
+
<h3>Start Generating AI Videos</h3>
|
| 75 |
+
<p><a href="https://rapidapi.com/user/nexaquency">Subscribe on RapidAPI</a> <a href="https://nexa-api.com">nexa-api.com</a></p>
|
| 76 |
+
<p>pip install nexaapi | npm install nexaapi</p>
|
| 77 |
+
</div>
|
| 78 |
+
</body>
|
| 79 |
+
</html>
|