Get a generation
curl --request GET \
--url https://studio.superscore.ai/api/v1/generations/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://studio.superscore.ai/api/v1/generations/{id}"
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/generations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"outputs": [
{
"index": 123,
"url": "<string>",
"content_type": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
],
"billing": {
"state": "held",
"currency": "USD",
"expected_usd": 123,
"max_usd": 123,
"charged_usd": 123,
"provider_credits": 123,
"superscore_fee_usd": 123,
"rate_version": "<string>",
"quote_id": "<string>"
},
"object": "generation",
"type": "image",
"model": "<string>",
"route": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"outputs": [
{
"index": 123,
"url": "<string>",
"content_type": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
],
"billing": {
"state": "held",
"currency": "USD",
"expected_usd": 123,
"max_usd": 123,
"charged_usd": 123,
"provider_credits": 123,
"superscore_fee_usd": 123,
"rate_version": "<string>",
"quote_id": "<string>"
},
"object": "generation",
"type": "image",
"model": "<string>",
"route": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"error": {
"code": "<string>",
"message": "<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
Get a generation
Where a generation stands. Once it succeeds, each output has a private download link that lasts an hour; read the generation again for a fresh one. Reads are never charged.
GET
/
generations
/
{id}
Get a generation
curl --request GET \
--url https://studio.superscore.ai/api/v1/generations/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://studio.superscore.ai/api/v1/generations/{id}"
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/generations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"outputs": [
{
"index": 123,
"url": "<string>",
"content_type": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
],
"billing": {
"state": "held",
"currency": "USD",
"expected_usd": 123,
"max_usd": 123,
"charged_usd": 123,
"provider_credits": 123,
"superscore_fee_usd": 123,
"rate_version": "<string>",
"quote_id": "<string>"
},
"object": "generation",
"type": "image",
"model": "<string>",
"route": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"outputs": [
{
"index": 123,
"url": "<string>",
"content_type": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
],
"billing": {
"state": "held",
"currency": "USD",
"expected_usd": 123,
"max_usd": 123,
"charged_usd": 123,
"provider_credits": 123,
"superscore_fee_usd": 123,
"rate_version": "<string>",
"quote_id": "<string>"
},
"object": "generation",
"type": "image",
"model": "<string>",
"route": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"error": {
"code": "<string>",
"message": "<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
Response
Finished: succeeded or failed.