---
title: "Create embeddings (deprecated)"
method: POST
path: "/1/ai/{product_id}/openai/v1/embeddings"
tags: ["Usage > V1 > OpenAI-compatible"]
deprecated: true
---

# Create embeddings (deprecated)

`POST /1/ai/{product_id}/openai/v1/embeddings`

> **Deprecated.**

**Deprecated route:** please use the new full OpenAI-compliant route
[POST `/2/ai/{product_id}/openai/v1/embeddings`](/docs/api/post/2/ai/{product_id}/openai/v1/embeddings)
<br><br>
Some models are in **beta** and may being subject to changes,
use [GET `/1/ai/models`](/docs/api/get/1/ai/models) to check what model are in **beta**
and see our [General Terms and Conditions](https://www.infomaniak.com/gtl/rgpd.documents).

## Path parameters

- `product_id` integer, required

## Request body

- object
  - `encoding_format` 'base64' | 'float', nullable — The encoding format of the returned embeddings. Defaults to float.
  - `input` string, required — Input text to embed. Is can be string, array of string, array of int (for tokenize sentence), array of array of int (batch of tokenize sentence)
  - `mode` 'index' | 'query', nullable — Specify the mode of the embedding request.
  - `model` string, required — Model name to use
  - `task_description` string, nullable — Optional set your custom task information in query mode

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/1c59d729611a/schema)
