get__credits_rates
TypeScript Client Library
public getCreditsRates = async (): Promise<GetCreditsRatesResponse> => {
return this.makeRequest<GetCreditsRatesResponse>('credits/rates', 'GET', null);
};Code Samples
curl -X GET https://backend.flashback.tech/credits/rates \
-H 'Accept: application/json'GET https://backend.flashback.tech/credits/rates HTTP/1.1
Host: backend.flashback.tech
Accept: application/jsonfetch('https://backend.flashback.tech/credits/rates', {
method: 'GET',
headers: { 'Accept': 'application/json' }
})
.then(res => res.json())
.then(body => console.log(body));import requests
r = requests.get('https://backend.flashback.tech/credits/rates', headers={'Accept': 'application/json'})
print(r.json()){
"success": true,
"data": [
{
"id": "rate-public-egress",
"type": "Public Node",
"typeCode": "PUBLIC_NODE",
"concept": "Per GB Egress",
"conceptCode": "PER_GB_EGRESS",
"unit": "GB",
"rate": 10
},
{
"id": "rate-private-egress",
"type": "Private Node",
"typeCode": "PRIVATE_NODE",
"concept": "Per GB Egress",
"conceptCode": "PER_GB_EGRESS",
"unit": "GB",
"rate": 1
},
{
"id": "rate-public-tokens",
"type": "Public Node",
"typeCode": "PUBLIC_NODE",
"concept": "Per 1M LLM Tokens",
"conceptCode": "PER_1M_TOKENS",
"unit": "1M tokens",
"rate": 1000
},
{
"id": "rate-private-tokens",
"type": "Private Node",
"typeCode": "PRIVATE_NODE",
"concept": "Per 1M LLM Tokens",
"conceptCode": "PER_1M_TOKENS",
"unit": "1M tokens",
"rate": 5
}
]
}Responses
Status
Meaning
Description
Schema
Response Schema (200)
Name
Type
Required
Description
Security
Notes
Last updated
Was this helpful?