Files
bifrost/docs/openapi/paths/inference/count-tokens.yaml
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

31 lines
849 B
YAML

count-tokens:
post:
operationId: countTokens
summary: Count tokens
description: |
Counts the number of tokens in the provided messages.
tags:
- Count Tokens
requestBody:
required: true
content:
application/json:
schema:
$ref: '../../schemas/inference/count-tokens.yaml#/CountTokensRequest'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '../../schemas/inference/count-tokens.yaml#/CountTokensResponse'
'400':
$ref: '../../openapi.yaml#/components/responses/BadRequest'
'500':
$ref: '../../openapi.yaml#/components/responses/InternalError'
security:
- BearerAuth: []
- BasicAuth: []
- VirtualKeyAuth: []
- ApiKeyAuth: []