The surface is narrow on purpose: two metered endpoints and model: "auto". Model identity is not exposed.
ModelBeatbeta

Create a text completion

OpenAI-compatible text completion.

POST
/completions

OpenAI-compatible text completion.

Authorization

bearerAuth
AuthorizationBearer <token>

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

Header Parameters

Idempotency-Key?string

Opaque, caller-chosen key that makes a retry safe. The OpenAI SDK — the integration path ModelBeat advertises — retries 5xx and timeouts by default; without this header each retry is a new logical request, i.e. a second reservation and a second charge for one prompt. Send the same key on a retry and ModelBeat returns the original reservation: one hold, one charge.

Reusing a key for a different request body, or one whose reservation was already settled, is refused with 409. Keys longer than 255 characters are ignored (treated as absent).

Lengthlength <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/completions" \  -H "Idempotency-Key: req-8f3a1c00-2b7e-4d9a-9c11-000000000000" \  -H "Content-Type: application/json" \  -d '{    "model": "auto",    "prompt": "string"  }'
{  "id": "string",  "object": "string",  "model": "string",  "system_fingerprint": "string",  "choices": [    {      "index": 0,      "finish_reason": "string",      "message": {}    }  ],  "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": {    "request_type": "string",    "routing_info": {      "level": "advanced",      "is_fallback": true,      "tier_escalated": true    },    "latency": 0,    "chunk_index": 0  }}