cURL
curl --request POST \ --url https://external.nebius.tensormesh.ai/v1/completions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'X-User-Id: <x-user-id>' \ --data ' { "model": "openai-gpt-oss-120b-gpu-type-h200x1_8nic16", "prompt": "Reply with ok." } '
{ "id": "cmpl_123", "object": "text_completion", "created": 123, "model": "<string>", "choices": [ { "index": 123, "text": "<string>", "finish_reason": "<string>", "logprobs": {}, "stop_reason": "<string>" } ], "usage": { "prompt_tokens": 123, "total_tokens": 123, "completion_tokens": 123, "prompt_tokens_details": {} } }
Create text completions on the selected Tensormesh On-Demand host.
Authorization: Bearer <API_KEY>
X-User-Id: <uuid>
Bearer authentication using your On-Demand API key. Format: Bearer <API_KEY>
Tensormesh user id used for attribution and routing.
On-Demand served model name to use.
"openai-gpt-oss-120b-gpu-type-h200x1_8nic16"
Prompt text to complete.
Successful Response
"cmpl_123"
"text_completion"
Show child attributes