Getting started
Quick start
Five steps. You will have your first HappyHorse 1.0 result in the next minute.
- Sign up for a fal key. Create one at fal.ai/dashboard/keys. Copy it now; you will not see it again.
- Export it.
export FAL_KEY=fal_...in your shell, or add it to a.env.local. Never commit it. - Pick a snippet. The three below hit the same endpoint (
fal-ai/happyhorse/v1/text-to-video) with a minimal input derived from the default parameter set. - Run it. The first call takes a few seconds; subsequent ones are faster. You get a response URL pointing at a video.
- Iterate. Try the playground to see a chat-style interface, or jump to the API reference for every parameter.
First call
BASH
1curl -X POST "https://queue.fal.run/fal-ai/happyhorse/v1/text-to-video" \2 -H "Authorization: Key $FAL_KEY" \3 -H "Content-Type: application/json" \4 -d '{"prompt":"Documentary style interview at night. A barista in a rain jacket leans agains...","duration":"5s","resolution":"720p","aspect_ratio":"16:9","generate_audio":true,"language":"en"}'