Use DeepSeek, MiniMax, and QwenCloud with ngrok credits
Use your ngrok access key and credits to call supported models from DeepSeek, MiniMax, and QwenCloud through AI Gateway. ngrok authenticates requests to each provider and bills usage to your account.
If you’ve been using DeepSeek with your own provider key, there’s now an option to pay with ngrok credits. MiniMax and QwenCloud are new to the catalog, with models from MiniMax’s M-series and Qwen. QwenCloud also serves models from DeepSeek, Moonshot AI, and Z.ai.
Model availability, request formats, and pricing vary by provider. Open Models and filter by provider:deepseek, provider:minimax, or provider:qwencloud. Check the provider details and price breakdown before choosing a model for your application.
Get started
Create an ngrok account or sign in. Create an access key that allows your chosen provider and model, and confirm your account has credits.
Optionally, try a model from DeepSeek, MiniMax, or QwenCloud in the playground.
Follow the setup guide and select OpenAI and TypeScript.
Install the OpenAI SDK and TypeScript runner:
Save your ngrok access key in .env.local. Keep this file out of version control:
AI_GATEWAY_API_KEY=your_access_key_here
Use an ES module project ("type": "module" in package.json) for top-level await. Save this example as index.ts:
Run the example from your project directory to print the response:
Open Logs, find the request you just sent, and inspect its model, provider, status, token usage, and cost.