curl --request GET \
--url https://api.solaraai.com/api/v1/runs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/runs/{id}"
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/runs/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"attempt": 123,
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"wake_at": "2023-11-07T05:31:56Z",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"failed_step": "<string>",
"failure_reason": "no_speech",
"post_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"
}Get a run
Solara AI API: One run of a video’s pipeline: its state and timing.
Permission: Read (read).
curl --request GET \
--url https://api.solaraai.com/api/v1/runs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/runs/{id}"
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/runs/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"attempt": 123,
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"wake_at": "2023-11-07T05:31:56Z",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"failed_step": "<string>",
"failure_reason": "no_speech",
"post_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
Why it failed, as a code the app words itself — no_speech: nobody could be heard talking; no_audio: the video has no sound track; auto_edit_no_usable_files: none of an auto edit's files could be opened; auto_edit_failed: the AI could not finish an auto edit (try again); auto_edit_brief_refused: we can't make this auto edit from its brief (say nothing of why, offer no retry). Present only when state is failed and the failure has a class a customer can be told; absent otherwise. Codes are added over time: read an unknown one as absent; a post's run (post_id) may also read plan_ended (the workspace's plan ended before its time), export_failed (the version it waited for did not finish) or account_paused (the account was paused at its time)
no_speech, no_audio, auto_edit_no_usable_files, auto_edit_failed, auto_edit_brief_refused, plan_ended, export_failed, account_paused