⚡ Quick Start: Your First VEO 4 API Call
Generate a VEO 4 Video (cURL)
curl -X POST https://api.veo3gen.app/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "veo-4",
"prompt": "A majestic eagle soaring over mountains at sunset",
"duration": 8,
"resolution": "4k",
"audio": true
}'
🔑 Authentication & API Keys
Step 1: Get Your API Key
- 1.Sign up at Veo3Gen.app
- 2.Navigate to API Keys section in dashboard
- 3.Click "Generate New API Key"
- 4.Copy and securely store your key (starts with veo_)
Step 2: Test Your Key
# Test authentication
curl https://api.veo3gen.app/v1/auth/verify \
-H "Authorization: Bearer YOUR_API_KEY"
# Response
{
"valid": true,
"credits": 100,
"rate_limit": "1000/hour"
}
📡 API Endpoints
POST /v1/generate - Create Video
Request Parameters
| model | string | "veo-4" or "veo-4-fast" |
| prompt | string | Video description (up to 2000 words) |
| duration | integer | 5-60 seconds |
| resolution | string | "720p", "1080p", or "4k" |
| audio | boolean | Generate synchronized audio |
Response
{
"id": "gen_abc123",
"status": "processing",
"estimated_time": 45,
"credits_used": 15,
"webhook_url": "https://your-webhook.com/callback"
}
GET /v1/status/:id - Check Status
// Poll for completion
GET https://api.veo3gen.app/v1/status/gen_abc123
// Response when complete
{
"id": "gen_abc123",
"status": "completed",
"video_url": "https://storage.veo3gen.app/videos/abc123.mp4",
"thumbnail_url": "https://storage.veo3gen.app/thumbs/abc123.jpg",
"duration": 8,
"resolution": "4k",
"credits_used": 15
}
💻 Code Examples
JavaScript/Node.js
const axios = require('axios');
async function generateVideo() {
const response = await axios.post('https://api.veo3gen.app/v1/generate', {
model: 'veo-4',
prompt: 'A cat playing piano in a jazz club',
duration: 8,
resolution: '4k',
audio: true
}, {
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const { id } = response.data;
// Poll for completion
while (true) {
const status = await axios.get(`https://api.veo3gen.app/v1/status/${id}`, {
headers: {'Authorization': 'Bearer YOUR_API_KEY'}
});
if (status.data.status === 'completed') {
console.log('Video URL:', status.data.video_url);
break;
}
await new Promise(resolve => setTimeout(resolve, 5000));
}
}
generateVideo();
Python
import requests
import time
API_KEY = 'YOUR_API_KEY'
BASE_URL = 'https://api.veo3gen.app/v1'
def generate_video():
# Start generation
response = requests.post(f'{BASE_URL}/generate',
headers={'Authorization': f'Bearer {API_KEY}'},
json={
'model': 'veo-4',
'prompt': 'Sunrise over futuristic city',
'duration': 8,
'resolution': '4k',
'audio': True
}
)
job_id = response.json()['id']
# Poll for completion
while True:
status = requests.get(f'{BASE_URL}/status/{job_id}',
headers={'Authorization': f'Bearer {API_KEY}'}
).json()
if status['status'] == 'completed':
print(f"Video URL: {status['video_url']}")
return status['video_url']
time.sleep(5)
video_url = generate_video()
💰 API Pricing
Developer Plan
$0.16
per second
- • $1.28 per 8s video
- • 84% cheaper than Google
- • 1000 requests/hour
Business Plan
$0.14
per second
- • $1.12 per 8s video
- • 86% cheaper than Google
- • 5000 requests/hour
BEST VALUE
Enterprise
Custom
volume pricing
- • As low as $0.10/sec
- • Dedicated support
- • Unlimited requests
Start Integrating VEO 4 API
Get your API key and make your first VEO 4 API call in under 5 minutes. Simple, affordable, powerful.