API Documentation
Mozify API Documentation
Everything you need to integrate Mozify's AI video generation into your applications.
Getting Started
1. Create an Account
Sign up at app.mozify.ai to get started. No credit card required.
2. Get Your API Key
Navigate to Dashboard → API Keys and click Create New Key. Copy and securely store your API key - it will only be shown once.
3. Add Balance
Go to Dashboard → Billing and top up your account balance. You only pay for what you use.
Authentication
All API requests require authentication using your API key. Include it in theAuthorization header:
Authorization: Bearer YOUR_API_KEY
Alternatively, you can use the X-API-Key header.
Video Generation
Generate Video
POST /v1/video/generate
Request Body
{
"model": "sora-2-15s",
"prompt": "A golden retriever playing in autumn leaves",
"aspect_ratio": "16:9" // Optional: "16:9", "9:16", or "1:1"
}Response
{
"id": "vid_abc123xyz",
"object": "video",
"model": "sora-2-15s",
"status": "processing",
"cost": 1.00,
"balance_after": 49.00,
"created_at": "2025-01-15T10:30:00Z"
}Available Models
| Model ID | Price | Max Duration |
|---|---|---|
sora-2-15s | $1.00 | 15 seconds |
sora-2-25s | $3.00 | 25 seconds |
veo3.1-pro | $2.50 | High quality |
veo3.1-fast | $0.80 | Fast |
Code Examples
Python
import requests
API_KEY = "YOUR_API_KEY"
BASE_URL = "https://api.mozify.ai"
# Generate a video
response = requests.post(
f"{BASE_URL}/v1/video/generate",
headers={"Authorization": f"Bearer {API_KEY}"},
json={
"model": "sora-2-15s",
"prompt": "A cat playing piano in a jazz club"
}
)
video = response.json()
print(f"Video ID: {video['id']}")
print(f"Status: {video['status']}")
# Check video status
status_response = requests.get(
f"{BASE_URL}/v1/video/{video['id']}",
headers={"Authorization": f"Bearer {API_KEY}"}
)
result = status_response.json()
if result["status"] == "completed":
print(f"Video URL: {result['url']}")JavaScript
const API_KEY = "YOUR_API_KEY";
const BASE_URL = "https://api.mozify.ai";
// Generate a video
const response = await fetch(`${BASE_URL}/v1/video/generate`, {
method: "POST",
headers: {
"Authorization": `Bearer ${API_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
model: "sora-2-15s",
prompt: "A cat playing piano in a jazz club"
})
});
const video = await response.json();
console.log("Video ID:", video.id);
console.log("Status:", video.status);cURL
curl -X POST https://api.mozify.ai/v1/video/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2-15s",
"prompt": "A cat playing piano in a jazz club"
}'Rate Limits
| Limit | Requests |
|---|---|
| Per minute | 60 requests |
| Per hour | 1,000 requests |
| Per day | 10,000 requests |
Need higher limits? Contact us at [email protected] for enterprise plans.