openapi: 3.1.0 info: title: DeepInfra Inference Audio Embeddings 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: Embeddings paths: /embeddings: post: tags: - Embeddings summary: Create embeddings for input text requestBody: required: true content: application/json: schema: type: object required: - model - input properties: model: type: string input: oneOf: - type: string - type: array items: type: string encoding_format: type: string enum: - float - base64 responses: '200': description: Embeddings content: application/json: schema: type: object components: securitySchemes: bearerAuth: type: http scheme: bearer description: DeepInfra API token (DEEPINFRA_TOKEN) sent as a Bearer token.