OpenAIOpenAI API
POST/embeddings
Manage create Embedding.
Contract-preserving POST Endpoint for create Embedding in the OpenAI API. Model and resource-specific values are supplied by the caller at runtime.
All 288 OpenAI Platform REST endpoints from a fixed MIT-licensed official revision, including typed SSE streaming and Realtime call management. Hub provides documentation and an independent SDK/CLI, but never proxies model, account, or usage data; callers connect directly with local API keys.
Request
- operationId
createEmbedding- Server
https://api.openai.com/v1- Authentication
- ApiKeyAuth, AdminApiKeyAuth
Request parameters
No URL, query, or header parameters.
Request body
CreateEmbeddingRequestrequired
Content-Type: application/json
Properties: dimensionsencoding_formatinputmodeluser
Responses
200
CreateEmbeddingResponseapplication/json
Successful supplier response.
Properties: datamodelobjectusage
429
ErrorResponseapplication/json
Supplier response with HTTP status 429.
Properties: error
{
"data": {
"embedding": [
0
],
"index": 0,
"object": "embedding"
},
"object": "list",
"usage": {
"prompt_tokens": 0,
"total_tokens": 0
}
}