Berget AI Models API
AI model endpoints for listing and using available models
AI model endpoints for listing and using available models
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/berget-ai:berget-ai-models-api"
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.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Berget Ai Models API
version: 1.0.0
contact:
name: Berget AI Support
email: support@berget.ai
url: https://berget.ai/support
license:
name: Proprietary
url: https://berget.ai/terms
description: 'Operations tagged Models across 2 of this provider''s published API definitions: berget-ai-openapi.json, berget-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.berget.ai
description: Production API
- url: https://api.stage.berget.ai
description: Stage API
tags:
- name: Models
description: AI model endpoints for listing and using available models
paths:
/v1/models/:
get:
operationId: listModels
summary: List available models
tags:
- Models
description: 'Returns a list of available models that can be used with the API.
This endpoint is compatible with OpenAI''s models endpoint, making it easy to switch between providers.'
security: []
responses:
'200':
description: List of available models
content:
application/json:
schema:
description: List of available models
allOf:
- $ref: '#/components/schemas/ModelListResponse'
servers:
- url: https://api.berget.ai
description: Production API
- url: https://api.stage.berget.ai
description: Stage API
/v1/models/{*}:
get:
summary: Get model details by ID
tags:
- Models
description: 'Retrieves detailed information about a specific model including pricing, context window, and capabilities.
The model ID can be a canonical ID (e.g. `openai/gpt-oss-120b`) or a registered alias (e.g. `gpt-oss`).'
parameters:
- schema:
type: string
in: path
name: '*'
required: true
description: Canonical model ID or alias
security: []
responses:
'200':
description: Model details
content:
application/json:
schema:
description: Model details
allOf:
- $ref: '#/components/schemas/Model'
'404':
description: Model not found
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
description: Human-readable error message
type:
type: string
description: Error type (e.g. "invalid_request_error")
param:
description: The parameter that caused the error
type:
- string
- 'null'
code:
description: Error code
type:
- string
- 'null'
required:
- message
- type
- code
additionalProperties: false
required:
- error
additionalProperties: false
description: Model not found
operationId: getV1ModelsBy*
x-operation-id-source: derived
servers:
- url: https://api.berget.ai
description: Production API
- url: https://api.stage.berget.ai
description: Stage API
components:
schemas:
Model:
type: object
properties:
id:
type: string
minLength: 1
description: Unique identifier for the model
object:
type: string
enum:
- model
description: Object type, always "model"
created:
type: number
description: Unix timestamp when the model was created
owned_by:
type: string
minLength: 1
description: Organization that owns the model
name:
type: string
minLength: 1
description: Display name of the model
pricing:
type: object
properties:
currency:
type: string
description: Currency code (always "EUR")
input:
type: number
description: Cost per input token in EUR
output:
type: number
description: Cost per output token in EUR
cached_input:
description: Cost per cached input token (prefix-cache hit) in EUR. Present only for models with cached-input pricing.
type: number
unit:
type: string
description: Pricing unit (e.g. "€ / M Token")
required:
- currency
- input
- output
- unit
additionalProperties: false
description: Pricing information for the model
capabilities:
type: object
properties:
classification:
default: false
description: Whether the model supports classification tasks
type: boolean
embeddings:
default: false
description: Whether the model supports generating embeddings
type: boolean
formatted_output:
default: false
description: Whether the model supports formatted output
type: boolean
function_calling:
default: false
description: Whether the model supports function calling
type: boolean
json_mode:
default: false
description: Whether the model supports JSON mode
type: boolean
streaming:
default: false
description: Whether the model supports streaming output
type: boolean
vision:
default: false
description: Whether the model supports vision/image input
type: boolean
required:
- classification
- embeddings
- formatted_output
- function_calling
- json_mode
- streaming
- vision
additionalProperties: false
description: Capabilities of the model
reasoning_efforts:
description: 'Reasoning effort levels supported by the model. Send `reasoning_effort: <level>` in the request body.'
type: array
items:
type: string
quantization:
description: Quantization method used
type: string
enum:
- BF16
- FP8
- FP16
- INT4
- INT8
- MXFP4
aliases:
type: array
items:
type: string
description: Alternative names/aliases for the model
license:
type: string
description: License of the model
lifecycle_state:
type: string
description: Lifecycle state of the model (legacy — use lifecycle_status)
lifecycle_status:
type: string
enum:
- preview
- active
- deprecated
- upgrading
description: Lifecycle status of the model. Supersedes lifecycle_state.
model_path:
type: string
description: Path to the model
model_size:
type: number
description: Size of the model in billions of parameters
model_type:
type: string
description: Type of the model
parent:
description: Parent model ID
type:
- string
- 'null'
permission:
type: array
items: {}
description: List of permissions
root:
type: string
description: Root model ID
status:
type: object
properties:
up:
type: boolean
description: Whether the model endpoint is reachable
latency:
description: Round-trip latency of the last health check in milliseconds
type: number
tokens_per_second:
description: Current engine output throughput in tokens per second, measured over the last ~30 s scrape of the endpoint /metrics endpoint. This is the aggregate across all in-flight requests on the endpoint combined — 0 means the engine is idle, not slow. Absent until the engine has reported a value.
type: number
required:
- up
additionalProperties: false
description: Current status of the model endpoint
release_date:
type: string
description: Release date of the model (YYYY-MM-DD)
upgrade_to:
description: Model ID of the successor model. Present only when the model is being upgraded (lifecycle_status `upgrading`). The old model keeps serving; clients should migrate to this ID. May not be listed in the catalog until the current model retires.
type: string
minLength: 1
end_of_life:
description: End-of-life date of the model (YYYY-MM-DD)
type: string
required:
- id
- object
- created
- owned_by
- name
- pricing
- capabilities
- aliases
- license
- lifecycle_state
- lifecycle_status
- model_path
- model_size
- model_type
- parent
- permission
- root
- status
- release_date
additionalProperties: false
ModelListResponse:
type: object
properties:
object:
type: string
enum:
- list
description: Object type, always "list"
data:
type: array
items:
$ref: '#/components/schemas/Model'
description: List of models
required:
- object
- data
additionalProperties: false
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT or API key
description: 'Bearer token or API key. Pass either a JWT token or an API key (sk_ber_*) in the Authorization header as: Bearer <token>'
x-refined-from:
- berget-ai-openapi.json
- berget-ai-openapi.yml