Upload from a link
curl --request POST \
--url https://api.solaraai.com/api/v1/projects/uploads/from-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://drive.google.com/file/d/<file id>/view?usp=sharing"
}
'import requests
url = "https://api.solaraai.com/api/v1/projects/uploads/from-url"
payload = { "url": "https://drive.google.com/file/d/<file id>/view?usp=sharing" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://drive.google.com/file/d/<file id>/view?usp=sharing'})
};
fetch('https://api.solaraai.com/api/v1/projects/uploads/from-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"content_type": "video/mp4",
"size_bytes": 123,
"status": "fetching",
"upload_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"code": "invalid_credentials",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Upload
Upload from a link
Solara AI API: Solara fetches the video from a public link: a Google Drive or Dropbox share link, or a file on a website (mp4, mov or webm, at most 2 GiB). A link that is private, not a video, or too large is refused with a code that says why. Poll Get an upload until it is ready.
Permission: Edit (edit).
POST
/
api
/
v1
/
projects
/
uploads
/
from-url
Upload from a link
curl --request POST \
--url https://api.solaraai.com/api/v1/projects/uploads/from-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://drive.google.com/file/d/<file id>/view?usp=sharing"
}
'import requests
url = "https://api.solaraai.com/api/v1/projects/uploads/from-url"
payload = { "url": "https://drive.google.com/file/d/<file id>/view?usp=sharing" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://drive.google.com/file/d/<file id>/view?usp=sharing'})
};
fetch('https://api.solaraai.com/api/v1/projects/uploads/from-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"content_type": "video/mp4",
"size_bytes": 123,
"status": "fetching",
"upload_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"code": "invalid_credentials",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Authorizations
Headers
Body
application/json
Response
Created