Upload File

Body
required
application/json
Responses
  • application/json
  • application/json
Request Example for post/files/upload
curl https://ai.hatz.ai/v1/files/upload \
  --request POST \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: YOUR_SECRET_TOKEN' \
  --form 'file=@filename' \
  --form 'only_calculate_tokens=false'
null