POST
/
v2
/
chat
/
completions
curl --request POST \
  --url https://api.metatext.ai/v2/chat/completions \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "<string>",
  "messages": [
    {}
  ],
  "temperature": 0.2,
  "stop": "<string>",
  "max_tokens": 100,
  "model": "<string>"
}'
{
  "id": "<string>",
  "object": "text_completion",
  "choices": [
    "<any>"
  ],
  "created": 123,
  "model": "<string>",
  "system_fingerprint": "<string>",
  "usage": {},
  "metadata": {}
}

Query Parameters

project
any

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.