Create a video
curl --request POST \
--url https://api.solaraai.com/api/v1/projects \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"upload_id": "<upload_id>",
"source_duration_ms": 31500,
"settings": {
"edit_style": "<style id from List styles>",
"prompt": "A 30-second tip for new runners"
}
}
'import requests
url = "https://api.solaraai.com/api/v1/projects"
payload = {
"upload_id": "<upload_id>",
"source_duration_ms": 31500,
"settings": {
"edit_style": "<style id from List styles>",
"prompt": "A 30-second tip for new runners"
}
}
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>',
source_duration_ms: 31500,
settings: {
edit_style: '<style id from List styles>',
prompt: 'A 30-second tip for new runners'
}
})
};
fetch('https://api.solaraai.com/api/v1/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "<string>",
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"watermark": true,
"ai_clips": {
"per_day": 123,
"per_month": 123,
"used_month": 123,
"used_today": 123,
"plan_required": true
}
}{
"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"
}Videos
Create a video
Solara AI API: Makes a video from a completed upload in the chosen style. Solara cuts, captions and styles it in a few minutes; follow it with Get a video. Send an Idempotency-Key so a retry never makes a second video.
Permission: Edit (edit).
POST
/
api
/
v1
/
projects
Create a video
curl --request POST \
--url https://api.solaraai.com/api/v1/projects \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"upload_id": "<upload_id>",
"source_duration_ms": 31500,
"settings": {
"edit_style": "<style id from List styles>",
"prompt": "A 30-second tip for new runners"
}
}
'import requests
url = "https://api.solaraai.com/api/v1/projects"
payload = {
"upload_id": "<upload_id>",
"source_duration_ms": 31500,
"settings": {
"edit_style": "<style id from List styles>",
"prompt": "A 30-second tip for new runners"
}
}
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>',
source_duration_ms: 31500,
settings: {
edit_style: '<style id from List styles>',
prompt: 'A 30-second tip for new runners'
}
})
};
fetch('https://api.solaraai.com/api/v1/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "<string>",
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"watermark": true,
"ai_clips": {
"per_day": 123,
"per_month": 123,
"used_month": 123,
"used_today": 123,
"plan_required": true
}
}{
"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