Code Examples

Full code examples for the August Ads Developer API in Python, JavaScript, and cURL.

Generate a Video

curl -X POST https://api.augstai.com/api/v1/developer/videos/generate \
  -H "Authorization: Bearer aug_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A sleek product showcase for wireless earbuds",
    "duration": 12,
    "aspect_ratio": "9:16"
  }'

Check Status

curl https://api.augstai.com/api/v1/developer/videos/VIDEO_ID \
  -H "Authorization: Bearer aug_live_YOUR_KEY"

Check Credits

curl https://api.augstai.com/api/v1/developer/credits \
  -H "Authorization: Bearer aug_live_YOUR_KEY"