> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morphllm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Account Usage

> Read your daily usage and spend at /api/v1/account/usage

## Overview

Returns your account's spend, requests and tokens per UTC day, each day broken down by model: the numbers on the [Usage page](https://www.morphllm.com/dashboard/usage). Use it to feed a cost explorer or to alert on spend. Any key of an organization returns the organization's usage; a personal key returns its owner's.

With no dates it covers the current UTC month to today. Pass `start` and `end` (UTC days, both included) for another range of up to 366 days. Today's figures refresh every 30 minutes.

```bash theme={null}
curl "https://api.morphllm.com/api/v1/account/usage?start=2026-11-01&end=2026-11-07" \
  -H "Authorization: Bearer $MORPH_API_KEY"
```

`spend` is in USD at your prices, after any committed-spend discount. Usage the Ultra plan covers is listed with `includedInPlan: true` at \$0.

From the CLI: `morph usage`. From the Morph MCP server: the `get_usage` tool.


## OpenAPI

````yaml GET /api/v1/account/usage
openapi: 3.1.0
info:
  title: Morph API
  version: 1.2.0
  description: >-
    The Morph public API at api.morphllm.com: OpenAI- and Anthropic-compatible
    inference (chat completions, messages), Fast Apply code editing, Compact
    context compression, System One typed decisions, model listing, and
    dedicated endpoint management, agentic credit top-ups paid over x402,
    account usage and billing settings, and organization member budgets. Model
    ids, prices, and context windows are served live at
    https://www.morphllm.com/api/models/json.
  contact:
    name: Morph
    url: https://morphllm.com
    email: info@morphllm.com
  license:
    name: Proprietary
    url: https://morphllm.com/privacy/tos
servers:
  - url: https://api.morphllm.com
    description: Production
security: []
tags:
  - name: chat
    description: >-
      OpenAI- and Anthropic-compatible chat inference, including Fast Apply and
      WarpGrep models.
  - name: compact
    description: Context compression for long agent conversations.
  - name: systemone
    description: 'Typed decisions: a state in, a probability distribution per question out.'
  - name: models
    description: Model listing.
  - name: dedicated
    description: Dedicated endpoint discovery, status, and cancellation.
  - name: credits
    description: Agentic credit top-ups paid in USDC over x402.
  - name: account
    description: >-
      Usage and spend per day; billing settings: extra usage, spend limit and
      alert, auto-reload.
  - name: organization
    description: Organization member budgets.
  - name: telemetry
    description: Usage reporting hooks.
paths:
  /api/v1/account/usage:
    get:
      tags:
        - account
      summary: Get account usage
      description: >-
        Returns the usage and spend of the key’s account per UTC day, each day
        broken down by model: the numbers on the dashboard Usage page. Any key
        of an organization returns the organization’s usage; a personal key
        returns its owner’s. Today’s figures refresh every 30 minutes. With no
        dates, the range is the current UTC month to today.
      operationId: getAccountUsage
      parameters:
        - schema:
            type: string
            description: A UTC day, YYYY-MM-DD.
            example: '2026-11-01'
          required: false
          description: First UTC day to include. Defaults to the first day of end’s month.
          name: start
          in: query
        - schema:
            type: string
            description: A UTC day, YYYY-MM-DD, on or after start.
            example: '2026-11-01'
          required: false
          description: >-
            Last UTC day to include. Defaults to today; a later day is read as
            today. At most 366 days after start.
          name: end
          in: query
      responses:
        '200':
          description: The account’s usage.
          content:
            application/json:
              example:
                account: organization
                currency: USD
                start: '2026-11-01'
                end: '2026-11-01'
                total:
                  spend: 1.842311
                  requests: 412
                  inputTokens: 9120044
                  cachedInputTokens: 7310200
                  outputTokens: 188410
                days:
                  - date: '2026-11-01'
                    spend: 1.842311
                    requests: 412
                    inputTokens: 9120044
                    cachedInputTokens: 7310200
                    outputTokens: 188410
                    models:
                      - model: DeepSeek V4.1 Flash
                        includedInPlan: false
                        spend: 1.842311
                        requests: 412
                        inputTokens: 9120044
                        cachedInputTokens: 7310200
                        outputTokens: 188410
                models:
                  - model: DeepSeek V4.1 Flash
                    includedInPlan: false
                    spend: 1.842311
                    requests: 412
                    inputTokens: 9120044
                    cachedInputTokens: 7310200
                    outputTokens: 188410
              schema:
                $ref: '#/components/schemas/AccountUsage'
        '400':
          description: >-
            A date that is not YYYY-MM-DD, start after end, or a range over 366
            days.
          content:
            application/json:
              example:
                error: start 2026-11-05 is after end 2026-11-01
              schema:
                $ref: '#/components/schemas/OrgError'
        '401':
          $ref: '#/components/responses/OrgUnauthorized'
      security:
        - bearerAuth: []
components:
  schemas:
    AccountUsage:
      type: object
      properties:
        account:
          type: string
          enum:
            - personal
            - organization
          description: >-
            Whose usage this is: the key’s organization, or the key owner’s
            personal account.
          example: organization
        currency:
          type: string
          enum:
            - USD
          description: Currency of every spend figure.
          example: USD
        start:
          type: string
          description: First UTC day covered, YYYY-MM-DD.
          example: '2026-11-01'
        end:
          type: string
          description: Last UTC day covered, YYYY-MM-DD. Never later than today.
          example: '2026-11-01'
        total:
          $ref: '#/components/schemas/UsageCounts'
        days:
          type: array
          items:
            $ref: '#/components/schemas/DayUsage'
          description: >-
            Every day from start to end, oldest first; a day without usage is
            zeros.
        models:
          type: array
          items:
            $ref: '#/components/schemas/ModelUsage'
          description: Usage per model over the range, highest spend first.
      required:
        - account
        - currency
        - start
        - end
        - total
        - days
        - models
      description: The account’s usage and spend per UTC day.
      example:
        account: organization
        currency: USD
        start: '2026-11-01'
        end: '2026-11-01'
        total:
          spend: 1.842311
          requests: 412
          inputTokens: 9120044
          cachedInputTokens: 7310200
          outputTokens: 188410
        days:
          - date: '2026-11-01'
            spend: 1.842311
            requests: 412
            inputTokens: 9120044
            cachedInputTokens: 7310200
            outputTokens: 188410
            models:
              - model: DeepSeek V4.1 Flash
                includedInPlan: false
                spend: 1.842311
                requests: 412
                inputTokens: 9120044
                cachedInputTokens: 7310200
                outputTokens: 188410
        models:
          - model: DeepSeek V4.1 Flash
            includedInPlan: false
            spend: 1.842311
            requests: 412
            inputTokens: 9120044
            cachedInputTokens: 7310200
            outputTokens: 188410
    OrgError:
      type: object
      properties:
        error:
          type: string
          description: Why the request failed.
          example: Member not found
      required:
        - error
      description: Error body returned by the organization routes.
      example:
        error: Member not found
    UsageCounts:
      type: object
      properties:
        spend:
          type: number
          description: >-
            USD at the account’s prices, net of any committed-spend discount;
            usage the Ultra plan covers counts $0. Rounded to the micro-dollar,
            not the cent.
          example: 1.842311
        requests:
          type: integer
          description: Requests.
          example: 412
        inputTokens:
          type: integer
          description: Input tokens, cached ones included.
          example: 9120044
        cachedInputTokens:
          type: integer
          description: Input tokens read from the prompt cache.
          example: 7310200
        outputTokens:
          type: integer
          description: Output tokens.
          example: 188410
      required:
        - spend
        - requests
        - inputTokens
        - cachedInputTokens
        - outputTokens
      description: Spend, requests and tokens.
      example:
        spend: 1.842311
        requests: 412
        inputTokens: 9120044
        cachedInputTokens: 7310200
        outputTokens: 188410
    DayUsage:
      allOf:
        - $ref: '#/components/schemas/UsageCounts'
        - type: object
          properties:
            date:
              type: string
              description: The UTC day, YYYY-MM-DD.
              example: '2026-11-01'
            models:
              type: array
              items:
                $ref: '#/components/schemas/ModelUsage'
              description: The day’s usage per model, highest spend first.
          required:
            - date
            - models
      description: One UTC day’s usage.
      example:
        date: '2026-11-01'
        spend: 1.842311
        requests: 412
        inputTokens: 9120044
        cachedInputTokens: 7310200
        outputTokens: 188410
        models:
          - model: DeepSeek V4.1 Flash
            includedInPlan: false
            spend: 1.842311
            requests: 412
            inputTokens: 9120044
            cachedInputTokens: 7310200
            outputTokens: 188410
    ModelUsage:
      allOf:
        - $ref: '#/components/schemas/UsageCounts'
        - type: object
          properties:
            model:
              type: string
              description: The model, named as on the dashboard Usage page.
              example: DeepSeek V4.1 Flash
            includedInPlan:
              type: boolean
              description: >-
                Usage the Ultra plan covers, listed apart from the same model’s
                billed usage, at $0.
              example: false
          required:
            - model
            - includedInPlan
      description: One model’s usage.
      example:
        model: DeepSeek V4.1 Flash
        includedInPlan: false
        spend: 1.842311
        requests: 412
        inputTokens: 9120044
        cachedInputTokens: 7310200
        outputTokens: 188410
  responses:
    OrgUnauthorized:
      description: Missing or invalid Morph API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/OrgError'
          example:
            error: Unauthorized
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        Morph API key, passed as `Authorization: Bearer sk-...`. Create keys at
        https://www.morphllm.com/dashboard/api-keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.