Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Chat Completion

Create a chat completion

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
modelstringRequired
timeoutany of · nullableOptionalDefault: null
numberOptional
or
integerOptional
temperaturenumber · nullableOptionalDefault: null
top_pnumber · nullableOptionalDefault: null
ninteger · nullableOptionalDefault: null
streamboolean · nullableOptionalDefault: null
stopobject · Stop · nullableOptionalDefault: null
max_tokensinteger · nullableOptionalDefault: null
presence_penaltynumber · nullableOptionalDefault: null
frequency_penaltynumber · nullableOptionalDefault: null
logit_biasobject · Logit Bias · nullableOptionalDefault: null
userstring · nullableOptionalDefault: null
seedinteger · nullableOptionalDefault: null
tool_choicestring · enumOptional

Controls whether the model calls a tool. auto lets the model decide, none disables tool calls, required forces the model to call a tool.

Possible values:
logprobsboolean · nullableOptionalDefault: null
top_logprobsinteger · nullableOptionalDefault: null
functionsstring[] · nullableOptionalDefault: null
function_callstring · nullableOptionalDefault: null
Responses
200

Chat completion result. When stream: true, the response is returned as text/event-stream instead of JSON, with OpenAI-style data: {chunk}\n\n framing terminated by data: [DONE]\n\n.

application/json
object · ChatCompletionResponseOptional

OpenAI-compatible chat completion response. Standard fields (id, object, created, model, choices, usage) are returned; provider-specific extras are stripped before responding.

post/v1/chat/completions
POST /v1/chat/completions HTTP/1.1
Host: api.arcee.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 433

{
  "model": "text",
  "messages": [
    {
      "content": "text",
      "role": "text",
      "name": "text"
    }
  ],
  "timeout": 1,
  "temperature": 1,
  "top_p": 1,
  "n": 1,
  "stream": true,
  "stop": {},
  "max_tokens": 1,
  "presence_penalty": 1,
  "frequency_penalty": 1,
  "logit_bias": {},
  "user": "text",
  "seed": 1,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "text",
        "description": "text",
        "parameters": {}
      }
    }
  ],
  "tool_choice": "auto",
  "logprobs": true,
  "top_logprobs": 1,
  "functions": [
    "text"
  ],
  "function_call": "text"
}
{}

Last updated