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
model
string
required
prompt
string
messages
object[]
temperature
number
default:0.2
stop
string
max_tokens
integer
default:100

Response

200
application/json
Successful Response
id
string
required
choices
any[]
required
created
integer
required
model
string
required
usage
object
required
object
string
default:text_completion
system_fingerprint
string
metadata
object