CoolFace
Apppublic

nickyni/veo3-api-tutorial

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
index.html112 linesDownload Raw Back to root
1<!DOCTYPE html>2<html lang="en">3<head>4    <meta charset="UTF-8">5    <meta name="viewport" content="width=device-width, initial-scale=1.0">6    <title>Veo 3 API Tutorial โ€” Generate AI Videos via NexaAPI</title>7    <style>8        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 900px; margin: 0 auto; padding: 20px; line-height: 1.6; color: #333; }9        h1 { color: #1a1a2e; border-bottom: 3px solid #e94560; padding-bottom: 10px; }10        h2 { color: #16213e; margin-top: 30px; }11        pre { background: #1a1a2e; color: #e0e0e0; padding: 20px; border-radius: 8px; overflow-x: auto; }12        code { font-family: 'Courier New', monospace; font-size: 14px; }13        .badge { display: inline-block; background: #e94560; color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; margin: 4px; }14        .comparison-table { width: 100%; border-collapse: collapse; margin: 20px 0; }15        .comparison-table th { background: #16213e; color: white; padding: 12px; text-align: left; }16        .comparison-table td { padding: 10px 12px; border-bottom: 1px solid #eee; }17        .comparison-table tr:nth-child(even) { background: #f8f9fa; }18        .cta { background: linear-gradient(135deg, #e94560, #0f3460); color: white; padding: 20px; border-radius: 10px; text-align: center; margin: 30px 0; }19        .cta a { color: #ffd700; font-weight: bold; text-decoration: none; }20        .highlight { background: #fff3cd; border-left: 4px solid #ffc107; padding: 10px 15px; margin: 15px 0; }21    </style>22</head>23<body>24    <h1>๐ŸŽฌ Veo 3 API Tutorial</h1>25    <p>Generate AI Videos via NexaAPI โ€” 2.7x Cheaper Than Official Vertex AI</p>26    27    <div class="highlight">28        <strong>โšก TL;DR:</strong> Google's Veo 3 requires 10+ steps on Vertex AI. NexaAPI gives you access in 2 minutes for $0.15/request (vs $0.40 official). No GCP account needed.29    </div>30 31    <span class="badge">Veo 3</span>32    <span class="badge">AI Video</span>33    <span class="badge">Python</span>34    <span class="badge">JavaScript</span>35    <span class="badge">NexaAPI</span>36 37    <h2>๐Ÿ Python โ€” 3 Lines of Code</h2>38    <pre><code>import requests39 40API_KEY = "your_rapidapi_key"  # Get at rapidapi.com/nexaquency41 42response = requests.post(43    "https://veo-3-video.p.rapidapi.com/generate",44    headers={45        "x-rapidapi-key": API_KEY,46        "x-rapidapi-host": "veo-3-video.p.rapidapi.com",47        "Content-Type": "application/json"48    },49    json={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 56video_url = response.json()["video_url"]57print("Video URL:", video_url)</code></pre>58 59    <h2>๐Ÿ“ฆ JavaScript</h2>60    <pre><code>const axios = require('axios');61 62const response = await axios.post(63  'https://veo-3-video.p.rapidapi.com/generate',64  {65    prompt: 'A cinematic drone shot over a futuristic city at golden hour, 4K',66    duration: 8,67    aspect_ratio: '16:9'68  },69  {70    headers: {71      'x-rapidapi-key': 'your_rapidapi_key',72      'x-rapidapi-host': 'veo-3-video.p.rapidapi.com'73    }74  }75);76 77console.log('Video URL:', response.data.video_url);</code></pre>78 79    <h2>๐Ÿ“Š Veo 3 Vertex AI vs NexaAPI</h2>80    <table class="comparison-table">81        <tr><th>Feature</th><th>Veo 3 on Vertex AI</th><th>NexaAPI (RapidAPI)</th></tr>82        <tr><td>Setup time</td><td>30โ€“60 minutes</td><td><strong>2 minutes</strong></td></tr>83        <tr><td>Requires GCP account</td><td>โœ… Yes</td><td>โŒ No</td></tr>84        <tr><td>Requires billing setup</td><td>โœ… Yes</td><td>โŒ No</td></tr>85        <tr><td>Price per video</td><td>~$0.40/request</td><td><strong>$0.15/request</strong></td></tr>86        <tr><td>Savings</td><td>โ€”</td><td><strong>2.7x cheaper</strong></td></tr>87        <tr><td>Free tier</td><td>Limited trial</td><td>Yes (RapidAPI)</td></tr>88    </table>89 90    <div class="cta">91        <h3>๐Ÿš€ Start Generating AI Videos Now</h3>92        <p>Subscribe on RapidAPI โ€” no GCP, no billing, no OAuth</p>93        <p>94            <a href="https://rapidapi.com/user/nexaquency">๐Ÿ“ก Subscribe on RapidAPI โ†’</a> &nbsp;&nbsp;95            <a href="https://nexa-api.com">๐ŸŒ nexa-api.com โ†’</a>96        </p>97        <p style="font-size: 12px; margin-top: 10px;">98            Python SDK: <code>pip install nexaapi</code> | 99            Node.js SDK: <code>npm install nexaapi</code>100        </p>101    </div>102 103    <h2>๐ŸŽฏ Other Video Models Available</h2>104    <ul>105        <li><strong>Kling Video V3 Pro</strong> โ€” $0.03/request (3.3x cheaper)</li>106        <li><strong>Sora 2 Video</strong> โ€” $0.07/request (2.9x cheaper)</li>107        <li><strong>50+ image, audio, and LLM models</strong></li>108    </ul>109 110    <p><small>Pricing verified at <a href="https://nexa-api.com">nexa-api.com</a> โ€” March 2026 | Official Veo docs: <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/veo-video-generation">cloud.google.com</a></small></p>111</body>112</html>