Skip to content

Ollama Docs, Revised

Balance

Reference page. 2 changes, 2 questions for the owner. Audit: improved. Original source at commit 318ee28.

Revised

curl https://ollama.com/api/balance \
  -H "Authorization: Bearer $OLLAMA_API_KEY"
{
  "included": {
    "balance_usd": 72.5,
    "allowance_usd": 100,
    "period": {
      "from": "2026-09-15T09:30:00Z",
      "until": "2026-10-15T09:30:00Z"
    }
  },
  "purchased": {
    "balance_usd": 25
  }
}

This endpoint takes no query parameters. For usage history, see Cloud usage.

Balances

The included period follows your plan's monthly reset schedule, including for annual subscriptions. Period timestamps are in UTC, with from inclusive and until exclusive.

The purchased balance includes only unexpired credits.

Legacy plans1

Plans with session and weekly limits return session and weekly in included:

{
"included": {
  "session": {
    "remaining_percent": 75,
    "resets_at": "2026-10-01T07:00:00Z"
  },
  "weekly": {
    "remaining_percent": 40,
    "resets_at": "2026-10-05T00:00:00Z"
  }
},
"purchased": {
  "balance_usd": 25
}
}

remaining_percent ranges from 0 to 100. 752 means 75% remains. resets_at is the next reset time in UTC.

Rate limits

X40This endpoint allows 10 requests per minute per user, shared across API keys and devices. We recommend polling once per minute. A 429 response includes a Retry-After header with the number of seconds to wait before retrying.

Teams

All team members share the same included and purchased balances.

Reference?1

Notes on this page

  1. 1 Structure Audit: improved The heading went from level 2 straight to level 4; it is now level 3.

    Was: #### Legacy plans

    long-no-skipped-levels

    Auditor: Changing “Legacy plans” from level 4 to level 3 removes the skipped heading level and preserves its relationship to “Balances.”

  2. 2 Wording Audit: improved Splits the sentence in two instead of joining them with a semicolon.

    Was: ; 75 means 75% remains.

    Semicolon

    Auditor: Splitting the semicolon construction into two sentences makes the explanation easier to read without changing its meaning.

Questions for the owner

  • ?1 The page ends with a Reference heading that has nothing under it; what content belongs there?

    About: “## Reference”

  • X40 Rate limit paragraph on Balance and Cloud usage. The same rate limit text appears on both endpoint pages. Is the limit separate for each endpoint or shared between them, and should one section state it?

    Pages: Balance, Cloud usage

Original

curl https://ollama.com/api/balance \
  -H "Authorization: Bearer $OLLAMA_API_KEY"
{
  "included": {
    "balance_usd": 72.5,
    "allowance_usd": 100,
    "period": {
      "from": "2026-09-15T09:30:00Z",
      "until": "2026-10-15T09:30:00Z"
    }
  },
  "purchased": {
    "balance_usd": 25
  }
}

This endpoint takes no query parameters. For usage history, see Cloud usage.

Balances

The included period follows your plan's monthly reset schedule, including for annual subscriptions. Period timestamps are in UTC, with from inclusive and until exclusive.

The purchased balance includes only unexpired credits.

Legacy plans

Plans with session and weekly limits return session and weekly in included:

{
"included": {
  "session": {
    "remaining_percent": 75,
    "resets_at": "2026-10-01T07:00:00Z"
  },
  "weekly": {
    "remaining_percent": 40,
    "resets_at": "2026-10-05T00:00:00Z"
  }
},
"purchased": {
  "balance_usd": 25
}
}

remaining_percent ranges from 0 to 100; 75 means 75% remains. resets_at is the next reset time in UTC.

Rate limits

This endpoint allows 10 requests per minute per user, shared across API keys and devices. We recommend polling once per minute. A 429 response includes a Retry-After header with the number of seconds to wait before retrying.

Teams

All team members share the same included and purchased balances.

Reference

What Changed

One semicolon sentence becomes two, and the Legacy plans heading no longer skips a heading level. The shared rate limit paragraph is attached as an inventory question, and a question asks what belongs under the empty Reference heading at the end.

Content type: reference. The page documents one API endpoint: its request, response fields, limits, and examples.

Automated check, original: 0 errors, 0 warnings, 1 suggestions. Revised: 0 errors, 0 warnings, 0 suggestions.

Independent audit (GPT-6): improved. The revision makes the heading hierarchy easier to follow and replaces a semicolon with a clear sentence break. It preserves the page’s meaning and links, though the empty Reference heading remains unresolved.

What the revision missed:

  • The empty “Reference” heading still has no content; the standard calls for headings that say what is under them, so the owner’s question needs resolution before the page is finished.

Structure (1)

  • 1 The heading went from level 2 straight to level 4; it is now level 3. improved

Wording (1)

  • 2 Splits the sentence in two instead of joining them with a semicolon. improved