Skip to main content

Overview

Groq provides lightning-fast LLM inference using their custom Language Processing Unit (LPU) technology, delivering speeds of 500+ tokens per second. Perfect for applications requiring ultra-low latency responses with popular open-source models. Base URL: https://api.groq.com/openai/v1

Supported Features

  • ✅ Chat Completions
  • ✅ Streaming (extremely fast)
  • ✅ Function Calling
  • ✅ Vision (select models)
  • ✅ JSON Mode
  • ❌ Embeddings
  • ❌ Image Generation
  • ❌ Fine-tuning

Quick Start

Chat Completions

Ultra-Fast Streaming

Available Models

Meta Llama

Mixtral

Google Gemma

Other Models

Groq excels at:
  • Ultra-low latency - 500+ tokens/second
  • Streaming speed - Nearly instant response start
  • Consistent performance - Predictable latency
  • Real-time applications - Chat, assistants, games
  • High throughput - Handle many concurrent requests

Configuration Options

Advanced Features

Function Calling

Vision (Multimodal)

JSON Mode

Temperature Control

Max Tokens Control

Speed Comparison

Fallback Configuration

Use Groq first for speed, fallback to others:

Load Balancing

Balance across Groq models:

Error Handling

Best Practices

  1. Leverage speed - Build real-time features
  2. Use streaming - Take advantage of instant response start
  3. Enable function calling - Fast tool use
  4. Use 8B for simple tasks - Instant responses
  5. Use 70B for complex tasks - Still very fast
  6. Implement rate limit handling - Free tier has limits
  7. Monitor latency - Groq provides latency metrics
  8. Cache when possible - Even faster responses

Use Cases

Real-time Chat

Code Completion

Gaming NPCs

Rate Limits

Free Tier:
  • 30 requests per minute
  • 14,400 requests per day
  • Generous for development
Paid Tiers:
  • Higher rate limits
  • Priority access
  • Contact Groq for details

LPU Technology

Groq’s Language Processing Unit (LPU) provides:
  • Deterministic performance - Consistent latency
  • Low latency - Less than 1 second for most requests
  • High throughput - 500+ tokens/second
  • Energy efficient - Lower power consumption
  • Scalable - Handle large workloads

Pricing

Groq offers very competitive pricing:

Groq Pricing

View detailed pricing for all Groq models

Getting Started

  1. Sign up at Groq Console
  2. Get your API key
  3. Start with free tier
  4. Experience the speed!

Together AI

Alternative open models

Anyscale

Another fast inference option

Streaming

Optimize streaming responses

Real-time Apps

Build real-time applications