Happy Horse Video Edit

alibaba/happy-horse/video-edit

Happy Horse Video Edit by Alibaba - AI-powered video editing and transformation. Apply style transfer, motion control, lip-sync, and visual effects to existing videos with natural language instructions.

Base price
$1.40USD / run
Execution
async
Model type
video
Input fields
6
Production route

Try the model

Playground

Open playground
Input
Text prompt describing the desired edit. Reference any supplied reference images using @Image1, @Image2, ... up to @Image5. Max 2500 characters.
URL of the source video to edit. Formats: MP4, MOV (H.264 recommended). Duration: 3-60 s. Longer side ≤ 2160 px, shorter side ≥ 320 px. Aspect ratio between 1:2.5 and 2.5:1. Frame rate > 8 fps. Max 100 MB. The output video preserves the source aspect ratio. Output duration matches the input video, capped at 15 s (longer inputs are truncated to the first 15 s). Max file size: 100.0MB, Min duration: 3s, Max duration: 60s, Timeout: 30.0s
Output video resolution tier. Allowed values: 720p, 1080p.
Random seed for reproducibility (0-2147483647).

PNG, JPEG, WebP, or GIF · 20 MiB maximum each

Optional reference images used to guide the edit (up to 5). Formats: JPEG, JPG, PNG, WEBP. Dimensions must be at least 300px. Aspect ratio between 1:2.5 and 2.5:1. Max 10 MB each.
Audio handling. 'auto': model decides whether to regenerate audio. 'origin': preserve the original audio from the input video. Allowed values: auto, origin.
OutputExample

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$1.40 / run

Context & modalities

Input
Schema-defined
Output
video

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
Alibaba
Model ID
alibaba/happy-horse/video-edit
Execution
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

API README

Happy Horse Video Edit

Edit an existing clip with Happy Horse: restyle it, change objects or wardrobe, or rework the scene with an instruction. Optional reference images show the target look; the source motion and length are kept.

Fields

FieldTypeDefaultNotes
promptstring, required—Text instruction.
videovideo URL, required—Source clip, Video 1 in the prompt.
resolution720p / 1080p720pSets the per-second rate.
seedintegerrandomFix it to compare prompt changes.
reference_image_urlsimage URL[]—Optional reference images for the new look.
audio_settingauto / originautoauto regenerates audio to match the edit; origin keeps the source track.

Billing

Alibaba bills the source and the edited output, which are the same length, so each source second bills twice: $0.28 at 720p and $0.48 at 1080p. The quote before submission assumes a 5-second source; the final charge uses the measured length.

Source clip720p1080p
3s$0.84$1.44
5s$1.40$2.40
10s$2.80$4.80
15s$4.20$7.20

Failed runs are not charged.

Prompting

  • Lead with the change and say what must stay: “make it a watercolor animation; keep her face and the camera move”.
  • Draft at 720p; edits bill twice the source length.

Limits

  • Output length and framing follow the source video.

Also on SandBase

Other Happy Horse endpoints: alibaba/happy-horse/text-to-video, alibaba/happy-horse/image-to-video, alibaba/happy-horse/reference-to-video, alibaba/wan/2.7/video-edit (Wan alternative, bills output only).

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
alibaba/happy-horse/video-edit
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "alibaba/happy-horse/video-edit",
  "video": "https://static.sandbase.ai/examples/alibaba/happy-horse/video-edit/input_video_0.mp4",
  "prompt": "Recolor the sky to a deep purple sunset.",
  "resolution": "720p",
  "audio_setting": "auto"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
AlibabaVideo$1.40 / runApr 27, 2026
AlibabaVideo$1.40 / runOct 4, 2026
AlibabaVideo$2.80 / runOct 4, 2026
AlibabaVideo$1.00 / runOct 4, 2026
AlibabaVideo$2.00 / runOct 4, 2026
AlibabaVideo$0.70 / runAug 24, 2026

Questions

FAQ

How do I call Alibaba Happy Horse Video Edit through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/happy-horse/video-edit" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

Do I need a separate Alibaba account?

No. One SandBase API key and balance gives you access to Alibaba Happy Horse Video Edit and the other models in the catalog; you do not need to sign up with Alibaba separately.