Create embeddings
OpenAI-compatible embeddings. Real inference — a provider is called and paid for this request — but this path is **not metered by ModelBeat**: no balance hold is taken, no `usage.cost` is attached, and the call does not appear in usage history. Do not build a production integration that depends on this endpoint's cost or usage being tracked.
OpenAI-compatible embeddings. Real inference — a provider is called and paid for
this request — but this path is not metered by ModelBeat: no balance hold is
taken, no usage.cost is attached, and the call does not appear in usage
history. Do not build a production integration that depends on this endpoint's
cost or usage being tracked.
Authorization
bearerAuth A ModelBeat API key, prefixed mb_live_, sent as Authorization: Bearer <key>.
Keys are issued in the ModelBeat console and are scoped to one tenant. The
example value used throughout this document
(mb_live_EXAMPLE_NOT_A_REAL_KEY_00000000000000000000) is a placeholder and
will not authenticate.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/embeddings" \ -H "Content-Type: application/json" \ -d '{ "model": "string", "input": "string" }'{ "object": "list", "data": [ { "index": 0, "object": "embedding", "embedding": [ 0 ] } ], "model": "string", "usage": { "prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0, "cost": { "input_tokens_cost": 0, "output_tokens_cost": 0, "reasoning_tokens_cost": 0, "citation_tokens_cost": 0, "search_queries_cost": 0, "request_cost": 0, "total_cost": 0 } }, "extra_fields": {}}