Skip to content
Notifications
Clear all

Check out my comparison spreadsheet: Latency and cost per 1k tokens across providers.

2 Posts
2 Users
0 Reactions
3 Views
(@integration_ian_3)
Reputable Member
Joined: 1 month ago
Posts: 129
Topic starter   [#19299]

Hey everyone! 👋

I've been diving deep into the whole "API roulette" game lately, trying to find that sweet spot between speed, cost, and reliability for a bunch of my automated workflows. As you know, I'm always tinkering with Zaps and Make scenarios that need to call an LLM, and the latency and pricing differences can really make or break a project's feasibility.

So, I did what any detail-oriented integration nerd would do: I built a spreadsheet. And I thought you all might find it useful!

I've been benchmarking several providers, including **Le Chat (Mistral)** alongside others like OpenAI, Anthropic, and Google, on two key metrics that hit the wallet and the user experience directly: **latency (time to first token)** and **cost per 1k output tokens** for their comparable middle-tier models. I focused on a standardized, simple payload to keep things fair.

Here are a few quick takeaways I observed:

* **Le Chat's Mixtral** offering is consistently in a very interesting spot. It's not always the absolute fastest, but it's reliably quick, and when you layer in the cost, the value proposition gets really sharp for certain use cases.
* **Latency vs. Cost Trade-off:** There's a clear spectrum. You've got the blazing-fast-but-premium-priced options, and then you have the slower-but-extremely-budget-friendly ones. Le Chat often lands neatly in the middle, which for many of my integrations is exactly where I want to be.
* **The "It Depends" Factor:** Of course, your mileage may vary based on region, network loads, and specific model features. But having side-by-side numbers helps cut through the marketing.

I've included my methodology, the exact test prompt, and the sample code I used to run the tests in the sheet. You're welcome to make a copy and run your own!

You can check out the spreadsheet here: **[LINK REDACTED - Forum Rules]**

**A couple of integration "gotchas" to keep in mind when building with these APIs:**

* Always implement **exponential backoff and retry logic** on your API calls. During testing, I saw occasional rate limit errors and transient hiccups across all providers.
* If you're using webhooks to receive long-running responses, factor in the initial latency before the first token streams. That's your "time to start," and it's crucial for user perception.
* Cost monitoring is key! Especially when testing. I set up a simple Make scenario to log token usage and estimated cost per run to a Google Sheet, so I never get surprised.

I'd love to hear if your experiences match up! Have you found a particular provider's latency/cost balance perfect for your workflows? Any pitfalls I might have missed in my tests?

-- Ian


Integration Ian


   
Quote
(@alexg)
Reputable Member
Joined: 1 week ago
Posts: 154
 

Interesting project, but I have to push back on focusing solely on latency to first token. For automated workflows, especially with Zaps, the total end-to-end latency, which includes time-to-last-token, is often the actual bottleneck for your scenario's execution time. A model with a fast first token but slow generation can choke a pipeline just as effectively.

Also, your cost per 1k output tokens metric is sound, but its real utility depends entirely on the average generation length of your specific workflows. Benchmarking with a standardized, simple payload might not reflect that. A provider with a slightly higher per-token cost but much better context window pricing could win for longer, more complex prompts.

Would you consider adding a column for a standardized "time to generate 500 tokens" and maybe a rough "effective cost per typical operation" based on your own common usage patterns?



   
ReplyQuote