Skip to main content
POST
Create embeddings

요청 본문

string
필수
사용할 임베딩 모델 (예: text-embedding-3-small, text-embedding-3-large).
string | string[]
필수
임베딩할 텍스트입니다. 단일 문자열 또는 문자열 배열이 가능합니다.
string
기본값:"float"
임베딩 형식입니다. float 또는 base64.
integer
출력 임베딩의 차원 수입니다 (모델에 따라 다름).

응답

예제

배치 임베딩

단일 요청에서 여러 텍스트를 임베딩할 수 있습니다:

인증

Authorization
string
header
필수

API key authentication. Pass your OpenModex API key as a Bearer token in the Authorization header: Authorization: Bearer omx_sk_...

본문

application/json

Request body for creating embeddings.

model
string
필수

ID of the model to use.

input
필수

Input text to embed. Can be a single string or an array of strings.

encoding_format
enum<string>
기본값:float

The format to return the embeddings in.

사용 가능한 옵션:
float,
base64
dimensions
integer

The number of dimensions the resulting output embeddings should have. Only supported by certain models.

user
string

A unique identifier representing your end-user.

응답

Embedding response.

Response from an embedding request.

object
enum<string>

The object type, always 'list'.

사용 가능한 옵션:
list
data
object[]

A list of embedding objects.

model
string

The model used to generate the embeddings.

usage
object

Usage statistics for the embedding request.