githubEdit

get__credits_rates

GET /credits/rates

List Credit Consumption Rates

Returns the current credit consumption rates used for storage egress and AI token usage. Rates are grouped by node type (e.g. Public Node, Private Node) and by concept (e.g. Per GB Egress, Per 1M LLM Tokens). No authentication is required; this is reference data for display and for understanding how credits are deducted.

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'

Example responses

200 Response

{
  "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
    }
  ]
}

500 Response

Responses

Status
Meaning
Description
Schema

200

OK

List of credit consumption rates

Inline

500

Internal Server Error

Server error

Inline

Response Schema (200)

Name
Type
Required
Description

» success

boolean

false

Whether the request succeeded

» data

array

false

List of rates

»» id

string

false

Rate ID

»» type

string

false

Node type display name (e.g. Public Node)

»» typeCode

string

false

Node type code (e.g. PUBLIC_NODE)

»» concept

string

false

Concept display name (e.g. Per GB Egress)

»» conceptCode

string

false

Concept code (e.g. PER_GB_EGRESS)

»» unit

string | null

false

Unit for display (e.g. GB, 1M tokens)

»» rate

number

false

Credits per unit (e.g. 10 credits per GB)

» error_code

string

false

Set on error

» message

string

false

Error or status message

Security

  • None: This endpoint does not require authentication.

Notes

  • Storage egress is billed per GB (upl_bytes + dwl_bytes). AI usage is billed per 1M tokens (llmTokensIn + llmTokensOut + tokensOut).

  • Public vs private node is determined by whether the node is org-owned; rates are typically higher for public nodes.

Last updated

Was this helpful?