CLI API reference
Create a Message
$ ant messages createPOST/v1/messages
Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation.
Count tokens in a Message
$ ant messages count-tokensPOST/v1/messages/count_tokens
Count the number of tokens in a Message.