LlamaGen.Ai LogoLlamaGen.Ai Brand

Animation API Quickstart

Build your first video artwork generation flow in five steps.

1. Create an account

Sign in to LlamaGen and open the developer API dashboard.

2. Choose API credits

Animation generations consume API credits based on selected video model, duration, and resolution.

3. Generate an API key

Create an API token and send it with the Authorization Bearer header.

4. Create a video job

POST to /v1/artworks/generations with prompt and videoOptions.

5. Poll and deliver

Poll the status endpoint and deliver the returned video URL to your app, editor, or workflow.

First request

POST /v1/artworks/generations
curl -X POST https://api.llamagen.ai/v1/artworks/generations \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A friendly robot waving from a glowing city balcony.",
    "videoOptions": {
      "duration": 5,
      "resolution": "720p",
      "aspect_ratio": "16:9"
    }
  }'