chat

Count Chat Tokens

post/v1/chat/count_tokens

Request

Request body

modelstring required
adaptorstring nullable
temperaturenumber nullable
top_pnumber nullable
top_kinteger nullable
ninteger nullable
max_tokensinteger nullable
streamboolean nullable
presence_penaltynumber nullable
frequency_penaltynumber nullable
userstring nullable
logprobsboolean nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 7 revisions of this API.