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

# Create embeddings

> Creates embeddings for the given input text.




## OpenAPI

````yaml /api-reference/corti-models/corti-models-openapi.yml post /embeddings
openapi: 3.0.3
info:
  title: Corti S1 API
  description: >
    OpenAI-compatible and Anthropic-compatible API for Corti's LLM models.

    ## Available Models

    | Model | Description | |------|-------------| | `corti-s1` |
    Full-capability model | | `corti-s1-instant` | Fast variant of corti-s1 | |
    `corti-s1-mini` | Smaller model | | `corti-s1-mini-instant` | Fast variant
    of corti-s1-mini |

    `-instant` variants are optimized for speed and lower token usage.

    ## Reasoning

    Some models return chain-of-thought reasoning in a `reasoning` field (chat
    completions) or as structured output items with `type: "reasoning"`
    (responses API). The `-instant` variants do not produce reasoning.

    | Model | Chat Completions | Anthropic Messages | |-------|:---:|:---:| |
    `corti-s1` | `reasoning` field present | Text content only | |
    `corti-s1-instant` | `reasoning: null` | Text content only | |
    `corti-s1-mini` | `reasoning` field present | Text content only | |
    `corti-s1-mini-instant` | `reasoning: null` | Text content only |

    ## Authentication

    All endpoints require a bearer token issued by Corti. Pass it in the
    `Authorization` header as `Bearer <token>`.
  version: 1.0.0
  contact:
    name: Corti AI
    url: https://corti.app
servers:
  - url: https://ai.eu.corti.app/v1
    description: Production (EU)
security:
  - bearerAuth: []
paths:
  /embeddings:
    post:
      tags:
        - Embeddings
      summary: Create embeddings
      description: |
        Creates embeddings for the given input text.
      operationId: createEmbedding
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmbeddingRequest'
            examples:
              Basic:
                summary: Basic embedding
                value:
                  model: corti-s1
                  input: Hello world
      responses:
        '200':
          description: Embedding response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmbeddingResponse'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    EmbeddingRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          enum:
            - corti-s1
            - corti-s1-instant
            - corti-s1-mini
            - corti-s1-mini-instant
          default: corti-s1
        input:
          oneOf:
            - type: string
              description: Single text input.
            - type: array
              items:
                type: string
              description: Batch of text inputs.
    EmbeddingResponse:
      type: object
      description: OpenAI embeddings response.
      properties:
        object:
          type: string
          enum:
            - list
        model:
          type: string
        data:
          type: array
          items:
            type: object
            properties:
              object:
                type: string
                enum:
                  - embedding
              index:
                type: integer
              embedding:
                type: array
                items:
                  type: number
                description: Embedding vector.
        usage:
          type: object
          properties:
            prompt_tokens:
              type: integer
            total_tokens:
              type: integer
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message or object with message.
        detail:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        Use a Corti-issued bearer token.

````