DeepInfra Models API

The Models API from DeepInfra — 2 operation(s) for models.

OpenAPI Specification

deepinfra-models-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: DeepInfra Inference Audio Models API
  description: OpenAI-compatible inference API for DeepInfra's 100+ open-source models. Covers chat completions, text completions, embeddings, audio (transcriptions, translations, text-to-speech), image generation, and model listing. Authenticated with a Bearer API token.
  version: 1.0.0
servers:
- url: https://api.deepinfra.com/v1/openai
  description: OpenAI-compatible base URL
- url: https://api.deepinfra.com
  description: DeepInfra native base URL
security:
- bearerAuth: []
tags:
- name: Models
paths:
  /models:
    get:
      tags:
      - Models
      summary: List available models
      responses:
        '200':
          description: Models
          content:
            application/json:
              schema:
                type: object
  /models/{model}:
    get:
      tags:
      - Models
      summary: Get metadata for a model
      parameters:
      - in: path
        name: model
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Model
          content:
            application/json:
              schema:
                type: object
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: DeepInfra API token (DEEPINFRA_TOKEN) sent as a Bearer token.