> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /api/pricing — 已发布的定价目录

> 返回已发布的按模型与按 GPU 费率目录。币种按站点隔离：国际站为美元，中国站为人民币。

返回当前站点已发布的按模型与按 GPU 费率目录。费率以站点币种计（`.com` 为美元，`.cn` 为人民币）。公开接口，无需认证。

**方法：** `GET` **路径：** `/api/pricing` **认证：** 无

## 响应

<ResponseField name="models" type="object[]">
  <Expandable title="model">
    <ResponseField name="id" type="string">
      行标识。
    </ResponseField>

    <ResponseField name="slug" type="string">
      模型 slug。
    </ResponseField>

    <ResponseField name="unit" type="string">
      计费单位（例如 `per_million_tokens`）。
    </ResponseField>

    <ResponseField name="price" type="number">
      以 `currency` 计价的费率。
    </ResponseField>

    <ResponseField name="currency" type="string">
      `USD` 或 `CNY`。
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="gpus" type="object[]">
  <Expandable title="gpu">
    <ResponseField name="id" type="string">
      行标识。
    </ResponseField>

    <ResponseField name="name" type="string">
      GPU 标识（例如 `nvidia-t4`）。
    </ResponseField>

    <ResponseField name="hourly_price" type="number">
      每小时费率。
    </ResponseField>

    <ResponseField name="currency" type="string">
      `USD` 或 `CNY`。
    </ResponseField>
  </Expandable>
</ResponseField>

## 示例

```bash theme={null}
curl https://ariacompute.cn/api/pricing
```

```json theme={null}
{
  "models": [
    { "id": "pm_1", "slug": "gemma-4-e2b-it_q4", "unit": "per_million_tokens", "price": 0.0012, "currency": "CNY" }
  ],
  "gpus": [
    { "id": "pg_1", "name": "nvidia-t4", "hourly_price": 0.75, "currency": "CNY" }
  ]
}
```

<Note>
  管理员通过 `PUT /api/admin/billing/pricing/models` 与 `PUT /api/admin/billing/pricing/gpus` 管理目录。这些接口需要管理员角色，不在本参考范围内。
</Note>
