POST
/v1/messages

Query Parameters

beta?boolean|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/messages" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "max_tokens": 0,    "messages": [      {        "role": "user",        "content": "string"      }    ]  }'
{
  "property1": null,
  "property2": null
}
{
  "status_code": 400,
  "detail": "Bad Request",
  "extra": {}
}