StrataKit Documentation
Create YouTube Shorts for $0.05. A simple JSON API that converts your scripts to professional videos in seconds.
Try the API in your client
One-click import of the StrataKit OpenAPI spec into popular API clients. Postman and Insomnia deep links always use the canonical production spec at stratakit.io/openapi.yaml. The download link uses this page's origin when public, so preview deployments can expose their own local spec.
insomnia://).Requires sign-in
Simple Examples
Start with these basic examples using the flat segmentsformat. Click "Try it" to run them directly!
1. Solid Color Background (Simplest)
Create a 5-second video with just a solid color. No media files needed.
2. Single Video Clip
Resize a sample video to create a YouTube Short.
3. Image Slideshow
Create a video from multiple images. Start times are auto-calculated for sequential segments.
4. Text Overlay
Text segments are automatically rendered on top of base content (video, image, color).
Complex Examples
Productions with multiple assets, text overlays, effects, and timing.
5. Video with Text Overlays and Audio
Professional-style video with text overlays and background music. Text renders on top automatically.
6. Narration with TTS
Generate voiceover for your video using text-to-speech.
7. Full Production Pipeline
Complete video with intro, main content, outro, background music, and multiple text animations.
API Endpoints
Key Concepts
Production
A video rendering job. Submit a canvas specification and receive a rendered MP4.
Canvas
The video specification containing dimensions and content. Use the segments format to define your content — base content auto-sequences, overlays render on top, audio routes automatically. Use a preset like youtube_short or specify custom dimensions.
Segments
Flat array of content items with a type field. Base content (video, image, color) auto-sequences. Overlays (text, shape) render on top. Audio and TTS each get their own track automatically.
Asset Types
Content types: video, image, color, text, audio, or tts. In segments format, set the type directly on each segment.
Available Presets
Use these presets instead of specifying dimensions manually:
youtube_short1080×1920 (9:16)
youtube_landscape1920×1080 (16:9)
instagram_story1080×1920 (9:16)
instagram_feed1080×1080 (1:1)
instagram_reel1080×1920 (9:16)
tiktok1080×1920 (9:16)
hd1280×720 (16:9)
full_hd1920×1080 (16:9)
4k3840×2160 (16:9)
Asset Types Reference
Each segment contains an asset. Here are all supported types with runnable examples:
Video Asset
Load a video from URL with optional volume and trimming.
Image Asset
Display an image with fit options (cover, contain, fill).
Color Asset
Solid color background. Use hex colors (#RRGGBB or #RRGGBBAA for transparency).
Text Asset
Add text with custom font, size, color, and position.
Audio Asset
Add background music or sound effects with volume control. Audio segments are automatically placed on a separate track.
TTS (Text-to-Speech) Asset
Generate voiceover from text using ElevenLabs Multilingual v2, with character-level timestamps for karaoke-style captions.
Response Format
When you create a production, you'll receive:
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "queued",
"created_at": "2024-01-15T10:30:00Z",
"estimated_wait_seconds": 60,
"credits_used": 5,
"credits_remaining": 95
}When processing completes (via webhook or polling):
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "completed",
"output_url": "https://assets.stratakit.io/outputs/550e8400.mp4",
"output_duration": 15.0,
"processing_time_ms": 12500,
"created_at": "2024-01-15T10:30:00Z",
"completed_at": "2024-01-15T10:30:12Z"
}