CLI API reference
Create a Text Completion
Deprecated
$ ant completions createPOST/v1/complete
[Legacy] Create a Text Completion.
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.
Get Current Organization
$ ant organization retrieveGET/v1/organizations/me
Retrieve information about the organization associated with the authenticated API key.