> ## Documentation Index
> Fetch the complete documentation index at: https://docs.synapsai.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate embeddings



## OpenAPI

````yaml /api-reference/openapi.json post /v1/embeddings
openapi: 3.1.0
info:
  title: SynapsAI Inference API
  version: 1.0.0
servers:
  - url: https://api.synapsai.cloud
    description: Production server
security: []
paths:
  /v1/embeddings:
    post:
      summary: Generate embeddings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SentenceEmbeddingsRequest'
      responses:
        '200':
          description: List of embeddings
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        object:
                          type: string
                        embedding:
                          oneOf:
                            - type: array
                              items:
                                type: number
                            - type: string
                              description: base64 when encoding_format == 'base64'
                        index:
                          type: integer
                  model:
                    type: string
                  created:
                    type: integer
                  id:
                    type: string
components:
  schemas:
    SentenceEmbeddingsRequest:
      allOf:
        - type: object
          description: Request to compute embeddings for sentences.
          properties:
            input:
              oneOf:
                - type: string
                - type: array
                  items:
                    type: string
              description: Single sentence string or list of sentences to embed. Required.
            encoding_format:
              type: string
              enum:
                - float
                - base64
              default: float
              description: >-
                Output encoding format for embeddings: raw floats or
                base64-encoded binary.
          required:
            - input

````