osmAPI Models API

The Models API from osmAPI — 1 operation(s) for models.

OpenAPI Specification

osmapi-models-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: osmAPI Anthropic Messages Chat Models API
  description: Anthropic-compatible messages endpoint routed through osmAPI's unified AI gateway. Supports the native Anthropic message format including system prompts, extended thinking, tool use, and streaming.
  version: 1.0.0
  contact:
    name: osmAPI
    url: https://www.osmapi.com/
servers:
- url: https://api.osmapi.com/v1
  description: Production
security:
- bearerAuth: []
tags:
- name: Models
paths:
  /models:
    get:
      operationId: listModels
      summary: List available models
      description: Returns a list of all available AI models with detailed information about each model including pricing, capabilities, and provider details.
      parameters:
      - name: include_deactivated
        in: query
        schema:
          type: string
        description: Include deactivated models in the response
      - name: exclude_deprecated
        in: query
        schema:
          type: string
        description: Exclude deprecated models from the response
      responses:
        '200':
          description: Successful response with model list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelsResponse'
      tags:
      - Models
components:
  schemas:
    Model:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        aliases:
          type: array
          items:
            type: string
        created:
          type: number
        description:
          type: string
        family:
          type: string
        architecture:
          type: object
          properties:
            input_modalities:
              type: array
              items:
                type: string
            output_modalities:
              type: array
              items:
                type: string
            tokenizer:
              type: string
        top_provider:
          type: object
          properties:
            is_moderated:
              type: boolean
        providers:
          type: array
          items:
            type: object
        pricing:
          type: object
          properties:
            prompt:
              type: string
            completion:
              type: string
            image:
              type: string
            request:
              type: string
            caching:
              type: string
            web_search:
              type: string
        context_length:
          type: integer
        per_request_limits:
          type: object
        supported_parameters:
          type: array
          items:
            type: string
        json_output:
          type: boolean
        structured_outputs:
          type: boolean
        free:
          type: boolean
        deprecated_at:
          type: string
        deactivated_at:
          type: string
        stability:
          type: string
    ModelsResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Model'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer token using osmAPI key (osmint_XXXXXXXXXXXXXXXX)