id响应和历史中相同ID
在 API 历史记录中查找具有该确切标识符的请求。
实际检查
在终端运行“1. Models”,然后将所选 ID 插入“2. Request”。列表返回 data[].id,无生成费用。检查文本响应中的 choices[0].message.content、模型和使用情况。
打开命令打开“3.账单”并从您的已保存 response.json 中读取实际费用。在 API 历史记录中找到相同的请求 ID,以及其模型、状态和费用。未使用余额将保留在您的 API 余额中。
打开 API 历史记录curl / JSON
您需要 curl 和 Python 3。在 macOS、Linux 或 WSL 终端使用 bash 命令启动 Bash。按顺序运行同一会话中的代码块。将 MODEL_ID_FROM_CATALOG 替换为所选 ID。
# Bash · macOS / Linux / WSL · curl + Python 3
# Enter your Aether key locally. Input is hidden.
{
read -r -s -p 'Aether API key: ' AETHER_API_KEY
printf '\n'
export AETHER_API_KEY
curl --silent --show-error --fail-with-body \
'https://www.aetheriop.com/api/v1/models' \
-H "Authorization: Bearer ${AETHER_API_KEY}" \
-o models.json
python3 -m json.tool models.json
}# Replace MODEL_ID_FROM_CATALOG with an id from models.json.
# Choose a low-cost text model; check its workspace rate first.
curl --silent --show-error --fail-with-body \
'https://www.aetheriop.com/api/v1/chat/completions' \
-H "Authorization: Bearer ${AETHER_API_KEY}" \
-H 'Content-Type: application/json' \
--data '{
"model": "MODEL_ID_FROM_CATALOG",
"messages": [{"role": "user", "content": "Reply with one word: ready"}],
"max_tokens": 64,
"stream": false
}' \
-o response.json
python3 -m json.tool response.json# Read the actual saved response.
python3 - <<'PY'
import json
from decimal import Decimal
with open('response.json', encoding='utf-8') as file:
result = json.load(file)
if 'error' in result:
raise SystemExit(result['error']['message'])
usage = result['usage']
billing = result['aether']
charge = Decimal(billing['charged_usd'].replace('$', '').replace(',', ''))
print('Request:', result['id'])
print('Model:', result['model'])
print('Input tokens:', usage['prompt_tokens'])
print('Output tokens:', usage['completion_tokens'])
print('Charged:', f'{charge:.9f}', 'USD')
print('Balance:', billing['balance_usd'])
PY
# After checking, clear the key from this shell.
unset AETHER_API_KEY使用 Bash 的隐藏输入在本地输入密钥。此页面没有用于输入 API 密钥的字段。您可以在检查后在您的工作区中撤销该密钥。
核对结果
将响应与您的账户历史记录进行比较。以下字段指的是您自己的请求。
id在 API 历史记录中查找具有该确切标识符的请求。
model + usage在 JSON 响应中检查所选的模型 ID、prompt_tokens 和 completion_tokens。
aether.charged_usd精确收费返回至 9 位小数。工作区历史显示四舍五入至 6 位小数。
aether.balance_usd响应显示余额四舍五入至 6 位小数;主工作区余额可能使用更少位数。
对于非常小的费用,四舍五入的余额可能保持不变。请参阅 charged_usd 查看确切费用。转账网络费用与 API 请求费用分开。
401:检查您的密钥。403:检查是否接受 API 条款。402:检查可用信用额度和模型选择。对于 502/503,请查看服务状态。联系支持时,请保留请求或发票 ID、时间和错误代码。
此核查涵盖 API 操作和使用会计。公司信息、代码和参与条款另行提供。