- Step1: Create an Apiframe account and obtain an API key.
- Step2: Write a prompt describing the video, motion, scene, and audio.
- Step3: Optionally provide one image for image-to-video or two to nine images for reference-to-video.
- Step4: Set the model to happyhorse-1.1 and choose resolution, aspect ratio, duration, and an optional seed.
- Step5: Send a POST request to /v2/videos/generate using JavaScript, Python, cURL, or another HTTP client.
- Step6: Store the returned jobId and poll the jobs endpoint, or include webhook_url to receive the completed result.
- Step7: Retrieve and use the generated video after the job reaches COMPLETED status.