Get usage
curl --request GET \
--url https://api.solaraai.com/api/v1/projects/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/projects/usage"
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/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"free_project_limit": 123,
"free_projects_used": 123,
"granted_exports_left": 123,
"paid": true,
"api_key_videos_per_day": 123,
"api_key_videos_today": 123,
"exports_left": 123,
"exports_limit": 123,
"exports_reset_at": "2023-11-07T05:31:56Z",
"exports_used": 123,
"free_export_video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"free_reexports_left": 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"
}Videos
Get usage
Solara AI API: Whether the workspace has a plan, the plan’s exports used and left this month, and this key’s new videos today.
Permission: Read (read).
GET
/
api
/
v1
/
projects
/
usage
Get usage
curl --request GET \
--url https://api.solaraai.com/api/v1/projects/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/projects/usage"
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/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"free_project_limit": 123,
"free_projects_used": 123,
"granted_exports_left": 123,
"paid": true,
"api_key_videos_per_day": 123,
"api_key_videos_today": 123,
"exports_left": 123,
"exports_limit": 123,
"exports_reset_at": "2023-11-07T05:31:56Z",
"exports_used": 123,
"free_export_video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"free_reexports_left": 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