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

# Deploy Detailed Stats



## OpenAPI

````yaml https://api.deepinfra.com/openapi.json get /deploy/{deploy_id}/stats2
openapi: 3.1.0
info:
  title: DeepInfra API
  description: >-
    The DeepInfra API provides serverless AI inference, custom model
    deployments, and GPU rentals.
  version: 1.0.0
servers:
  - url: https://api.deepinfra.com
security: []
tags:
  - name: Chat Completions
    description: OpenAI and Anthropic-compatible chat completion endpoints for LLMs.
  - name: Text Completions
    description: OpenAI-compatible text completion endpoints.
  - name: Embeddings
    description: Generate text embeddings for search and RAG.
  - name: Image Generation
    description: Generate, edit, and create variations of images.
  - name: Audio
    description: OpenAI-compatible speech synthesis, transcription, and translation.
  - name: Text to Speech
    description: ElevenLabs-compatible TTS endpoints and voice management.
  - name: Inference
    description: Native DeepInfra inference API for models and deployments.
  - name: Dedicated Models
    description: Deploy and manage private model instances with autoscaling.
  - name: GPU Rentals
    description: Rent dedicated GPU containers.
  - name: Models
    description: Browse, search, and manage AI models.
  - name: Files & Batches
    description: File uploads and batch processing.
  - name: LoRA Adapters
    description: Create, manage, and query LoRA adapter models.
  - name: Agents
    description: Manage agent-framework instances (OpenClaw and friends).
  - name: Sandboxes
    description: Create and manage isolated sandbox environments.
  - name: Account
    description: User profile, team management, and rate limits.
  - name: Authentication
    description: API tokens, SSH keys, scoped JWTs, and login flows.
  - name: Billing
    description: Payment methods, usage tracking, and billing.
  - name: Logs & Metrics
    description: Query inference logs, deployment logs, and usage metrics.
  - name: Utilities
    description: Feedback submission and CLI version.
paths:
  /deploy/{deploy_id}/stats2:
    get:
      tags:
        - Dedicated Models
      summary: Deploy Detailed Stats
      operationId: deploy_detailed_stats_deploy__deploy_id__stats2_get
      parameters:
        - name: deploy_id
          in: path
          required: true
          schema:
            type: string
            title: Deploy Id
        - name: from
          in: query
          required: true
          schema:
            type: string
            description: >-
              start of period, unix ts or 'now-5h', supported units s, m, h, d,
              w
            title: From
          description: start of period, unix ts or 'now-5h', supported units s, m, h, d, w
        - name: to
          in: query
          required: false
          schema:
            type: string
            description: >-
              end of period, unix ts or now-relative, check from, defaults to
              now
            default: now
            title: To
          description: end of period, unix ts or now-relative, check from, defaults to now
        - name: xi-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Xi-Api-Key
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailedDeploymentStatsOut'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeepError'
          description: Not Found
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeepError'
          description: Gone
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    DetailedDeploymentStatsOut:
      properties:
        llm:
          anyOf:
            - $ref: '#/components/schemas/LLMDeploymentStatsOut'
            - type: 'null'
          description: LLM Deployment Stats
        embeddings:
          anyOf:
            - $ref: '#/components/schemas/EmbeddingsDeploymentStatsOut'
            - type: 'null'
          description: Embeddings Deployment Stats
        time:
          anyOf:
            - $ref: '#/components/schemas/TimeDeploymentStatsOut'
            - type: 'null'
          description: Time based Deployment Stats
      type: object
      title: DetailedDeploymentStatsOut
    DeepError:
      properties:
        error:
          type: string
          title: Error
          description: Error
          examples:
            - Model not found
      type: object
      required:
        - error
      title: DeepError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LLMDeploymentStatsOut:
      properties:
        requests:
          type: integer
          title: Requests
          description: number of inference requests in the provided interval
        input_tokens:
          type: integer
          title: Input Tokens
          description: number of input tokens generated
        output_tokens:
          type: integer
          title: Output Tokens
          description: number of output tokens generated
        avg_ttft_ms:
          type: number
          title: Avg Ttft Ms
          description: average millisecond time to first token
        avg95_ttft_ms:
          type: number
          title: Avg95 Ttft Ms
          description: 95th percentile time to first token (estimated)
        avg_tpt_ms:
          type: number
          title: Avg Tpt Ms
          description: average millisecond time per token
        avg95_tpt_ms:
          type: number
          title: Avg95 Tpt Ms
          description: 95th percentile time per token (estimated)
        total_amount_cents:
          type: integer
          title: Total Amount Cents
          description: total number of cents spent
        errors:
          type: integer
          title: Errors
          description: number of errors
      type: object
      required:
        - requests
        - input_tokens
        - output_tokens
        - avg_ttft_ms
        - avg95_ttft_ms
        - avg_tpt_ms
        - avg95_tpt_ms
        - total_amount_cents
        - errors
      title: LLMDeploymentStatsOut
    EmbeddingsDeploymentStatsOut:
      properties:
        requests:
          type: integer
          title: Requests
          description: number of inference requests in the provided interval
        input_tokens:
          type: integer
          title: Input Tokens
          description: number of input tokens generated
        avg_tpt_ms:
          type: number
          title: Avg Tpt Ms
          description: average millisecond time per token
        avg95_tpt_ms:
          type: number
          title: Avg95 Tpt Ms
          description: 95th percentile time per token (estimated)
        total_amount_cents:
          type: integer
          title: Total Amount Cents
          description: total number of cents spent
        errors:
          type: integer
          title: Errors
          description: number of errors
      type: object
      required:
        - requests
        - input_tokens
        - avg_tpt_ms
        - avg95_tpt_ms
        - total_amount_cents
        - errors
      title: EmbeddingsDeploymentStatsOut
    TimeDeploymentStatsOut:
      properties:
        requests:
          type: integer
          title: Requests
          description: number of inference requests in the provided interval
        total_time_s:
          type: integer
          title: Total Time S
          description: total number of seconds spend in inference
        total_amount_cents:
          type: integer
          title: Total Amount Cents
          description: total number of cents spent
        avg_time_ms:
          type: number
          title: Avg Time Ms
          description: average millisecond inference time
        avg95_time_ms:
          type: number
          title: Avg95 Time Ms
          description: 95th percentile inference time (estimated)
        errors:
          type: integer
          title: Errors
          description: number of errors
      type: object
      required:
        - requests
        - total_time_s
        - total_amount_cents
        - avg_time_ms
        - avg95_time_ms
        - errors
      title: TimeDeploymentStatsOut
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````