Chat

Given a list of messages comprising a conversation, the model will return a response.

Create Chat Completion

POST https://api.fuelix.ai/v1/chat/completions

Creates a model response for the given chat conversation.


Request Body (Required)

  • messages (array, required):
    A list of messages comprising the conversation so far. Depending on the model used, different message types (modalities) are supported, like text, images, and audio.

  • model (string, required):
    The ID of the model to use for the completion.

This API endpoint is compatible with the OpenAI Chat Completions API specification. Therefore, you can explore additional parameters, advanced features, and detailed usage guidance in the official OpenAI documentation.


Example Request (cURL)

curl https://api.fuelix.ai/v1/chat/completions \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "messages": [
    {
      "role": "",
      "content": ""
    }
  ],
  "model": ""
}'

Did this page help you?