S
spritesynthDOCS

Interpolate

Generate intermediate animation frames between existing keyframes.

Interpolate

Generate intermediate frames between existing animation keyframes. Smooth out choppy animations or increase frame count for smoother playback.

Endpoint

POST /api/animations/interpolation-v2

Parameters

NameTypeRequiredDescription
animationstringYesAnimation GIF URL or base64-encoded sprite sheet
frame_countintegerYesTotal number of output frames (2–60)

Example

curl -X POST https://api/animations/interpolation-v2 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "animation": "https://cdn.spritesynth.com/animations/walk_4frame.gif",
    "frame_count": 12
  }'

Response

{
  "id": "interp_654",
  "status": "completed",
  "animation": {
    "url": "https://cdn.spritesynth.com/animations/interp_654.gif",
    "sprite_sheet": "https://cdn.spritesynth.com/animations/interp_654_sheet.png",
    "frame_count": 12,
    "frame_width": 64,
    "frame_height": 64,
    "fps": 12
  },
  "credits_cost": 2,
  "duration_ms": 2500
}

Tips

  • Doubling frame count (4→8, 8→16) produces smooth results.
  • Going beyond 30 frames rarely improves perceived smoothness.
  • Use for walk cycles and idle animations where smoothness matters most.

Need help?

Join our Discord community for support and tips.
Was this page helpful?

On this page