# 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

```typescript
public getCreditsRates = async (): Promise<GetCreditsRatesResponse> => {
  return this.makeRequest<GetCreditsRatesResponse>('credits/rates', 'GET', null);
};
```

#### Code Samples

{% tabs %}
{% tab title="Shell" %}

```shell
curl -X GET https://backend.flashback.tech/credits/rates \
  -H 'Accept: application/json'
```

{% endtab %}

{% tab title="HTTP" %}

```http
GET https://backend.flashback.tech/credits/rates HTTP/1.1
Host: backend.flashback.tech
Accept: application/json
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
fetch('https://backend.flashback.tech/credits/rates', {
  method: 'GET',
  headers: { 'Accept': 'application/json' }
})
  .then(res => res.json())
  .then(body => console.log(body));
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

r = requests.get('https://backend.flashback.tech/credits/rates', headers={'Accept': 'application/json'})
print(r.json())
```

{% endtab %}
{% endtabs %}

> Example responses

> 200 Response

```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
    }
  ]
}
```

> 500 Response

```json
{
  "success": false,
  "error_code": "INTERNAL_ERROR",
  "message": "Failed to retrieve credit rates"
}
```

#### 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flashback.tech/support-reference/platform-api-reference/credits/get__credits_rates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
