Post a finished video as it is
curl --request POST \
--url https://api.solaraai.com/api/v1/videos/from-upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"upload_id": "<upload_id>"
}
'import requests
url = "https://api.solaraai.com/api/v1/videos/from-upload"
payload = { "upload_id": "<upload_id>" }
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({upload_id: '<upload_id>'})
};
fetch('https://api.solaraai.com/api/v1/videos/from-upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"state": "<string>",
"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"
}Posting
Post a finished video as it is
Solara AI API: Makes a completed upload of the person’s own finished video a video in Ready to publish, with nothing edited, rendered or exported: it spends nothing and posts nothing. Then Ask to post a video, with no export. One upload makes one video: a second call answers 409.
Permission: Edit (edit).
POST
/
api
/
v1
/
videos
/
from-upload
Post a finished video as it is
curl --request POST \
--url https://api.solaraai.com/api/v1/videos/from-upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"upload_id": "<upload_id>"
}
'import requests
url = "https://api.solaraai.com/api/v1/videos/from-upload"
payload = { "upload_id": "<upload_id>" }
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({upload_id: '<upload_id>'})
};
fetch('https://api.solaraai.com/api/v1/videos/from-upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"state": "<string>",
"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