Animate

Generate animation using skeletons

Creates a pixel art animation based on the provided parameters. Called "Animate with skeleton" in the plugin.

Supported image sizes:

  • 16x16
  • 32x32
  • 64x64
  • 128x128
  • 256x256

Supported features:

  • Inpainting
  • Init image
  • Forced palette

Using the Python client:

import pixellab

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

response = client.animate_with_skeleton(
    view="side",
    direction="south",
    image_size=dict(width=64, height=64),
    reference_image=reference_image,
    inpainting_images=existing_animation_frames,
    mask_images=mask_images,
    skeleton_keypoints=skeleton_keypoints,
)
images = [image.pil_image() for image in response.images]
post/animate-with-skeleton

Request body

guidance_scalenumber

How closely to follow the reference image and skeleton keypoints

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

Generate in isometric view

oblique_projectionboolean

Generate in oblique projection

init_image_strengthinteger

Strength of the initial image influence

seedinteger nullable

Seed decides the starting noise

Example request

{
  "image_size": {
    "height": 64,
    "width": 64
  }
}

Response

Successfully generated image

Changes

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