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

# Spend by day



## OpenAPI

````yaml /api-reference/openapi.json get /v1/cost/by_day
openapi: 3.1.0
info:
  title: Veri API
  description: >-
    REST API for the Veri RL post-training platform. All requests require a
    Bearer API key (`vk_` prefix).
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.veri.studio
    description: Production
security: []
tags:
  - name: Training jobs
    description: Create, monitor, and manage training jobs.
  - name: Datasets
    description: Upload and connect training datasets.
  - name: Deployments
    description: Serve trained models and run inference.
  - name: Volumes
    description: Persistent file storage mounted into jobs.
  - name: Models
    description: Custom model registry deployments serve from.
  - name: Regions
    description: Discover available launch regions.
  - name: GPU
    description: Live GPU availability by provider and region.
  - name: Code artifacts
    description: Upload custom training script bundles.
  - name: Billing
    description: Credit balance and transaction history.
  - name: API keys
    description: Create and revoke API keys.
  - name: Account
    description: The authenticated caller's identity.
  - name: Settings
    description: Account-level integrations (Weights & Biases).
  - name: Metrics
    description: Prometheus metrics export for your own observability stack.
  - name: Evaluators
    description: 'Evaluators: versioned scoring rules (LLM judge, code, human).'
  - name: Experiments
    description: >-
      Experiments: offline runs of a pinned dataset snapshot through a target,
      scored by pinned evaluators.
  - name: Annotation queues
    description: >-
      Human review: queue traces, threads and experiment items, reserve one at a
      time, score them and feed corrections back into datasets.
  - name: Monitors
    description: >-
      Monitors: evaluators scoring a sampled share of a deployment's live
      traffic.
  - name: Observability
    description: Agent conversations, agents and their traffic.
  - name: Ask AI
    description: 'The in-app helper agent: chat, ratings and versions.'
  - name: Public runs
    description: Unauthenticated reads of runs their owners published to Explore.
paths:
  /v1/cost/by_day:
    get:
      tags:
        - Billing
      summary: Spend by day
      operationId: by_day
      parameters:
        - name: days
          in: query
          description: Window length in days, 1 to 365 (default 30)
          required: false
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: Spend per UTC day with totals and a month-end projection
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpendByDayResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    SpendByDayResponse:
      type: object
      required:
        - window_days
        - start_date
        - end_date
        - days
        - totals
        - average_per_day_usd
        - month_to_date_usd
        - projected_month_usd
      properties:
        window_days:
          type: integer
          format: int32
        start_date:
          type: string
          format: date
        end_date:
          type: string
          format: date
        days:
          type: array
          items:
            $ref: '#/components/schemas/SpendDay'
          description: >-
            One entry per UTC day from start_date to end_date inclusive, oldest
            first.
        totals:
          $ref: '#/components/schemas/SpendTotals'
        average_per_day_usd:
          type: number
          format: double
        peak:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SpendPeak'
              description: The day with the highest total, null when nothing was spent.
        month_to_date_usd:
          type: number
          format: double
          description: Spend since the first of the current month (UTC).
        projected_month_usd:
          type: number
          format: double
          description: >-
            month_to_date_usd scaled to the full month at the month's average
            pace.
    SpendDay:
      type: object
      description: One UTC day of the workspace's spend, by what it was spent on.
      required:
        - date
        - training_usd
        - serving_usd
        - storage_usd
        - traces_usd
        - total_usd
      properties:
        date:
          type: string
          format: date
        training_usd:
          type: number
          format: double
          description: |-
            Training jobs settled that day (their final charge lands on the day
            the job finished).
        serving_usd:
          type: number
          format: double
          description: >-
            Serving accrued that day: every replica's hours inside the day at
            its

            per-box rate, the same accrual the balance enforcer uses.
        storage_usd:
          type: number
          format: double
          description: Volume and model storage settlements charged that day.
        traces_usd:
          type: number
          format: double
          description: Stored trace bodies settled that day.
        total_usd:
          type: number
          format: double
    SpendTotals:
      type: object
      required:
        - training_usd
        - serving_usd
        - storage_usd
        - traces_usd
        - total_usd
      properties:
        training_usd:
          type: number
          format: double
        serving_usd:
          type: number
          format: double
        storage_usd:
          type: number
          format: double
        traces_usd:
          type: number
          format: double
        total_usd:
          type: number
          format: double
    SpendPeak:
      type: object
      required:
        - date
        - total_usd
      properties:
        date:
          type: string
          format: date
        total_usd:
          type: number
          format: double
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: API key with the `vk_` prefix. Create one from the dashboard.

````

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