Skip to content

API > Core Products API > Video

How to Use the Video API Endpoint

To get started, select the generation endpoint that matches your preferred AI model (for example, FaceSwap v4 or v5).


Run the Generation Endpoint

  • Begin by sending your request to the respective generation/run endpoint.
  • Fill in the required parameters and your API key.

Retrieve the Image ID (ID)

  • After your request is processed, the API will return an ID — this unique identifier references your generated image.

Check Image Status

  • Use the returned ID with the appropriate status endpoint to track your image generation progress.
  • Make sure to use the correct status endpoint for the model you selected (e.g., /v2/status).

Receive the Generated Image

  • Once processing is complete, the status endpoint will return your base64-encoded image.
  • Decode and store it locally or display it directly in your application.

Generate the Video

  • After you’ve received your image, continue by calling the /v1/run/image-to-video endpoint.
  • Provide your generated image, desired prompt, and other parameters to create your animated video output.