API Reference
API Reference
Chat Completions
POST https://api.float16.cloud/v1/chat/completions
Headers
Name
Type
Description
authorization*
string
Examples: float16-api-123e4567-e89b-12d3-a456-426655440000
Request Body
Name
Type
Description
model*
string
Enum ("SeaLLM-7B-v2.5", "SeaLLM-7B-v3", "SQLCoder-7B-v2")
message*
array of object
role (required) : Enum ("system", "user", "assistant")
content (required) : String
stream
boolean
default : false
max_tokens
integer or null
Max Tokens (integer) or Max Tokens (null)
{
"id": "string",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "string",
"role": "assistant",
},
"text": "string"
}
],
"created": 0,
"model": "string",
"object": "chat.completion",
"usage": {
"completion_tokens": 0,
"prompt_tokens": 0,
"total_tokens": 0
}
}Last updated