Get the edit
curl --request GET \
--url https://api.solaraai.com/api/v1/projects/{id}/plan \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/plan"
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}/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"built_rev": 123,
"doc_hash": "<string>",
"media": {
"duration_ms": 123,
"poster_url": "<string>",
"source_ms": 123,
"timeline": {
"duration_ms": 123,
"filmstrip": {
"columns": 123,
"count": 123,
"interval_ms": 123,
"rows": 123,
"sheet_urls": [
"<string>"
],
"tile_height": 123,
"tile_width": 123
},
"peaks": {
"bin_ms": 123,
"levels": 123,
"url": "<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
},
"state": "<string>",
"style": {
"label": "<string>",
"caption_label": "<string>",
"cut_style": "<string>",
"fallback_from": "<string>"
},
"built_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
},
"language": "<string>",
"recommended": {
"auto_trim": true,
"accent_color": "<string>",
"intensity": "<string>"
},
"retimable": true,
"retimed_rev": 123,
"spoken_language": "he",
"stale_edits": {
"count": 123,
"items": [
{
"id": "<string>",
"lane": "story",
"reason": "missing"
}
]
},
"trim": {
"removed_ms": 123,
"fillers": 123,
"pause_ms": 123,
"pauses": 123,
"trimmable_by_pause": {},
"trimmable_ms": 123
},
"unapplied_rev": 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"
}Editing
Get the edit
Solara AI API: The edit’s current revision and settings. Send its revision back as If-Match when you change it.
Permission: Read (read).
GET
/
api
/
v1
/
projects
/
{id}
/
plan
Get the edit
curl --request GET \
--url https://api.solaraai.com/api/v1/projects/{id}/plan \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/plan"
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}/plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"built_rev": 123,
"doc_hash": "<string>",
"media": {
"duration_ms": 123,
"poster_url": "<string>",
"source_ms": 123,
"timeline": {
"duration_ms": 123,
"filmstrip": {
"columns": 123,
"count": 123,
"interval_ms": 123,
"rows": 123,
"sheet_urls": [
"<string>"
],
"tile_height": 123,
"tile_width": 123
},
"peaks": {
"bin_ms": 123,
"levels": 123,
"url": "<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
},
"state": "<string>",
"style": {
"label": "<string>",
"caption_label": "<string>",
"cut_style": "<string>",
"fallback_from": "<string>"
},
"built_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
},
"language": "<string>",
"recommended": {
"auto_trim": true,
"accent_color": "<string>",
"intensity": "<string>"
},
"retimable": true,
"retimed_rev": 123,
"spoken_language": "he",
"stale_edits": {
"count": 123,
"items": [
{
"id": "<string>",
"lane": "story",
"reason": "missing"
}
]
},
"trim": {
"removed_ms": 123,
"fillers": 123,
"pause_ms": 123,
"pauses": 123,
"trimmable_by_pause": {},
"trimmable_ms": 123
},
"unapplied_rev": 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
Response
OK