---
title: "Create embeddings"
method: POST
path: "/v1/embeddings"
tags: ["embeddings"]
---

# Create embeddings

`POST /v1/embeddings`

## Request body

- CoreEmbeddingRequest
  - `dimensions` integer
  - `encoding_format` string
  - `input` unknown
  - `model` string
  - `provider` string — Gateway routing hint; stripped before upstream execution.

## Response `200`

OK

- CoreEmbeddingResponse
  - `data` CoreEmbeddingData[]
    - `embedding` object
    - `index` integer
    - `object` string
  - `model` string
  - `object` string
  - `provider` string
  - `usage` CoreEmbeddingUsage
    - `prompt_tokens` integer
    - `total_tokens` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `429` — Too Many Requests
- `502` — Bad Gateway

## Changes

- **2026-08-22** `496ff50bdfef` — 4 info
  - added the optional property `error/provider` to the response with the `400` status
  - added the optional property `error/provider` to the response with the `401` status
  - added the optional property `error/provider` to the response with the `429` status
  - added the optional property `error/provider` to the response with the `502` status
- **2026-04-19** `1a90f5d80e5a` — 24 warning, 4 info
  - removed the optional property `code` from the response with the `400` status
  - removed the optional property `code` from the response with the `401` status
  - removed the optional property `code` from the response with the `429` status
  - removed the optional property `code` from the response with the `502` status
  - …24 more

[Change history](https://skmtc.dev/enterpilot/apis/gomodel-api/changes/v1/embeddings/post.md)

---

[API](https://skmtc.dev/enterpilot/apis/gomodel-api.md) · [All operations](https://skmtc.dev/enterpilot/apis/gomodel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/enterpilot/gomodel-api/revisions/496ff50bdfef/schema)
