# Models and credits 端点：GET /models 和 GET /credits

> GET /api/v1/models 列出你的密钥可调用的模型 id；GET /api/v1/credits 返回剩余积分。包含参考、示例和 12 个开放权重模型 id。

- URL: https://llmwithcrypto.com/zh/docs/models/
- 最后更新: 2026-10-23
- 发布者: LLMwithCrypto (https://llmwithcrypto.com)

两个只读的小端点。一个列出你可以填入 `model` 字段的模型；另一个告诉你应用耗尽前还剩多少积分。两者都不收费。

**快速回答 — 如何在 LLMwithCrypto 上列出模型并查看积分？**

调用 `GET https://llmwithcrypto.com/api/v1/models` 获取模型 id 列表（OpenAI 格式），调用 `GET https://llmwithcrypto.com/api/v1/credits` 获取以美元计的剩余积分。两者都以 Bearer token 接收你的 API 密钥，且免费。截至 2026 年 10 月 23 日，**LLMwithCrypto** 提供 12 个开放权重模型，从 DeepSeek V4 Pro 到 Mistral Small 4。

## 列出模型

`GET /api/v1/models`

返回你的密钥可调用的模型，采用 OpenAI 列表格式。`id` 是要填入 chat completion 的 `model` 字段的值。示例展示前四条；`created` 仅作示意。

认证：API 密钥放在 `Authorization: Bearer API_KEY` header 中。

**响应** `200`

```json
{
  "object": "list",
  "data": [
    {
      "id": "deepseek-v4-pro",
      "object": "model",
      "created": 1792742400,
      "owned_by": "deepseek"
    },
    {
      "id": "deepseek-v4.1-flash",
      "object": "model",
      "created": 1792742400,
      "owned_by": "deepseek"
    },
    {
      "id": "deepseek-r1",
      "object": "model",
      "created": 1792742400,
      "owned_by": "deepseek"
    },
    {
      "id": "qwen3.5-397b-a17b",
      "object": "model",
      "created": 1792742400,
      "owned_by": "qwen"
    }
  ]
}
```

*curl*

```bash
curl -s "https://llmwithcrypto.com/api/v1/models" \
  -H "Authorization: Bearer $LLMWITHCRYPTO_API_KEY"
```

*Python*

```python
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://llmwithcrypto.com/api/v1",
    api_key=os.environ["LLMWITHCRYPTO_API_KEY"],
)
for model in client.models.list():
    print(model.id, model.owned_by)
```

*Node.js*

```javascript
import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://llmwithcrypto.com/api/v1',
  apiKey: process.env.LLMWITHCRYPTO_API_KEY,
});
for await (const model of client.models.list()) console.log(model.id, model.owned_by);
```

## 查看剩余积分

`GET /api/v1/credits`

返回你账户中以美元计的积分，以十进制字符串表示以免丢失精度，以及最后更新时间。调用它不收费。数字仅作示意。

认证：API 密钥放在 `Authorization: Bearer API_KEY` header 中。

**响应** `200`

```json
{
  "object": "credits",
  "balance_usd": "41.2731",
  "currency": "USD",
  "updated_at": "2026-10-23T09:41:07Z"
}
```

*curl*

```bash
curl -s "https://llmwithcrypto.com/api/v1/credits" \
  -H "Authorization: Bearer $LLMWITHCRYPTO_API_KEY"
```

*Python*

```python
import os

import requests

resp = requests.get(
    "https://llmwithcrypto.com/api/v1/credits",
    headers={"Authorization": "Bearer " + os.environ["LLMWITHCRYPTO_API_KEY"]},
    timeout=30,
)
resp.raise_for_status()
print("credit left:", resp.json()["balance_usd"], "USD")
```

*Node.js*

```javascript
const res = await fetch('https://llmwithcrypto.com/api/v1/credits', {
  headers: { Authorization: `Bearer ${process.env.LLMWITHCRYPTO_API_KEY}` },
});
const credits = await res.json();
console.log('credit left:', credits.balance_usd, 'USD');
```

## 我可以使用哪些模型 id？

截至 2026 年 10 月 23 日，`model` 的值、该模型擅长什么及其上下文窗口。[价格页面](https://llmwithcrypto.com/zh/pricing/) 上列出了每百万 token 的价格。

| 模型 id | 模型 | 上下文 | 输入 / 1M | 输出 / 1M |
| --- | --- | --- | --- | --- |
| `deepseek-v4-pro` | [DeepSeek V4 Pro](https://llmwithcrypto.com/zh/models/deepseek-v4-pro/) | 1M | $1.254 | $3.762 |
| `deepseek-v4.1-flash` | [DeepSeek V4.1 Flash](https://llmwithcrypto.com/zh/models/deepseek-v4-1-flash/) | 1M | $0.285 | $1.14 |
| `deepseek-r1` | [DeepSeek R1](https://llmwithcrypto.com/zh/models/deepseek-r1/) | 160K | $0.57 | $2.208 |
| `qwen3.5-397b-a17b` | [Qwen3.5 397B A17B](https://llmwithcrypto.com/zh/models/qwen3-5-397b-a17b/) | 256K | $0.57 | $3.42 |
| `qwen3-235b-a22b-instruct-2507` | [Qwen3 235B A22B Instruct](https://llmwithcrypto.com/zh/models/qwen3-235b-a22b-instruct-2507/) | 256K | $0.161 | $0.57 |
| `gpt-oss-120b` | [gpt-oss-120b](https://llmwithcrypto.com/zh/models/gpt-oss-120b/) | 128K | $0.142 | $0.57 |
| `gpt-oss-20b` | [gpt-oss-20b](https://llmwithcrypto.com/zh/models/gpt-oss-20b/) | 128K | $0.033 | $0.161 |
| `glm-4.7` | [GLM-4.7](https://llmwithcrypto.com/zh/models/glm-4-7/) | 200K | $0.57 | $2.09 |
| `llama-3.3-70b-instruct` | [Llama 3.3 70B Instruct](https://llmwithcrypto.com/zh/models/llama-3-3-70b-instruct/) | 128K | $0.209 | $0.475 |
| `gemma-4-31b` | [Gemma 4 31B](https://llmwithcrypto.com/zh/models/gemma-4-31b/) | 256K | $0.19 | $0.38 |
| `mistral-large-3` | [Mistral Large 3](https://llmwithcrypto.com/zh/models/mistral-large-3/) | 256K | $0.475 | $1.424 |
| `mistral-small-4` | [Mistral Small 4](https://llmwithcrypto.com/zh/models/mistral-small-4/) | 256K | $0.142 | $0.57 |

## 我的应用应该在启动时读取模型列表吗？

这是个好习惯。模型会被新增，偶尔也会下线；每次变更都在 [changelog](https://llmwithcrypto.com/zh/changelog/) 中标注了日期。在应用启动时读取 `GET https://llmwithcrypto.com/api/v1/models`，可以让它检查自己配置的 id 是否仍然存在，而不是在生产环境里从 `404 model_not_found` 才发现问题。

该列表只包含开源权重模型。仅提供许可证允许作为 API 提供服务的开放权重模型：DeepSeek、Qwen、gpt-oss、Mistral、Llama、Gemma 以及模型页面上列出的其他模型。我们在自己租用并运维的 GPU 上运行这些模型。每个模型保留自己的许可证和使用政策（例如 Meta 的 Llama Acceptable Use Policy 和“Built with Llama”声明）；通过我们使用某个模型即表示接受这些条款。

## 如何避免积分耗尽？

- **定期查看积分。** `GET https://llmwithcrypto.com/api/v1/credits` 是免费的；对大多数应用来说，每小时检查一次或每批之后检查一次就足够了。
- **设定自己的下限。** 当 `balance_usd` 低于你设定的水平时，给自己告警并在调用开始失败前充值。
- **处理 `402`。** 积分不足以支付的调用会返回 `402 insufficient_balance`，且不产生费用；[错误页面](https://llmwithcrypto.com/zh/docs/errors/) 说明了该如何应对。

积分不会过期：这个月没花完的，明年还在，所以提前充值不会让你有任何损失。

## 模型与积分：常见问题

### 为什么列表里没有 GPT 或 Claude？

我们不出售 GPT、Claude、Gemini 或 Grok 的访问权限：其开发商禁止未经其批准转售 API 访问，而我们并未获得该批准.

### 模型列表会显示价格吗？

不会，它遵循 OpenAI 格式。每百万 token 的价格见 [价格页面](https://llmwithcrypto.com/zh/pricing/) 以及每个模型页面。

### 积分会在我的多个 API 密钥之间共享吗？

会。密钥属于账户，且都消耗同一份积分。为每个应用、agent 或队友各建一个 API 密钥，并可在 dashboard 中单独吊销任意一个，不影响其他密钥。

---

LLMwithCrypto: LLMwithCrypto 是一个兼容 OpenAI 的开放权重模型 LLM API，涵盖 DeepSeek V4 Pro、DeepSeek V4.1 Flash、DeepSeek R1、Qwen3.5 397B A17B、Qwen3 235B A22B Instruct、gpt-oss-120b、gpt-oss-20b、GLM-4.7、Llama 3.3 70B Instruct、Gemma 4 31B、Mistral Large 3、Mistral Small 4，按 token 从预付加密货币余额中扣费，价格比公共托管商的中位价低 5%。无需 KYC：无需身份证件、无需自拍、无需文件。不存储提示词和输出。
