3.4.0

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>"

Replace <API-KEY> with your own key. The values shown are not real keys.

Request parameters

ParameterMeaningDefault
fromStart date (YYYY-MM-DD, Korea time, inclusive)Start of the current subscription period
toEnd date (YYYY-MM-DD, Korea time, inclusive)Today
unitGrouping: day or monthday

The range can be at most 366 days. Each key may call this up to 30 times per minute.

Response fields

FieldMeaning
planPlan name and the current subscription period (start, end)
quota.limitLimit for this period, in billed eojeol. null if unlimited
quota.extraThe part of the limit that comes from extra top-ups
quota.used / remainingBilled eojeol used this period / remaining (remaining is null if unlimited)
quota.overageEojeol used beyond the limit
quota.onetime_balanceBalance of short-term passes (one-time purchases). Independent of the subscription period and never reset
limitsMaximum characters per request and requests per second
rangeThe 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 / morphFor spell checking / morphological analysis and tokenization: calls, eojeol (as sent), billed_eojeol (as billed)
series[].mcpCalls and eojeol made through the MCP server
totalsTotals over the queried range. all.billed_eojeol is the sum of billed eojeol for spell checking and morphological analysis
meteringExplanation 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).

FeatureBilled eojeol
Spell checkingThe number of input eojeol as is (1 eojeol = 1)
Morphological analysis and tokenization1/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 to totals.all.

Error codes

CodeMeaning
400from/to is not YYYY-MM-DD, to is before from, the range exceeds 366 days, or unit is not day/month
401The api-key header is missing, the key is unknown, or it has been revoked or deactivated
404The user that owns the key was not found
429More 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.

Was this page helpful?

Usage API | Bareun Docs