POST
/
video
/
base64_to_url
Convert base64 video to URL
curl --request POST \
  --url https://modelslab.com/api/v6/video/base64_to_url \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "init_obj": "<string>"
}'
{
  "status": "success",
  "id": 123,
  "output": [
    "<string>"
  ]
}

Request

Make a POST request to below endpoint and pass the required parameters as a request body.
curl
--request POST 'https://modelslab.com/api/v6/video/base64_to_url' \

Body

json
{   
    "key":"",
    "init_obj":"data:video/mp4;base64,<base64>",
}

Body

application/json
key
string
required

Your API Key used for request authorization

init_obj
string
required

Base64 encoded video data with data URI format (data:video/mp4;base64,)

Response

Base64 conversion response

status
enum<string>

Status of the conversion

Available options:
success,
error
id
integer

Unique identifier for the conversion

output
string<uri>[]

Array of converted video URLs