Skip to main content
POST
https://api.tensormesh.ai
/
v1
/
models
/
{modelId}
:chat
Chat With Model
curl --request POST \
  --url https://api.tensormesh.ai/v1/models/{modelId}:chat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>",
  "body": "<string>"
}
'
{
  "response": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication using an access token. Format: Bearer <access_token>

Path Parameters

modelId
string
required

Model ID of the model to chat with. Must be provided.

Body

application/json

ChatWithModelRequest contains a chat message to send to the model.

userId
string

User ID for authorization. Must be a valid UUID.

body
string

Chat message body.

Response

A successful response.

ChatWithModelResponse contains the model's response to the chat message.

response
string

The model's response message.