Berget AI Embeddings API

Create vector embeddings from text for semantic search and similarity comparisons

GitHub OpenAPI

Operations 1

POST /v1/embeddings/ Create embeddings #

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/berget-ai:berget-ai-embeddings-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. 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 Specification

berget-ai-embeddings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Berget Ai Embeddings 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 Embeddings 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: Embeddings
  description: Create vector embeddings from text for semantic search and similarity comparisons
paths:
  /v1/embeddings/:
    post:
      operationId: createEmbedding
      summary: Create embeddings
      tags:
      - Embeddings
      description: 'Creates embeddings for the provided input text. Compatible with OpenAI''s embeddings API.


        Embeddings are vector representations of text that can be used for:

        - Semantic search

        - Clustering

        - Recommendations

        - Anomaly detection

        - Classification


        ## Quick Start


        The simplest request only requires the input text:

        ```json

        {

        "input": "This is a sample text to create embeddings for."

        }

        ```


        The API will use the default model (intfloat/multilingual-e5-large-instruct) which supports 100+ languages.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmbeddingRequestInput'
      security:
      - BearerAuth: []
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmbeddingResponse'
        '400':
          description: Invalid request
          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: Invalid request
        '401':
          description: Authentication error
          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: Authentication error
        '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
        '429':
          description: Rate limit exceeded
          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: Rate limit exceeded
        '500':
          description: Server error
          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: Server error
        '503':
          description: Service unavailable
          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: Service unavailable
    servers:
    - url: https://api.berget.ai
      description: Production API
    - url: https://api.stage.berget.ai
      description: Stage API
components:
  schemas:
    EmbeddingResponse:
      type: object
      properties:
        object:
          type: string
          enum:
          - list
        data:
          type: array
          items:
            type: object
            properties:
              object:
                type: string
                enum:
                - embedding
              index:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
              embedding:
                anyOf:
                - type: array
                  items:
                    type: number
                - type: string
                description: The embedding vector (float array or base64-encoded string)
            required:
            - object
            - index
            - embedding
            additionalProperties: false
        model:
          type: string
          description: ID of the model used
        usage:
          type: object
          properties:
            prompt_tokens:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
              description: Number of prompt tokens
            total_tokens:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
              description: Total number of tokens
          required:
          - prompt_tokens
          - total_tokens
          additionalProperties: false
      required:
      - object
      - data
      - model
      - usage
      additionalProperties: {}
    EmbeddingRequestInput:
      type: object
      properties:
        model:
          type: string
          minLength: 1
          description: ID of the model to use
        input:
          anyOf:
          - type: string
            minLength: 1
          - minItems: 1
            maxItems: 2048
            type: array
            items:
              type: string
              minLength: 1
          - minItems: 1
            maxItems: 8192
            type: array
            items:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
          - minItems: 1
            maxItems: 2048
            type: array
            items:
              minItems: 1
              maxItems: 8192
              type: array
              items:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
          description: Input text(s) or token ID(s) to embed
        dimensions:
          description: Number of dimensions in the output
          type: integer
          minimum: 1
          maximum: 9007199254740991
        encoding_format:
          default: float
          description: Format of the embeddings
          type: string
          enum:
          - float
          - base64
        user:
          description: End-user identifier for rate limiting
          type: string
      required:
      - model
      - input
      additionalProperties: {}
  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