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

# Openrouter Models



## OpenAPI

````yaml https://api.deepinfra.com/openapi.json get /openrouter/models
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:
  /openrouter/models:
    get:
      tags:
        - Models
      summary: Openrouter Models
      operationId: openrouter_models_openrouter_models_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenRouterModelsOut'
components:
  schemas:
    OpenRouterModelsOut:
      properties:
        data:
          items:
            $ref: '#/components/schemas/OpenRouterModelData'
          type: array
          title: Data
          description: List of available models
      type: object
      required:
        - data
      title: OpenRouterModelsOut
    OpenRouterModelData:
      properties:
        id:
          type: string
          title: Id
          description: Model identifier used when calling the provider API
        hugging_face_id:
          type: string
          title: Hugging Face Id
          description: HuggingFace model ID if available
          default: ''
        name:
          type: string
          title: Name
          description: Human-readable model name
        created:
          type: integer
          title: Created
          description: Unix timestamp of model creation
        input_modalities:
          items:
            type: string
          type: array
          title: Input Modalities
          description: Supported input modalities
        output_modalities:
          items:
            type: string
          type: array
          title: Output Modalities
          description: Supported output modalities
        quantization:
          type: string
          title: Quantization
          description: Model quantization type
        context_length:
          type: integer
          title: Context Length
          description: Maximum context length
        max_output_length:
          type: integer
          title: Max Output Length
          description: Maximum output length
        pricing:
          $ref: '#/components/schemas/OpenRouterPricing'
          description: Pricing information
        supported_sampling_parameters:
          items:
            type: string
          type: array
          title: Supported Sampling Parameters
          description: Supported sampling parameters
        supported_features:
          items:
            type: string
          type: array
          title: Supported Features
          description: Supported features
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Model description
        deprecation_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Deprecation Date
          description: ISO 8601 date YYYY-MM-DD for deprecation
        openrouter:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Openrouter
          description: OpenRouter specific data
        datacenters:
          items:
            $ref: '#/components/schemas/OpenRouterDatacenter'
          type: array
          title: Datacenters
          description: Available datacenters
      type: object
      required:
        - id
        - name
        - created
        - input_modalities
        - output_modalities
        - quantization
        - context_length
        - max_output_length
        - pricing
        - supported_sampling_parameters
        - supported_features
        - datacenters
      title: OpenRouterModelData
    OpenRouterPricing:
      properties:
        prompt:
          type: string
          title: Prompt
          description: Pricing per 1 token for input
        completion:
          type: string
          title: Completion
          description: Pricing per 1 token for output
        input_cache_read:
          type: string
          title: Input Cache Read
          description: Pricing per 1 token for cache reads
          default: '0'
      type: object
      required:
        - prompt
        - completion
      title: OpenRouterPricing
    OpenRouterDatacenter:
      properties:
        country_code:
          type: string
          title: Country Code
          description: ISO 3166 Alpha-2 country code
      type: object
      required:
        - country_code
      title: OpenRouterDatacenter

````