CLI API reference
Create a Message
$ ant messages createSend 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-tokensCount the number of tokens in a Message.
User Profiles
Register the end customers that your platform serves, so each request can name who it's for. To get started, see the User profiles guide.
Create User Profile
$ ant user-profiles createRegister one of your end customers and get the ID to send on the requests you make for them.
List User Profiles
$ ant user-profiles listList the user profiles in your organization, newest first by default.
Get User Profile
$ ant user-profiles retrieveGet a user profile by ID to check the details stored for it.
Update User Profile
$ ant user-profiles updateChange the details of a user profile, leaving the fields that you don't send as they are.
Delete User Profile
$ ant user-profiles deleteDelete a user profile, for example when the end customer closes their account.
Get Current Organization
$ ant organization retrieveRetrieve information about the organization associated with the authenticated API key.