Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
OK
The response is of type object
.
curl --request POST \
--url https://api.studio.nebius.com/v1/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "meta-llama/Meta-Llama-3.1-70B-Instruct",
"prompt": "Say this is a test",
"stream": true,
"stream_options": null,
"max_tokens": 100,
"temperature": 123,
"top_p": 123,
"n": 123,
"logprobs": 123,
"echo": true,
"stop": "<string>",
"presence_penalty": 123,
"frequency_penalty": 123,
"logit_bias": {},
"user": "<string>",
"guided_json": null,
"guided_regex": null,
"guided_choice": null,
"extra_body": null,
"service_tier": "auto"
}'
{
"id": "cmpl-bd18c4194f544c189578cfcb273a2f74",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "Hello! It's nice to meet you. Is there something I can help you with, or would you like to chat?",
"role": "assistant"
}
}
],
"created": 1717516032,
"model": "meta-llama/Llama-3.3-70B-Instruct",
"object": "chat.completion",
"usage": {
"completion_tokens": 26,
"prompt_tokens": 13,
"total_tokens": 39
}
}
Creates a model completion for the given input prompt.
curl --request POST \
--url https://api.studio.nebius.com/v1/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "meta-llama/Meta-Llama-3.1-70B-Instruct",
"prompt": "Say this is a test",
"stream": true,
"stream_options": null,
"max_tokens": 100,
"temperature": 123,
"top_p": 123,
"n": 123,
"logprobs": 123,
"echo": true,
"stop": "<string>",
"presence_penalty": 123,
"frequency_penalty": 123,
"logit_bias": {},
"user": "<string>",
"guided_json": null,
"guided_regex": null,
"guided_choice": null,
"extra_body": null,
"service_tier": "auto"
}'
{
"id": "cmpl-bd18c4194f544c189578cfcb273a2f74",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "Hello! It's nice to meet you. Is there something I can help you with, or would you like to chat?",
"role": "assistant"
}
}
],
"created": 1717516032,
"model": "meta-llama/Llama-3.3-70B-Instruct",
"object": "chat.completion",
"usage": {
"completion_tokens": 26,
"prompt_tokens": 13,
"total_tokens": 39
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OK
The response is of type object
.