curl --request POST \
--url https://api.solaraai.com/api/v1/projects/{id}/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"rev": 3
}'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/export"
payload = { "rev": 3 }
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({rev: 3})
};
fetch('https://api.solaraai.com/api/v1/projects/{id}/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"doc_hash": "<string>",
"rev": 123,
"state": "<string>",
"ai_clips_pending": 123
}{
"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"
}Export a video
Solara AI API: Renders the final MP4 of a revision. It uses one of the plan’s videos for the month, so export only after the person approved the edit. An API key must send an Idempotency-Key: the same key never spends twice.
Permission: Export (export).
curl --request POST \
--url https://api.solaraai.com/api/v1/projects/{id}/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"rev": 3
}'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/export"
payload = { "rev": 3 }
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({rev: 3})
};
fetch('https://api.solaraai.com/api/v1/projects/{id}/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"doc_hash": "<string>",
"rev": 123,
"state": "<string>",
"ai_clips_pending": 123
}{
"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
The revision on screen: the rev the last update-project-plan returned. A picture block of it still waiting for its picture (the placeholder) is waited for, at most about 75 s, and drawn with the picture that landed; 409 picture_pending when none landed (its fill failed, found nothing or was never asked), and nothing renders or is spent
x >= 1Response
Accepted
AI clips the edit asked for still being made: the render waits for them, at most 90 s, then renders with those that landed (get-project's clips_waiting while it does). Absent when none, and for an export that re-plans (a director setting changed: its new edit's clips are known once it is made). A re-time (only the pauses changed, also state processing) keeps the edit's shots and counts their clips