Chat
Create Chat Completion
This endpoint is compatible with the OpenAI library. If certain parameters are not supported by the OpenAI library, they can be provided in the extra_body field of the OpenAI request.<br/>When creating the OpenAI object, set the base_url as the API domain followed by /v1.
post/v1/chat/completions
Request
- Base URL: https://api.fanar.qa (the document declares no server; this is the origin it was published from)
- URL: https://api.fanar.qa/v1/chat/completions
- Auth: HTTP bearer
Request body
Example request
{
"model": "Fanar",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}Response
Chat completion response
Changes
No recorded changes to this operation across all 1 revision of this API.