Complete a photo or clip
curl --request POST \
--url https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}/complete"
payload = {}
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({})
};
fetch('https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"byte_size": 123,
"content_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "image",
"purpose": "shot",
"source": "upload",
"state": "uploading",
"description": "<string>",
"duration_ms": 123,
"failure": "<string>",
"file_name": "<string>",
"has_audio": true,
"height": 123,
"sort_order": 123,
"tags": [
"<string>"
],
"url": "<string>",
"width": 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"
}Footage
Complete a photo or clip
Solara AI API: Assembles the item’s parts and reads its first bytes: a file that is not a photo or a clip is deleted and the item fails (422 media_not_supported). The item is then pending until Solara has described it: follow it with List footage.
Permission: Edit (edit).
POST
/
api
/
v1
/
projects
/
{id}
/
media
/
{mediaId}
/
complete
Complete a photo or clip
curl --request POST \
--url https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}/complete"
payload = {}
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({})
};
fetch('https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"byte_size": 123,
"content_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "image",
"purpose": "shot",
"source": "upload",
"state": "uploading",
"description": "<string>",
"duration_ms": 123,
"failure": "<string>",
"file_name": "<string>",
"has_audio": true,
"height": 123,
"sort_order": 123,
"tags": [
"<string>"
],
"url": "<string>",
"width": 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
Body
application/json
Response
OK
shot: the video's own footage, which the AI places on the words that mention it; block: a clip dropped on the timeline into a picture block (never placed by the AI, never described); auto_edit: a file an auto edit cuts its reel from
Available options:
shot, block, auto_edit