Add a photo or clip from a link
curl --request POST \
--url https://api.solaraai.com/api/v1/projects/{id}/media/from-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>"
}
'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/media/from-url"
payload = { "url": "<string>" }
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({url: '<string>'})
};
fetch('https://api.solaraai.com/api/v1/projects/{id}/media/from-url', 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
Add a photo or clip from a link
Solara AI API: Solara fetches one photo or clip from a public link (a Google Drive or Dropbox share link, or a file on a website) into a new item of the video. A folder link is refused (url_not_allowed): send each file’s link. At most 3 fetches at a time a workspace (1 without a plan, files up to 307 MB), then 429 url_fetches_busy. Follow it with List footage.
Permission: Edit (edit).
POST
/
api
/
v1
/
projects
/
{id}
/
media
/
from-url
Add a photo or clip from a link
curl --request POST \
--url https://api.solaraai.com/api/v1/projects/{id}/media/from-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>"
}
'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/media/from-url"
payload = { "url": "<string>" }
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({url: '<string>'})
};
fetch('https://api.solaraai.com/api/v1/projects/{id}/media/from-url', 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
Headers
Body
application/json
Response
Created
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