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

# Create embeddings

`POST /v1/embeddings`

This handler simply forwards the request to the embeddings service and returns the response.

# Arguments

* `state` - Application state containing service URLs
* `payload` - The embedding request body

# Returns

Returns the JSON response from the embeddings service

# Errors

Returns a `AtomaServiceError::InternalError` if:
- The embeddings service request fails
- Response parsing fails

## Request body

- unknown

## Response `200`

Embeddings generated successfully

- unknown

## Other responses

- `500` — Internal server error

---

[API](https://skmtc.net/atomaai/apis/atoma-service.md) · [All operations](https://skmtc.net/atomaai/apis/atoma-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atomaai/atoma-service/revisions/a3d329cb3125/schema)
