Create chat completions

Generates a model response for the given conversation.

POST
/v1/chat/completions

Authorization

BearerAuth
AuthorizationBearer <token>

API key is required to authorize requests. Obtain a key from your Atlas Cloud dashboard.

In: header

Request Body

application/json

Chat completion request payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/v1/chat/completions" \  -H "Content-Type: application/json" \  -d '{    "model": "deepseek-ai/DeepSeek-V3.1",    "messages": [      {        "role": "user",        "content": "what is difference between http and https"      }    ],    "max_tokens": 32767,    "temperature": 1,    "top_p": 0.9,    "top_k": 50,    "repetition_penalty": 1.1,    "stream": false  }'
{  "id": "string",  "object": "string",  "created": 0,  "model": "string",  "choices": [    {      "index": 0,      "message": {        "role": "user",        "content": "string"      },      "finish_reason": "string"    }  ],  "usage": {    "prompt_tokens": 0,    "completion_tokens": 0,    "total_tokens": 0  }}

Last updated on