---
title: "Embeddings"
method: POST
path: "/v1/embeddings"
---

# Embeddings

`POST /v1/embeddings`

Embeddings endpoint for Inflection hosted models.

## Request body

- EmbeddingRequest — unresolved $ref

## Response `200`

Returns the embeddings

- EmbeddingResponse
  - `id` string
  - `object` string
  - `created` integer
  - `model` string, required
  - `data` EmbeddingResponseData[], required
    - `index` integer, required
    - `object` string
    - `embedding` union, required
      - number[]
      - string
  - `usage` UsageInfo, required
    - `prompt_tokens` integer
    - `total_tokens` integer
    - `completion_tokens` integer, nullable
    - `prompt_tokens_details` PromptTokenUsageInfo
      - `cached_tokens` integer, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/inflection/apis/inflection-inference-api.md) · [All operations](https://skmtc.dev/inflection/apis/inflection-inference-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inflection/inflection-inference-api/revisions/33cb516e2543/schema)
