Completions

Post Completions

Post a completion request to the ai model.

Returns:

- StreamingResponse when request.stream=True

- CompletionResponse when request.stream=False
post/chat/completions

Request

  • Base URL: https://ai.hatz.ai/v1
  • URL: https://ai.hatz.ai/v1/chat/completions
  • Auth: API key in header X-API-Key

Request body

modelstring nullable

The AI model to use for processing. Please use the unique name of the model, not the display name

streamboolean

Whether to stream the response

file_uuidsstring[] nullable

The list of file uuids to process

Response

Successful Response

OR

Changes

No recorded changes to this operation across all 1 revision of this API.