veo3-python-js-guide / index.html
nickyni's picture
Upload index.html with huggingface_hub
5412a6e verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Veo 3 Python and JavaScript Guide - NexaAPI</title>
<style>
body { font-family: sans-serif; max-width: 900px; margin: 0 auto; padding: 20px; }
h1 { color: #1a1a2e; border-bottom: 3px solid #6c5ce7; padding-bottom: 10px; }
pre { background: #1a1a2e; color: #e0e0e0; padding: 20px; border-radius: 8px; overflow-x: auto; }
.cta { background: linear-gradient(135deg, #6c5ce7, #0f3460); color: white; padding: 20px; border-radius: 10px; text-align: center; margin: 30px 0; }
.cta a { color: #ffd700; font-weight: bold; text-decoration: none; }
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th { background: #16213e; color: white; padding: 12px; text-align: left; }
td { padding: 10px 12px; border-bottom: 1px solid #eee; }
tr:nth-child(even) { background: #f8f9fa; }
</style>
</head>
<body>
<h1>Veo 3 API - Python and JavaScript Guide</h1>
<p>Complete developer guide for generating AI videos with Google Veo 3 via NexaAPI - 2.7x cheaper than official pricing.</p>
<h2>Python Example</h2>
<pre>import requests
API_KEY = "your_rapidapi_key"
response = requests.post(
"https://veo-3-video.p.rapidapi.com/generate",
headers={
"x-rapidapi-key": API_KEY,
"x-rapidapi-host": "veo-3-video.p.rapidapi.com",
"Content-Type": "application/json"
},
json={
"prompt": "A cinematic drone shot over a futuristic city at golden hour, 4K",
"duration": 8,
"aspect_ratio": "16:9"
}
)
data = response.json()
print("Video URL:", data["video_url"])</pre>
<h2>JavaScript Example</h2>
<pre>const axios = require('axios');
const response = await axios.post(
'https://veo-3-video.p.rapidapi.com/generate',
{
prompt: 'A cinematic drone shot over a futuristic city at golden hour, 4K',
duration: 8,
aspect_ratio: '16:9'
},
{
headers: {
'x-rapidapi-key': 'your_rapidapi_key',
'x-rapidapi-host': 'veo-3-video.p.rapidapi.com'
}
}
);
console.log('Video URL:', response.data.video_url);</pre>
<h2>Comparison: Vertex AI vs NexaAPI</h2>
<table>
<tr><th>Feature</th><th>Veo 3 on Vertex AI</th><th>NexaAPI (RapidAPI)</th></tr>
<tr><td>Setup time</td><td>30-60 minutes</td><td>2 minutes</td></tr>
<tr><td>Price per video</td><td>~$0.40</td><td>$0.15 (2.7x cheaper)</td></tr>
<tr><td>GCP required</td><td>Yes</td><td>No</td></tr>
<tr><td>Free tier</td><td>Limited trial</td><td>Yes</td></tr>
</table>
<div class="cta">
<h3>Start Generating AI Videos</h3>
<p><a href="https://rapidapi.com/user/nexaquency">Subscribe on RapidAPI</a> &nbsp; <a href="https://nexa-api.com">nexa-api.com</a></p>
<p>pip install nexaapi | npm install nexaapi</p>
</div>
</body>
</html>