We made AI on Convex way simpler
I've been asking for this one for two years. Convex AI Gateway lets you call AI models from your Convex actions without signing up for another provider account or managing provider API keys. It all goes through your Convex bill. In this video I walk through the code, try text generation, embeddings, image generation and Jev decisions, and look at the usage reporting and spend limits. Get started: https://docs.convex.dev/ai-gateway/setup AI Gateway overview: https://docs.convex.dev/ai-gateway/overview Usage and billing: https://docs.convex.dev/ai-gateway/usage-and-billing 00:00 AI calls without another account 00:40 How AI Gateway works 01:05 A look at the code 02:00 Trying the demos 02:47 Why I wanted this in Convex 04:22 Usage reporting and spend limits 05:09 Wrapping up A couple of things to know: AI Gateway requires a paid Convex plan. Image generation and Jev decisions are currently in alpha. A deployment's disable threshold can disable the entire deployment, not just AI Gateway. Got a question? Drop it in the comments. I read all of them and reply to most.