Portkey (@PortkeyAI) header
Portkey (@PortkeyAI) profile picture

for those who take the leap towards production AI

SF, BLR
Joined March 2023
Photo by Portkey (@PortkeyAI)Photo by Portkey (@PortkeyAI)Photo by Portkey (@PortkeyAI)Photo by Portkey (@PortkeyAI)Photo by Portkey (@PortkeyAI)Photo by Portkey (@PortkeyAI)Photo by Portkey (@PortkeyAI)Photo by Portkey (@PortkeyAI)Photo by Portkey (@PortkeyAI)Photo by Portkey (@PortkeyAI)
Portkey retweeted
A great AI Gateway that stays niche is a nice tool. A great AI Gateway that becomes ubiquitous changes how the industry works. Today, @PortkeyAI has signed a definitive agreement to join @PaloAltoNtwks
3
2
9
1,086
We’re excited to share our intent to acquire @PortkeyAI. Once the acquisition has closed, we plan to integrate Portkey’s AI Gateway into Prisma AIRS to establish a control plane to secure autonomous agents, thereby allowing companies to accelerate AI innovation with confidence. bit.ly/4tEwAZX
4
8
14
53
29,533
Portkey retweeted
introducing portkey cli. 1 command to set up claude code or codex with portkey's gateway. add llms, mcps, and skills across your entire eng org. every agent gets the same batteries, no manual setup. try it today: npx portkey setup
2
2
6
536
Portkey retweeted
the diagram is incomplete. i've fixed it
Build long-running agents with more control over agent execution. New capabilities in the Agents SDK: • Run agents in controlled sandboxes • Inspect and customize the open-source harness • Control when memories are created and where they’re stored
3
1
7
791
Portkey retweeted
LLM Pricing Is 100x Harder Than You Think why do @karpathy, @thdxr, @simonw, @swyx, @opeclaw all maintain their own model pricing data? because nobody else has solved it. we've tracked $180M+ in llm spend on Portkey's gateway. here's why it breaks, and how we solve it 🧵 Every project I look at maintains its own model data. A JSON with names, prices, maybe context limits. @karpathy has one in LLM CLI. @thdxr built models.dev for OpenCode because there was no canonical source for pricing and capabilities across providers. @simonw built llm-prices.com and has 67+ blog posts tracking pricing changes. @swyx tracks model releases through AI News at Latent Space almost daily. LibreChat has one. Pi has one. @theo's T3 code has one. Everyone rebuilds this independently. It works for a few weeks, then drifts. And it's not just pricing. Model names change. Context limits get updated silently. New billing dimensions show up and nobody's JSON has a field for them. At Portkey we've tracked $180M+ in LLM spend across 3,500+ models over three years. The naive formula says cost = tokens × rate. That's the tip of the iceberg. Below the surface, 6 patterns break every in-house implementation I've seen: 1/ Thinking tokens @OpenAI's o3, @AnthropicAI's Claude with extended thinking: tokens consumed for internal reasoning that never appear in the response. You still get billed. If your system only counts visible output tokens, you're undercounting agentic workloads by 30-40%. 2/ Cache asymmetry Anthropic charges 25% MORE for cache writes. OpenAI charges nothing for writes. Apply a single "cache discount" multiplier across both and your numbers are wrong for at least one provider. Looks like a rounding error until you're processing millions of cached requests a day. 3/ Context thresholds Cross 128K tokens and per-token cost silently doubles on many models. $0.075/M becomes $0.15/M. Nothing in the API response tells you which tier you hit. Openai, Anthropic, Google all do this. Almost no one accounts for it. 4/ Same model, different prices Kimi K2.5: $0.50/$2.80 on @TogetherCompute, $0.60/$3.00 on Fireworks. @awscloud Bedrock prepends regional prefixes that need stripping before you can look up the price. @Azure returns deployment names instead of model identifiers. You need an extra API call just to figure out what model you're running. 5/ Non-token billing DALL·E 3 bills by resolution. Video charges per second. Realtime audio has separate input/output rates. Fine-tuning is per-token on some models, per-hour on others. "cost = tokens × rate" was never the full picture. 6/ New dimensions keep appearing Started with 2 billing dimensions. Now there are 20+. Web search has per-query pricing. Googles's Grounding with Search has its own rate. Tool use, code execution, each has its own cost model. New ones show up faster than providers update their docs. The whole industry is focused on harness design, agents, benchmarks. Meanwhile every project maintains its own model metadata in a JSON that's stale by the time you ship. There's literally open issues on OpenCode asking for better models[dot]dev integration because manually tracking this is "tedious and error-prone." @stripe clearly sees this problem too. They just launched their own AI Gateway specifically for LLM token billing. Same core insight: the centralized proxy is the natural place to solve cost attribution. We've been solving this at Portkey for three years. We open-sourced all of it 👇
3
2
14
1,217
Replying to @PortkeyAI @jumbld
Incredible momentum!
1
1
171
Portkey retweeted
Special thanks to the teams from @truefoundry, @PortkeyAI , PitCrew, and @composio for keeping the conversation open and sharing what they’ve learned See you all in the next one! @rishikulkarni | @anuraag_kgp | @retrovrv | Prateek Karnal | @parth_dalmia | Amitabh Nagpal
3
6
528
Portkey retweeted
Last week, We hosted a group of builders for our Agentic Infra Meetup. We spent the morning digging into the reality of agent orchestration, observability, and the infrastructure required to make AI agents actually work.
🤖 Made with AI
1
3
12
696
Over 500 billion AI tokens pass through Portkey every single day. Every team shipping AI in production hits the same wall. The prototype works, but at scale the system has to juggle multiple models, manage token costs that compound fast, absorb latency spikes, and hold together on infrastructure that was never built for AI workloads. Most companies underestimate this layer until it becomes a problem. That is the problem Rohit Agarwal is solving with Portkey, an AI gateway that sits between applications and the models, whether that’s GPT-4, Claude, or Gemini. With 24,000 companies routing their AI through Portkey, Rohit sits on ground-level data on how AI is actually being used in production. Which models enterprises are betting on. Where costs are quietly climbing. How usage patterns shift as companies move from pilots to real products. When AI spend surpasses cloud spend, and Rohit believes it will, the infrastructure layer sitting underneath it becomes one of the most important bets in enterprise tech. This episode explores what it takes to run AI systems at that scale. @PortkeyAI | @jumbld Catch up the full conversation here: be.neon.fund/Rohit-on-the-Ne…
3
1
4
1,102
Portkey retweeted
We processed 1 Trillion llm tokens and 1 Million llm spend today on Portkey at least this saas is thriving
3
2
21
914
Portkey retweeted
Super to see so many Lightspeed portfolio companies presenting here at @MontySummit in LA - @ScrutAutomation, @acceldataio, @composio, @PixxelSpace, Bridgetown Research, @PortkeyAI - all AI-native approaches to GRC, data management, tools automation, AI gateway, consulting / research and more. @awaisahmedna @jumbld @AayushGhoshCho2 @KaranVaidya6 @hershsah
2
1
1
15
2,528
Replying to @chamath
You should use @PortkeyAI for model switching and team based token cost budgeting. @jumbld
3
2
7
1,309
Portkey retweeted
Shipped something today that sounds boring but is genuinely the most requested feature we've had at @PortkeyAI One tab. Every AI provider, model, API key, broken down by cost, latency, and success rate. When you're routing 22M+ requests across Anthropic, OpenAI, and Bedrock every day... you just want the damn summary.
4
1
1
14
1,633
Great to see @jumbld and the team at @PortkeyAI turning consistent customer feedback into a shipping moment: a unified view across providers, models, API keys, and workspaces. Small product decisions like this make a big difference for platform teams. This is what customer-centricity looks like 👏
Shipped something today that sounds boring but is genuinely the most requested feature we've had at @PortkeyAI One tab. Every AI provider, model, API key, broken down by cost, latency, and success rate. When you're routing 22M+ requests across Anthropic, OpenAI, and Bedrock every day... you just want the damn summary.
1
2
7
886
1. The Missing Control Layer 🧠 Most teams track AI costs in spreadsheets and pray they do not get 502 errors at 2am. @PortkeyAI fixes this. They built the ultimate control panel that sits exactly between your app and your LLM providers. It handles routing, observability, and guardrails from one clean interface.
1
1
17
2,667
That video is from @PortkeyAI and the product lives up to the creative. @jumbld have been building the infrastructure layer for LLM apps.  One API, one control panel, 1,600+ providers. OpenAI, Anthropic, Google, open-source.  All in one place. portkey.ai
1
1
3
6,701
Portkey retweeted
Taking to engineers who are at scale, looking at millions of traces and multiple subagents trajectories and hand-off happening in context on challenges posed on UX, filtering, traceability of these. Plus evals against failure in hand-off and tool failures. Had tough time keeping up with @rachittshah pace of dropping insights and my ability to process it. 😅 Good un-conference style but free flowing conversation event from @PortkeyAI
1
6
621
saw this cool LED outside of portkey's office that shows their token usage leaderboard for different models
3
4
1
49
6,023