List styles
curl --request GET \
--url https://api.solaraai.com/api/v1/styles \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/styles"
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/styles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"caption_styles": [
{
"id": "<string>",
"name": "<string>"
}
],
"default_caption_style": "<string>",
"styles": [
{
"accent_color": "<string>",
"background_color": "<string>",
"description": "<string>",
"id": "<string>",
"name": "<string>",
"palettes": [
{
"background": "<string>",
"color": "<string>",
"id": "<string>",
"name": "<string>"
}
],
"allowance": {
"left": 123,
"limit": 123,
"plan": "free",
"resets_at": "2023-11-07T05:31:56Z",
"used": 123
},
"caption_style": "<string>",
"caption_styles": [
"<string>"
],
"custom_color": true,
"max_video_seconds": 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"
}Styles
List styles
Solara AI API: The styles and caption styles a video can be made in. Pass their id, never the name.
Permission: Read (read).
GET
/
api
/
v1
/
styles
List styles
curl --request GET \
--url https://api.solaraai.com/api/v1/styles \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/styles"
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/styles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"caption_styles": [
{
"id": "<string>",
"name": "<string>"
}
],
"default_caption_style": "<string>",
"styles": [
{
"accent_color": "<string>",
"background_color": "<string>",
"description": "<string>",
"id": "<string>",
"name": "<string>",
"palettes": [
{
"background": "<string>",
"color": "<string>",
"id": "<string>",
"name": "<string>"
}
],
"allowance": {
"left": 123,
"limit": 123,
"plan": "free",
"resets_at": "2023-11-07T05:31:56Z",
"used": 123
},
"caption_style": "<string>",
"caption_styles": [
"<string>"
],
"custom_color": true,
"max_video_seconds": 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"
}