Connect Other AI service with usage per token (for example Mistral) to Optimeter
These are the ways to get the cost of Other AI service with usage per token (for example Mistral) into Optimeter, best first. They are the same steps the guide in the app shows.
Upload in Optimeter's format
For a service that is not in the list: fill in Optimeter's template and upload it, once a month. Mistral: its Admin API key can also write, so Optimeter does not ask for it.
3 steps, about 12 min. Every month.
Enter the source name
In Optimeter
Write the service's name in lower case, for example mistral. The same name is used every month.
Download the template and fill it in
In Optimeter
Download the template (only the header row) and read the column guide: one line per column with an example value. Fill in one row per day and key.
Upload the file
In Optimeter
Upload the file. Optimeter shows what would be saved before anything is saved.
Common mistakes
- The file has other columns than the template.
- Start from the template and do not change the column headers.
- The same service shows twice.
- The source name was written differently. Use exactly the same source name every time.
Send to Optimeter's API
Your own system sends the usage to Optimeter with an Optimeter key. Done once.
3 steps, about 5 min. Once.
What Optimeter may read: The Optimeter key can only send usage to your organization in Optimeter. It is shown once and stored only as a checksum.
Create an Optimeter key
In Optimeter
Create the key here in the step. It is shown only once; store it in your system.
Copy the example
In Optimeter
Copy the example: the address, the header Authorization: Bearer $OPTIMETER_KEY and one post in JSON with your source name.
Send a test post
In Optimeter
Send the example with ?dry_run=1 in the address. The guide shows the answer, for example that one post would be created. The test post is never saved.
Common mistakes
- The same service shows twice.
- The source name was written differently. Use exactly the same source name in every post.