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

# Embeddings

`POST /v1/embeddings`

## Request body

- object — Use this field according to the endpoint schema.
  - `model` string, required — Use this field according to the endpoint schema.
  - `input` string, required — Use this field according to the endpoint schema.
  - `dimensions` integer — Use this field according to the endpoint schema.
  - `encoding_format` 'float' | 'base64' — Use this field according to the endpoint schema.
  - `user` string — Use this field according to the endpoint schema.

## Response `200`

Successful Response

- object
  - `object` string, required — Use this field according to the endpoint schema.
  - `data` object[], required — Use this field according to the endpoint schema.
    - `object` string — Use this field according to the endpoint schema.
    - `index` integer — Use this field according to the endpoint schema.
    - `embedding` unknown
  - `model` string, required — Use this field according to the endpoint schema.
  - `usage` object, required — Use this field according to the endpoint schema.
    - `prompt_tokens` integer, required — Use this field according to the endpoint schema.
    - `total_tokens` integer, required — Use this field according to the endpoint schema.

---

[API](https://skmtc.net/deerapi/apis/text-to-audio-api.md) · [All operations](https://skmtc.net/deerapi/apis/text-to-audio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deerapi/text-to-audio-api/versions/b6265ced74a1/schema)
