



Products by Groq, Inc.
Groq
Fast AI Inference
Overview
GroqCloud™ provides fast, low latency API access to state-of-the-art models. The Vercel x Groq integration connects your Vercel projects directly to GroqCloud with minimal setup so you can focus on what counts - building and shipping high-performance AI applications.
With this integration, you can:
- Access models across text, audio, and vision modalities like Llama, Qwen, DeepSeek, and more with record-setting latency and throughput
- Simplify API key management across development and production environments
- Monitor usage and costs directly from your Vercel dashboard
- Scale automatically as your application grows from our generous free tier to paid plans
See our pricing here.
Instructions
After installation, the Groq integration will automatically create a free GroqCloud account for you or link your existing GroqCloud account if the same email is used across both GroqCloud and Vercel.
This will allow you to link your GroqCloud account with your Vercel projects to seamlessly sync your GROQ_API_KEY
into your Vercel environment variables. You can go to your Vercel project settings page to see your GROQ_API_KEY
as an environment variable after installation.
See our documentation for more details.
Usage Example
import { streamText } from 'ai';import { groq } from '@ai-sdk/groq';
async function main() { const result = streamText({ model: groq('llama-3.3-70b-versatile'), prompt: 'Why do Vercel and Groq work so well together?', });
for await (const textPart of result.textStream) { process.stdout.write(textPart); }}
main().catch(console.error);