Create embeddings
Create embeddings through the Respan gateway with automatic logging.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY.
X-Data-Respan-Params
Base64-encoded JSON object of Respan parameters. Legacy X-Data-Keywordsai-Params is still accepted.
Request
This endpoint expects an object.
model
Embedding model ID.
Allowed values:
input
Text to embed. String or array of strings.
encoding_format
Output format.
Allowed values:
dimensions
Output embedding dimensions. Only supported by text-embedding-3-* models.
customer_credentials
Per-customer LLM provider credentials.
disable_log
When true, omits input/output from the log. Metrics still recorded.
metadata
Custom key-value metadata.
customer_identifier
End user identifier.
thread_identifier
Conversation thread ID.
Response
Embedding results.
object
data
model
usage
Errors
401
Unauthorized Error