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/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "meta-llama/Meta-Llama-3.1-70B-Instruct",
"store": false,
"messages": [
{
"content": "Hello!",
"role": "user"
}
],
"max_tokens": 100,
"temperature": 1,
"top_p": 0.5,
"tools": [
{
"type": "function",
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {},
"strict": true
}
}
],
"tool_choice": "none",
"reasoning_effort": "low",
"n": 64,
"stream": true,
"stream_options": null,
"stop": null,
"presence_penalty": 0,
"frequency_penalty": 0,
"logit_bias": null,
"logprobs": true,
"top_logprobs": null,
"user": null,
"response_format": null,
"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 response for the given chat conversation.
curl --request POST \
--url https://api.studio.nebius.com/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "meta-llama/Meta-Llama-3.1-70B-Instruct",
"store": false,
"messages": [
{
"content": "Hello!",
"role": "user"
}
],
"max_tokens": 100,
"temperature": 1,
"top_p": 0.5,
"tools": [
{
"type": "function",
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {},
"strict": true
}
}
],
"tool_choice": "none",
"reasoning_effort": "low",
"n": 64,
"stream": true,
"stream_options": null,
"stop": null,
"presence_penalty": 0,
"frequency_penalty": 0,
"logit_bias": null,
"logprobs": true,
"top_logprobs": null,
"user": null,
"response_format": null,
"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
.