Skip to main content
POST
{base_url}
/
v1
/
messages
/
count_tokens
Error
A valid request URL is required to generate request examples
{
  "input_tokens": 123
}

Documentation Index

Fetch the complete documentation index at: https://gomodel.enterpilot.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Anthropic Messages request

max_tokens
integer
messages
object[]
metadata
object
model
string
stop_sequences
string[]
stream
boolean
system
temperature
number
thinking
object
tool_choice
object
tools
object[]
top_k
integer
top_p
number

Response

OK

input_tokens
integer