List models
curl --request GET \
--url https://studio.superscore.ai/api/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://studio.superscore.ai/api/v1/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.superscore.ai/api/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"rate_version": "<string>",
"currency": "USD",
"superscore_fee_usd": 123,
"data": [
{
"id": "<string>",
"type": "image",
"name": "<string>",
"publisher": "<string>",
"operator": "<string>",
"routes": [
"<string>"
],
"unit": "<string>",
"rates": [
{
"tier": "<string>",
"usd": 123
}
],
"parameters": [
{
"name": "<string>",
"type": "string",
"required": true,
"description": "<string>",
"values": [
"<string>"
],
"range": [
123
],
"default": "<string>"
}
],
"studio_fields": [
"<string>"
],
"studio_settings": {},
"docs": "<string>",
"provider_route": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"field": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"field": "<string>"
}
}API Reference
List models
Each enabled model with its routes, native parameters, Studio’s own settings and rates. Generates nothing.
GET
/
models
List models
curl --request GET \
--url https://studio.superscore.ai/api/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://studio.superscore.ai/api/v1/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.superscore.ai/api/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"rate_version": "<string>",
"currency": "USD",
"superscore_fee_usd": 123,
"data": [
{
"id": "<string>",
"type": "image",
"name": "<string>",
"publisher": "<string>",
"operator": "<string>",
"routes": [
"<string>"
],
"unit": "<string>",
"rates": [
{
"tier": "<string>",
"usd": 123
}
],
"parameters": [
{
"name": "<string>",
"type": "string",
"required": true,
"description": "<string>",
"values": [
"<string>"
],
"range": [
123
],
"default": "<string>"
}
],
"studio_fields": [
"<string>"
],
"studio_settings": {},
"docs": "<string>",
"provider_route": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"field": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"field": "<string>"
}
}