ChatCompletionsFormat

Create model responses based on conversation history. Supports streaming and non-streaming output.

Compatible with OpenAI Chat Completions API.

POST /v1/chat/completions https://api.covanexus.com
Authorization
Body

Authorization

Authorization BearerAuth

Authorization Bearer <token>

Use Bearer Token authentication. Format: Authorization: Bearer $COVA_NEXUS_API_KEY

in: header

Request Body

application/json

model* string
Model ID
messages* array[object]
Conversation message list
temperature? number
Sampling temperature
Default 1  |  Range 0 ≤ value ≤ 2
top_p? number
Kernel sampling parameters
Default 1  |  Range 0 ≤ value ≤ 1
n? integer
Generate quantity
Default 1 ≥ value
stream? boolean
Whether to stream output
Default false
stream_options? object
Streaming output options
stop? string | array[string]
stop sequence
max_tokens? integer
Maximum number of generated Tokens
max_completion_tokens? integer
Maximum number of completion tokens
presence_penalty? number
There is punishment
Default 0  |  Range -2 ≤ value ≤ 2
frequency_penalty? number
frequency penalty
Default 0  |  Range -2 ≤ value ≤ 2
logit_bias? object
word offset
user? string
User ID
tools? array[object]
List of available tools (Function Calling)
tool_choice? string | object
Tool selection strategy
response_format? object
response format
seed? integer
random seed
reasoning_effort? string
Inference strength (model used to support inference)
Value in "low" | "medium" | "high"
modalities? array[string]
Output modal
audio? object
Audio output configuration

Response Body

status codeType
200application/json
400application/json
429application/json
curl -X POST "https://api.covanexus.com/v1/chat/completions" \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-4",
  "messages": [
    {
      "role": "system",
      "content": "string"
    },
    {
      "role": "user",
      "content": "string"
    }
  ]
}'
200
400
429
{
  "id": "string",
  "object": "chat.completion",
  "created": 0,
  "model": "string",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "system",
        "content": "string"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 0,
    "completion_tokens": 0,
    "total_tokens": 0
  }
}

BearerAuth