- Step1: Create an Apiframe account and obtain an API key.
- Step2: Write a video prompt describing the scene, subjects, motion, camera work, and sound.
- Step3: Choose the resolution, aspect ratio, and duration from 4 to 15 seconds.
- Step4: Optionally provide a first frame, last frame, reference images, reference videos, or reference audio URLs.
- Step5: Send a POST request to https://api.apiframe.ai/v2/videos/generate with model set to hailuo-03.
- Step6: Capture the returned jobId and either poll the job endpoint or provide a webhook_url.
- Step7: Retrieve the completed video result when the job status is COMPLETED.