LlamaGen.Ai LogoLlamaGen.Ai Brand

Animation API Examples

Production-ready request patterns for apps that generate video artworks through /v1/artworks/generations.

Text-to-video scene generator

Turn short creative prompts into cinematic video artwork jobs for apps, editors, and agents.

Text promptCinematicPolling
1{2  "prompt": "A cozy robot barista serving coffee in a rainy neon street.",3  "videoOptions": {4    "duration": 5,5    "resolution": "720p",6    "aspect_ratio": "16:9",7    "generate_audio": true8  }9}

Image-to-video character motion

Animate a first frame while preserving character identity and composition.

First frameCharacterMotion
1{2  "prompt": "Slow push-in as the hero turns toward camera, cape moving in the wind.",3  "videoOptions": {4    "image": "https://cdn.example.com/hero-frame.png",5    "duration": 5,6    "resolution": "720p",7    "aspect_ratio": "16:9"8  }9}

Vertical social clip workflow

Generate short 9:16 animation outputs for social apps and creator tools.

9:16SocialShort video
1{2  "prompt": "A product mascot jumps into frame and points at floating feature cards.",3  "videoOptions": {4    "duration": 4,5    "resolution": "720p",6    "aspect_ratio": "9:16",7    "generate_audio": false8  }9}

Ad creative motion draft

Create motion drafts for campaign review before final render or editing.

AdsDraftReview
1{2  "prompt": "A clean product reveal with soft studio lighting and smooth camera orbit.",3  "videoOptions": {4    "reference_images": ["https://cdn.example.com/product.png"],5    "duration": 6,6    "resolution": "1080p",7    "aspect_ratio": "1:1"8  }9}