Guides & updates
Tutorials, quickstarts and product updates for generative media & LLM APIs.
AI Video API Sample Aspect Ratio: Normalize Non-Square Pixels
Inspect AI video API sample aspect ratio with ffprobe, normalize non-square pixels using FFmpeg, and validate display geometry before browser video delivery.
AI Image API File Format Detection: Validate Before Storage
Implement AI image API file format detection with Pillow, reject misleading extensions and MIME headers, and validate decoded assets before application storage.
AI Video API Rotation Metadata: Inspect and Normalize
Inspect AI video API rotation metadata with Python and ffprobe, bake orientation into pixels with FFmpeg, and verify portrait geometry, duration, and audio.
AI Image API Multi-Frame Detection: Reject Animated Inputs
Add AI image API multi-frame detection with Pillow to reject animated and multi-page inputs, enforce still-image policies, and test ingestion before storage.
AI Video API Frame Rate Normalization: Python and FFmpeg
Learn AI video API frame rate normalization with Python and FFmpeg: convert VFR to CFR, preserve clip timing and audio, and validate delivery files locally.
AI Image API Metadata Stripping: Privacy-Safe Derivatives
Implement AI image API metadata stripping with Pillow: remove private EXIF, preserve orientation and ICC profiles, and validate sanitized delivery derivatives.
AI Video API Atomic File Writes: A Python Ingestion Tutorial
Implement AI video API atomic file writes in Python with bounded streams, SHA-256, fsync, safe promotion, and recovery rules for application-owned video files.
AI Image API Base64 Decoding: Limits and File Validation
Handle AI image API Base64 decoding with strict syntax checks, encoded-size limits, pixel budgets, and file validation before storing application-owned images.
AI Video API Checksum Verification: Storage Integrity Guide
Use AI video API checksum verification to detect corrupted storage copies, protect trusted digests, and separate file integrity from playback and billing.
AI image API SSRF protection: Safe Python Downloads
Build AI image API SSRF protection with strict HTTPS host checks, blocked redirects, bounded Python downloads, timeouts, and network-level egress controls.
AI video API HTTP Range: Python Delivery Tutorial
Implement AI video API HTTP Range delivery with Python: single byte ranges, 200/206/416, strong ETags, authorization, bounded streaming, and playback checks.
AI Image API ETag Caching: Private Asset Revalidation
Implement AI image API ETag caching with conditional requests, tenant authorization, immutable image variants, and safe 304 responses in your application.