Standard Chat
Basic chat completion endpoint using standard language models.
POST/v1/1/chat
POST /1/chat
Required attributes
- Name
model
- Type
- string
- Description
Default:
llama-3
- Name
messages
- Type
- array
- Description
Optional attributes
- Name
temperature
- Type
- number
- Description
Default:
0.1
- Name
max_tokens
- Type
- integer
- Description
Default:
500
- Name
top_p
- Type
- integer
- Description
Default:
1
- Name
stream
- Type
- boolean
- Description
Default:
true
- Name
logprobs
- Type
- boolean
- Description
Default:
false
This endpoint is authenticated. Get your API key ↗
Request
POST
/v1/1/chatcurl -X POST "https://api.bitmind.ai/oracle/v1/1/chat" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"model": "llama-3",
"messages": [],
"temperature": 0.1,
"max_tokens": 500,
"top_p": 1,
"stream": true,
"logprobs": false
}'
Response
{
"id": "chatcmpl-CgPOAiO6T9KfqiizhxTJpQ",
"object": "chat.completion",
"created": 1739377986,
"model": "llama-3-1-70b",
"choices": [
{
"message": {
"role": "assistant",
"content": "Hello! I'm just a language model, so I don't have feelings or emotions like humans do, but I'm functioning properly and ready to help with any questions or tasks you may have. How about you? How's your day going?"
}
}
],
"usage": {
"prompt_tokens": 19,
"completion_tokens": 86,
"total_tokens": 105
},
"system_fingerprint": null
}
Last updated: April 24, 2025