v3
latestOpenAPI 3.0.02026-08-081996601.2 MBEncoders
Create an encoder
Creates a new encoder.
post/v2/encoders
Headers
Request-Timeoutinteger
The platform makes a best effort to complete the request in the specified seconds, or it times out.
Request-Timeout-Millisinteger
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Example request
{
"name": "openai-text-encoder",
"description": "Text encoder for product catalog search",
"uri": "https://api.openai.com/v1/embeddings",
"model": "text-embedding-ada-002",
"auth": {
"type": "bearer",
"token": "abcdef......"
}
}Response
The created encoder.
Example response
{
"id": "enc_1",
"name": "openai-text-encoder",
"type": "openai-compatible",
"output_dimensions": 1536,
"default": true,
"enabled": true
}