Generate a chat completion
POST
https://api.genxt.ai/api/chat
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.genxt.ai/api/chat' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"messages": [
{
"role": "string",
"content": "string",
"images": [
"string"
]
}
],
"stream": true
}'
Response Response Example
{
"model": "string",
"created_at": "2019-08-24T14:15:22Z",
"message": {
"role": "string",
"content": "string"
},
"done": true,
"total_duration": 0
}
Request
Body Params application/json