Skip to main content
POST
/
create_video
/
bulk
Create Videos
curl --request POST \
  --url https://api.gan.ai/create_video/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {}
]'
[
  {
    "video_url": "<string>",
    "audio_url": "<string>",
    "inference_id": "<string>",
    "project_id": "<string>",
    "unique_id": "<string>",
    "smart_url": "<string>",
    "permalink": "<string>",
    "thumbnail_url": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

project_id
string
required

To create the videos, we need the project_id, which is the unique identifier for a user's project in our systems.

Body

application/json

Response

Successful Response

video_url
string
required

S3 url for the video file.

audio_url
string
required

S3 url for the audio file.

inference_id
string
required

inference_id is a unique identifer to map the generated videos with the users.

project_id
string
required

project_id is a unique identifier for a project created by the user. In a project, multiple inference videos can be generated.

unique_id
string
required

This corresponds to the unique_id sent in the request body. It can be used by the user's to uniquely identify the generation status for a video with the particular tags.

smart_url
string
required

These are the links to videos hosted on our landing page.

Permalinks are links to the generated inferences that do not expire.

thumbnail_url
string
required

This corresponds to the url for the thumbnail of the generated video.