Price a request
curl --request POST \
--url https://studio.superscore.ai/api/v1/quotes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"route": "/generations",
"body": {
"type": "video",
"prompt": "A slow push in",
"duration": 5
}
}
'import requests
url = "https://studio.superscore.ai/api/v1/quotes"
payload = {
"route": "/generations",
"body": {
"type": "video",
"prompt": "A slow push in",
"duration": 5
}
}
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({
route: '/generations',
body: JSON.stringify({type: 'video', prompt: 'A slow push in', duration: 5})
})
};
fetch('https://studio.superscore.ai/api/v1/quotes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "quote",
"route": "<string>",
"model": "<string>",
"currency": "USD",
"expected_usd": 123,
"max_usd": 123,
"superscore_fee_usd": 123,
"rate_version": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"field": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"field": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"field": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"field": "<string>"
}
}API Reference
Price a request
Validates a request exactly as its route would and prices it. Send the returned id as Quote-Id within 10 minutes to bind that price. Generates nothing and holds no money.
POST
/
quotes
Price a request
curl --request POST \
--url https://studio.superscore.ai/api/v1/quotes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"route": "/generations",
"body": {
"type": "video",
"prompt": "A slow push in",
"duration": 5
}
}
'import requests
url = "https://studio.superscore.ai/api/v1/quotes"
payload = {
"route": "/generations",
"body": {
"type": "video",
"prompt": "A slow push in",
"duration": 5
}
}
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({
route: '/generations',
body: JSON.stringify({type: 'video', prompt: 'A slow push in', duration: 5})
})
};
fetch('https://studio.superscore.ai/api/v1/quotes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "quote",
"route": "<string>",
"model": "<string>",
"currency": "USD",
"expected_usd": 123,
"max_usd": 123,
"superscore_fee_usd": 123,
"rate_version": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"field": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"field": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"field": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"field": "<string>"
}
}Authorizations
Body
application/json