API reference
Your key and usage
GET /v1/me returns your key's limits, your balance and your usage, with only the API key.
Shell
GET https://api.deepflock.dev/v1/meReturns the key you call it with, your account balance, your usage per day for the last 30 days and your 20 most recent requests. No console sign-in is needed: the key is enough.
Authentication
Needs a key: Authorization: Bearer df-.... See Authentication and keys.
Request
No parameters and no body.
Response
JSON
{
"key": {
"prefix": "df-3k9a1b2c…",
"name": "my-app",
"rpm": 120,
"spent_usd": 0.0,
"limit_usd": null
},
"balance_usd": 10.0,
"usage_30d": [
{"day": "2026-12-01", "requests": 2, "prompt_tokens": 48, "completion_tokens": 3, "cost_usd": 0.0}
],
"recent": [
{
"id": "chatcmpl-nNo5kpBbpnKZ5cn0M1aSTXTx",
"model": "qwen3-235b-a22b",
"status": "error",
"prompt_tokens": 24,
"completion_tokens": 3,
"ttft_ms": 6,
"dur_ms": 19,
"created": 1796145132,
"cost_usd": 0.0
}
]
}| Field | Meaning |
|---|---|
key.prefix | The start of the key, so you can tell keys apart. The full key is never returned. |
key.name | The name you gave the key. |
key.rpm | The key's requests-per-minute limit. |
key.spent_usd | What this key has spent in total. |
key.limit_usd | The key's spending limit, or null for none. |
balance_usd | Your account's remaining prepaid credit. |
usage_30d[] | One row per day with requests: requests, prompt_tokens, completion_tokens, cost_usd. |
recent[] | The 20 latest requests of this key. status is the request's outcome, ttft_ms the time to the first token (null if none came), dur_ms the total time, created a Unix timestamp. |
All amounts are in USD. How charges are worked out is in Pricing.
Streaming
Not applicable.
Examples
Shell
curl https://api.deepflock.dev/v1/me \
-H "Authorization: Bearer $DEEPFLOCK_API_KEY"Python
import os, requests
me = requests.get("https://api.deepflock.dev/v1/me",
headers={"Authorization": f"Bearer {os.environ['DEEPFLOCK_API_KEY']}"}).json()
print(me["balance_usd"], "USD left")Errors
| Status | Type | Code | When |
|---|---|---|---|
401 | authentication_error | invalid_api_key | Missing, wrong or deleted key. |
View as MarkdownUpdated 2026-12-01