Perform non-streaming chat completion inference on the service

  • POST /_inference/chat_completion/{inference_id}

The chat completion inference API enables rich responses for chat completion tasks. It only works with the chat_completion task type.

NOTE: The chat_completion task type supports both streaming and non-streaming. The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. To determine whether a given inference service supports this task type, please see the page for that service.

These services support non-streaming chat completion inference:

  • AI21
  • Azure OpenAI
  • Deepseek
  • Elastic
  • FireworksAI
  • Groq
  • Huggingface
  • IBMWatsonX
  • Llama
  • Mistral
  • NVIDIA
  • OpenAI
  • OpenShiftAI

Path Parameters

inference_id string Id required

The inference Id

Query Parameters

timeout string Duration · default: 120s

Specifies the amount of time to wait for the inference request to complete.

Response