Fabric → Generate Video
AI-generatedSummary
Generate a talking‑head video from an image and audio using the Fabric AI model.
Inputs
- notice — Information about obtaining the Fal.ai API key.
- model — Select the Fabric model version.
- imageUrl (required) — URL of the portrait image to use as the talking head base. Best results with front‑facing photos, clear facial features. Supported: JPG, PNG, WebP.
- audioUrl (required) — URL of the audio file for lip sync. Duration auto‑detected from audio. Supported: MP3, WAV, M4A, AAC.
- resolution — Output video resolution (480p for faster generation, 720p for higher quality).
- aspectRatio — Output video aspect ratio (16:9 landscape, 9:16 portrait, 1:1 square).
- options — Additional generation options, such as timeout in minutes.
Output shape
a generated video asset (binary) returned as a URL or file reference
Generation can take 5–15 minutes; on success a video URL is returned, on failure an error is thrown.
Examples
Example 1: Create a standard landscape talking‑head video using default settings.
imageUrl: https://example.com/portrait.jpg, audioUrl: https://example.com/speech.mp3, model: veed/fabric-1.0, resolution: 480p, aspectRatio: 16:9
Example 2: Generate a TikTok‑style vertical video with the fast model for quicker iteration.
imageUrl: https://example.com/portrait.png, audioUrl: https://example.com/intro.wav, model: veed/fabric-1.0/fast, resolution: 720p, aspectRatio: 9:16, options: {timeout: 15}
Example 3: Produce a high‑quality presentation video in landscape mode.
imageUrl: https://example.com/speaker.jpg, audioUrl: https://example.com/meeting.mp3, model: veed/fabric-1.0, resolution: 720p, aspectRatio: 16:9, options: {timeout: 20}