Get a revision
curl --request GET \
--url https://api.solaraai.com/api/v1/projects/{id}/revisions/{rev} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/revisions/{rev}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.solaraai.com/api/v1/projects/{id}/revisions/{rev}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"built_rev": 123,
"client": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"doc_hash": "<string>",
"ops": [
{
"type": "<string>",
"itemId": "<string>"
}
],
"rev": 123,
"settings": {
"edit_style": "<string>",
"accent_color": "<string>",
"added": [
{
"id": "<string>",
"kind": "sfx",
"assetId": "<string>",
"crop": {
"h": 0.525,
"w": 0.525,
"x": 0.5,
"y": 0.5
},
"cue": "<string>",
"endMs": 123,
"fit": "fill",
"flipX": true,
"flipY": true,
"frame": {
"scale": 1.6,
"x": 0.5,
"y": 0.5
},
"offsetMs": 123,
"opacity": 0.5,
"rotation": 0,
"shadow": true,
"speed": 2.125,
"startMs": 123,
"volume": 0.5,
"wordId": "<string>"
}
],
"aspect": "9:16",
"audio_mode": "original",
"auto_trim": true,
"background_music": {
"enabled": true,
"generation_id": "<string>",
"mood": "auto",
"provider": "elevenlabs",
"volume_db": -3
},
"broll": true,
"caption_preset": "<string>",
"caption_words": [
{
"id": "<string>",
"was": "<string>",
"added": [
{
"text": "<string>",
"color": "<string>",
"emphasis": true,
"lineBreak": true,
"pageBreak": true
}
],
"color": "<string>",
"emoji": "<string>",
"emphasis": true,
"highlight": "primary",
"lineBreak": true,
"pageBreak": true,
"removed": true,
"text": "<string>",
"unsure": true
}
],
"captions": {
"activeWord": "color",
"animation": "none",
"boxColor": "<string>",
"emoji": "off",
"emojiMotion": "animated",
"fontFamily": "oswald",
"fontSize": 90,
"fontWeight": 500,
"hidePunctuation": true,
"highlightColor": "<string>",
"keywordHighlight": true,
"linesPerPage": 2,
"positionY": 0.5,
"shadowColor": "<string>",
"speed": 2.125,
"strokeColor": "<string>",
"textCase": "none",
"textColor": "<string>",
"wordsPerPage": 6
},
"clip_model": "gemini-omni-flash",
"cut_style": "<string>",
"footage": {
"clips": [
{
"endMs": 1800000,
"startMs": 1800000
}
]
},
"intensity": "auto",
"items": {},
"lanes": {
"captions": {
"look": {
"posX": 0.5,
"posY": 0.5,
"rotation": 0,
"scale": 1.7,
"size": "S"
}
},
"sfx": {
"items": [
{
"cue": "<string>",
"id": "<string>",
"offsetMs": 123,
"atMs": 123,
"wordId": "<string>"
}
]
},
"zooms": {
"items": [
{
"endMs": 123,
"id": "<string>",
"move": "zoom-fast",
"startMs": 123,
"curve": "instant",
"level": "medium",
"scale": 123
}
]
}
},
"look": {
"id": "<string>",
"strength": 0.5
},
"music": {
"assetId": "<string>",
"gainDb": 123,
"startMs": 123,
"duck": true,
"duckDb": 6.5,
"durationMs": 123,
"fadeInMs": 123,
"fadeOutMs": 123,
"generation": {
"createdAt": "2023-11-07T05:31:56Z",
"generationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model": "<string>",
"provider": "<string>",
"brief": "<string>"
},
"loudnessLufs": -35,
"rightsConfirmedAt": "2023-11-07T05:31:56Z",
"source": "generated",
"trimStartMs": 123
},
"palette": "<string>",
"pause_ms": 275,
"prompt": "<string>",
"scene_edits": {
"autoScenes": true,
"edits": [
{
"id": "<string>",
"was": "<string>",
"show": "scene",
"transition": "<string>",
"use": "<string>"
}
],
"soundEffects": true,
"voice": true,
"zoomCurve": "instant",
"zoomLevel": "none"
},
"schema_version": 123,
"speaker_poster": true,
"speed": 2.125,
"voice_gain_db": -3
},
"agent_name": "<string>",
"restored_from": 123,
"run_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"
}Editing
Get a revision
Solara AI API: One saved revision with its document.
Permission: Read (read).
GET
/
api
/
v1
/
projects
/
{id}
/
revisions
/
{rev}
Get a revision
curl --request GET \
--url https://api.solaraai.com/api/v1/projects/{id}/revisions/{rev} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/revisions/{rev}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.solaraai.com/api/v1/projects/{id}/revisions/{rev}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"built_rev": 123,
"client": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"doc_hash": "<string>",
"ops": [
{
"type": "<string>",
"itemId": "<string>"
}
],
"rev": 123,
"settings": {
"edit_style": "<string>",
"accent_color": "<string>",
"added": [
{
"id": "<string>",
"kind": "sfx",
"assetId": "<string>",
"crop": {
"h": 0.525,
"w": 0.525,
"x": 0.5,
"y": 0.5
},
"cue": "<string>",
"endMs": 123,
"fit": "fill",
"flipX": true,
"flipY": true,
"frame": {
"scale": 1.6,
"x": 0.5,
"y": 0.5
},
"offsetMs": 123,
"opacity": 0.5,
"rotation": 0,
"shadow": true,
"speed": 2.125,
"startMs": 123,
"volume": 0.5,
"wordId": "<string>"
}
],
"aspect": "9:16",
"audio_mode": "original",
"auto_trim": true,
"background_music": {
"enabled": true,
"generation_id": "<string>",
"mood": "auto",
"provider": "elevenlabs",
"volume_db": -3
},
"broll": true,
"caption_preset": "<string>",
"caption_words": [
{
"id": "<string>",
"was": "<string>",
"added": [
{
"text": "<string>",
"color": "<string>",
"emphasis": true,
"lineBreak": true,
"pageBreak": true
}
],
"color": "<string>",
"emoji": "<string>",
"emphasis": true,
"highlight": "primary",
"lineBreak": true,
"pageBreak": true,
"removed": true,
"text": "<string>",
"unsure": true
}
],
"captions": {
"activeWord": "color",
"animation": "none",
"boxColor": "<string>",
"emoji": "off",
"emojiMotion": "animated",
"fontFamily": "oswald",
"fontSize": 90,
"fontWeight": 500,
"hidePunctuation": true,
"highlightColor": "<string>",
"keywordHighlight": true,
"linesPerPage": 2,
"positionY": 0.5,
"shadowColor": "<string>",
"speed": 2.125,
"strokeColor": "<string>",
"textCase": "none",
"textColor": "<string>",
"wordsPerPage": 6
},
"clip_model": "gemini-omni-flash",
"cut_style": "<string>",
"footage": {
"clips": [
{
"endMs": 1800000,
"startMs": 1800000
}
]
},
"intensity": "auto",
"items": {},
"lanes": {
"captions": {
"look": {
"posX": 0.5,
"posY": 0.5,
"rotation": 0,
"scale": 1.7,
"size": "S"
}
},
"sfx": {
"items": [
{
"cue": "<string>",
"id": "<string>",
"offsetMs": 123,
"atMs": 123,
"wordId": "<string>"
}
]
},
"zooms": {
"items": [
{
"endMs": 123,
"id": "<string>",
"move": "zoom-fast",
"startMs": 123,
"curve": "instant",
"level": "medium",
"scale": 123
}
]
}
},
"look": {
"id": "<string>",
"strength": 0.5
},
"music": {
"assetId": "<string>",
"gainDb": 123,
"startMs": 123,
"duck": true,
"duckDb": 6.5,
"durationMs": 123,
"fadeInMs": 123,
"fadeOutMs": 123,
"generation": {
"createdAt": "2023-11-07T05:31:56Z",
"generationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model": "<string>",
"provider": "<string>",
"brief": "<string>"
},
"loudnessLufs": -35,
"rightsConfirmedAt": "2023-11-07T05:31:56Z",
"source": "generated",
"trimStartMs": 123
},
"palette": "<string>",
"pause_ms": 275,
"prompt": "<string>",
"scene_edits": {
"autoScenes": true,
"edits": [
{
"id": "<string>",
"was": "<string>",
"show": "scene",
"transition": "<string>",
"use": "<string>"
}
],
"soundEffects": true,
"voice": true,
"zoomCurve": "instant",
"zoomLevel": "none"
},
"schema_version": 123,
"speaker_poster": true,
"speed": 2.125,
"voice_gain_db": -3
},
"agent_name": "<string>",
"restored_from": 123,
"run_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
Response
OK