LLM Gateway Realtime API

The Realtime API from LLM Gateway — 1 operation(s) for realtime.

Operations 1

POST /v1/realtime/client_secrets Create a realtime client secret #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/llmgateway-io:llmgateway-io-realtime-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

llmgateway-io-realtime-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: LLM Gateway Realtime API
  description: 'OpenAI-compatible LLM gateway: chat completions, embeddings, images, audio, video, moderation, OCR, rerank, web search and typed decisions across providers with one API key.'
servers:
- url: https://api.llmgateway.io
- url: http://localhost:4001
tags:
- name: Realtime
paths:
  /v1/realtime/client_secrets:
    post:
      operationId: v1_realtime_client_secrets
      tags:
      - Realtime
      summary: Create a realtime client secret
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                expires_after:
                  type: object
                  properties:
                    anchor:
                      type: string
                      enum:
                      - created_at
                    seconds:
                      type: integer
                  additionalProperties: false
                session:
                  oneOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - realtime
                      model:
                        type: string
                        minLength: 1
                      instructions:
                        type: string
                        minLength: 1
                      audio:
                        type: object
                        properties:
                          input:
                            type: object
                            properties:
                              transcription:
                                type:
                                - object
                                - 'null'
                                properties:
                                  model:
                                    type: string
                                    minLength: 1
                                required:
                                - model
                                additionalProperties: false
                            additionalProperties: false
                          output:
                            type: object
                            properties:
                              voice:
                                type: string
                                minLength: 1
                            additionalProperties: false
                        additionalProperties: false
                    required:
                    - type
                    - model
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - transcription
                      audio:
                        type: object
                        properties:
                          input:
                            type: object
                            properties:
                              transcription:
                                type: object
                                properties:
                                  model:
                                    type: string
                                    minLength: 1
                                required:
                                - model
                                additionalProperties: false
                            required:
                            - transcription
                            additionalProperties: false
                        required:
                        - input
                        additionalProperties: false
                    required:
                    - type
                    - audio
                    additionalProperties: false
              required:
              - session
              additionalProperties: false
      responses:
        '200':
          description: Short-lived secret for a realtime WebSocket session.
          content:
            application/json:
              schema:
                type: object
                properties:
                  value:
                    type: string
                  expires_at:
                    type: number
                  session:
                    oneOf:
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                          - realtime
                        model:
                          type: string
                      required:
                      - type
                      - model
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                          - transcription
                        audio:
                          type: object
                          properties:
                            input:
                              type: object
                              properties:
                                transcription:
                                  type: object
                                  properties:
                                    model:
                                      type: string
                                      minLength: 1
                                  required:
                                  - model
                                  additionalProperties: false
                              required:
                              - transcription
                              additionalProperties: false
                          required:
                          - input
                          additionalProperties: false
                      required:
                      - type
                      - audio
                      additionalProperties: false
                required:
                - value
                - expires_at
                - session
        default:
          description: Authentication, validation, or availability error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIError'
components:
  schemas:
    OpenAIError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            param:
              type:
              - string
              - 'null'
            code:
              type:
              - string
              - 'null'
          required:
          - message
          - type
          - param
          - code
      required:
      - error
      description: OpenAI-compatible error object.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer token authentication using API keys
externalDocs:
  url: https://docs.llmgateway.io
  description: LLMGateway Documentation