> ## 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.

# Get Api Token Scopes

> Every scope a key can be given, and which a new key starts with.



## OpenAPI

````yaml https://api.deepinfra.com/openapi.json get /v1/api-tokens/scopes
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, rate limits, and GPU pool 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:
  /v1/api-tokens/scopes:
    get:
      tags:
        - Authentication
      summary: Get Api Token Scopes
      description: Every scope a key can be given, and which a new key starts with.
      operationId: get_api_token_scopes_v1_api_tokens_scopes_get
      parameters:
        - 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:
                type: array
                items:
                  $ref: '#/components/schemas/ApiTokenScopeOut'
                title: Response Get Api Token Scopes V1 Api Tokens Scopes Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ApiTokenScopeOut:
      properties:
        name:
          $ref: '#/components/schemas/Scope'
        is_default:
          type: boolean
          title: Is Default
          description: preselected for a new key
        is_initial:
          type: boolean
          title: Is Initial
          description: granted by the deprecated `unrestricted` scope
      type: object
      required:
        - name
        - is_default
        - is_initial
      title: ApiTokenScopeOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Scope:
      type: string
      enum:
        - inference
        - models:read
        - account:read
        - models
        - lora:read
        - lora
        - voice:read
        - voice
        - account_scoped_jwt:read
        - account_scoped_jwt
        - batch
        - compute:sandbox
        - compute:agents
        - compute:containers
        - billing:read
        - metrics
        - unrestricted
      title: Scope
      description: >-
        What an API key may do; a login session may do everything. Listed in the
        order the dashboard shows.


        A scope `x` also grants `x:read` (see `covers_scope`).


        Adding or renaming a scope needs its dashboard description in
        deepinfra/web too:

        `pages.dashboard.api_keys.scopes.descriptions.<name with ':' as '_'>` in

        public/locales/en/common.json. Without one the dashboard shows the bare
        name.


        A new scope is not initial, so unrestricted keys do not get it; one
        split from an

        initial scope is, so they keep what they could do.
    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

````

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