S
spritesynthDOCS

Edit Animation

Modify existing animations with natural language instructions.

Edit Animation

Modify existing animations using natural language. Describe what you want changed and the model will update the animation accordingly.

Endpoint

POST /api/animations/edit-animation-v2

Parameters

NameTypeRequiredDescription
animationstringYesAnimation GIF URL or base64-encoded sprite sheet
descriptionstringYesNatural language description of the edit
edit_typestringYesType of edit: speed, style, smoothness, frames

Edit Types

TypeDescription
speedChange animation speed (faster/slower)
styleChange the visual style of the animation
smoothnessAdjust frame transitions and interpolation
framesAdd, remove, or reorder frames

Example

curl -X POST https://api/animations/edit-animation-v2 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "animation": "https://cdn.spritesynth.com/animations/anim_123.gif",
    "description": "make the sword swing more dramatic",
    "edit_type": "style"
  }'

Response

{
  "id": "edit_anim_789",
  "status": "completed",
  "animation": {
    "url": "https://cdn.spritesynth.com/animations/edit_anim_789.gif",
    "sprite_sheet": "https://cdn.spritesynth.com/animations/edit_anim_789_sheet.png",
    "frame_count": 8,
    "fps": 12
  },
  "credits_cost": 2,
  "duration_ms": 3200
}

Tips

  • Be specific about what to change — "slow down the walk cycle" works better than "change speed".
  • Use speed for tempo adjustments, style for visual changes.
  • Editing preserves the original frame count unless frames type is used.

Need help?

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

On this page