POST
/
create_video
/
bulk
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
headerrequired

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 · object[]

The payload is a list of dictionaries, where all the parameters required for video generation have to provided along with a unique_id. Eg.

[
   {
   	"names": "Manash",
   	"unique_id": "abc123"
   },
   {
   	"names": "Manash2",
   	"unique_id": "cba321"
   }
]

In the example, we have used the tags: names and unique_id, depending on the case the individual query parameters would change.

Response

200 - application/json
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.

permalink
string
required

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.