POST
/
v2
/
generate
/
{project_id}
curl --request POST \
  --url https://api.metatext.ai/v2/generate/{project_id} \
  --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": {}
}

Path Parameters

project
any
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.