Animate

Generate animation using text description

Creates a pixel art animation based on text description and parameters.

Supported image sizes:

  • 64x64

Supported features:

  • Text-guided animation generation
  • Inpainting
  • Init image
  • Forced palette
  • Multiple frames

Using the Python client:

import pixellab

client = pixellab.Client(secret="YOUR_API_TOKEN")

response = client.animate_with_text(
    description="human mage",
    action="walk",
    view="side",
    direction="south",
    image_size=dict(width=64, height=64),
    reference_image=reference_image,
    n_frames=4
)
images = [image.pil_image() for image in response.images]
post/animate-with-text

Request body

descriptionstring required

Character description

negative_descriptionstring

Negative prompt to guide what not to generate

actionstring required

Action description

text_guidance_scalenumber nullable

How closely to follow the text prompts

image_guidance_scalenumber nullable

How closely to follow the reference image

n_framesinteger nullable

Length of full animation (the model will always generate 4 frames)

start_frame_indexinteger nullable

Starting frame index of the full animation

view'side' | 'low top-down' | 'high top-down'
direction'north' | 'north-east' | 'east' | 'south-east' | 'south' | 'south-west' | 'west' | 'north-west'
init_image_strengthinteger

Strength of the initial image influence

seedinteger nullable

Seed for reproducible results (0 for random)

Example request

{
  "action": "walk",
  "description": "human mage",
  "direction": "south",
  "image_size": {
    "height": 64,
    "width": 64
  },
  "view": "side"
}

Response

Successfully generated animation

Changes

No recorded changes to this endpoint across all 1 revision of this API.