Usage API
Usage API
The Usage API returns the limit and remaining eojeol for the current subscription period, plus daily or monthly usage, using just your API key. Use it to watch how fast you are consuming the limit, or to build your own alerts and dashboards. It is read-only and never deducts eojeol.
Available on the cloud (bareun.ai)
The address is https://bareun.ai/api/v1/usage. It lives on the web server (bareun.ai), not on api.bareun.ai,
where the spell-checking and morphological analysis calls go. It is not available on self-hosted installs.
How to call it
Put the same API key you use for the other calls in the api-key header. Authorization: Bearer <API-KEY> is also accepted.
Passing the key in the URL query string is not supported.
curl -s "https://bareun.ai/api/v1/usage?from=2026-11-01&to=2026-11-30&unit=day" \
-H "api-key: <API-KEY>"
{
"plan": { "name": "Free", "period": { "start": "2026-10-31T15:00:00.000Z", "end": "2026-11-30T15:00:00.000Z" } },
"quota": { "limit": 50000, "extra": 0, "used": 1250, "remaining": 48750, "overage": 0, "onetime_balance": 0 },
"limits": { "max_text_length": 5000, "rate_limit_per_sec": 1 },
"range": { "from": "2026-11-01", "to": "2026-11-30", "unit": "day", "timezone": "Asia/Seoul" },
"series": [
{
"date": "2026-11-03",
"proofreader": { "calls": 10, "eojeol": 900, "billed_eojeol": 900 },
"morph": { "calls": 4, "eojeol": 3000, "billed_eojeol": 300 },
"mcp": { "calls": 2, "eojeol": 120 }
}
],
"totals": {
"proofreader": { "calls": 10, "eojeol": 900, "billed_eojeol": 900 },
"morph": { "calls": 4, "eojeol": 3000, "billed_eojeol": 300 },
"mcp": { "calls": 2, "eojeol": 120 },
"all": { "billed_eojeol": 1200 }
},
"metering": { "...": "explanation of how eojeol are counted (see below)" }
}
Replace <API-KEY> with your own key. The values shown are not real keys.
Request parameters
| Parameter | Meaning | Default |
|---|---|---|
from | Start date (YYYY-MM-DD, Korea time, inclusive) | Start of the current subscription period |
to | End date (YYYY-MM-DD, Korea time, inclusive) | Today |
unit | Grouping: day or month | day |
The range can be at most 366 days. Each key may call this up to 30 times per minute.
Response fields
| Field | Meaning |
|---|---|
plan | Plan name and the current subscription period (start, end) |
quota.limit | Limit for this period, in billed eojeol. null if unlimited |
quota.extra | The part of the limit that comes from extra top-ups |
quota.used / remaining | Billed eojeol used this period / remaining (remaining is null if unlimited) |
quota.overage | Eojeol used beyond the limit |
quota.onetime_balance | Balance of short-term passes (one-time purchases). Independent of the subscription period and never reset |
limits | Maximum characters per request and requests per second |
range | The range actually queried and the unit. The time zone is always Asia/Seoul |
series[] | Usage per date (YYYY-MM when unit is month). Dates with no usage are omitted |
series[].proofreader / morph | For spell checking / morphological analysis and tokenization: calls, eojeol (as sent), billed_eojeol (as billed) |
series[].mcp | Calls and eojeol made through the MCP server |
totals | Totals over the queried range. all.billed_eojeol is the sum of billed eojeol for spell checking and morphological analysis |
metering | Explanation of how eojeol are counted |
quota.used equals the value shown on the /api-key page of the website. It always refers to the current subscription period, regardless of from and to.
How eojeol are counted
What is deducted from your limit is the billed eojeol (billed_eojeol), which can differ from the eojeol you actually sent (eojeol).
| Feature | Billed eojeol |
|---|---|
| Spell checking | The number of input eojeol as is (1 eojeol = 1) |
| Morphological analysis and tokenization | 1/10 of the input eojeol, rounded |
- An eojeol is one whitespace-separated chunk of text.
- Only cloud calls are deducted from the limit. Calls to a self-hosted server are recorded but not deducted.
- MCP calls appear separately under
mcp. They may overlap with the spell-checking and analysis figures, so they are not added tototals.all.
Error codes
| Code | Meaning |
|---|---|
400 | from/to is not YYYY-MM-DD, to is before from, the range exceeds 366 days, or unit is not day/month |
401 | The api-key header is missing, the key is unknown, or it has been revoked or deactivated |
404 | The user that owns the key was not found |
429 | More than 30 calls in a minute. Try again shortly |
Error bodies look like {"error": "..."}.
When the limit runs short
Once the limit is used up, further calls are rejected and your service may stop. If you need more eojeol, buy a short-term pass, or, for research use, send an additional research application. We also email you when usage reaches about 70 to 80 percent.