API reference
Generation
The objects, fields and constraints behind the API.
| Field | Type & constraints |
|---|---|
requestIdrequired | string |
modelrequired | string |
textrequired | string |
finishReasonrequired | string |
usagerequired | object |
View JSON schema
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"model": {
"type": "string"
},
"text": {
"type": "string"
},
"finishReason": {
"type": "string"
},
"usage": {
"type": "object",
"additionalProperties": true
}
},
"required": [
"requestId",
"model",
"text",
"finishReason",
"usage"
],
"additionalProperties": true
}