Skip to content

groq/groq-api-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

234 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Groq Logo

Groq API Cookbook

Getting StartedTutorialsQuestionsBug ReportingContributing


Getting started

This repository contains a collection of tutorials, sample code, and guidelines for accomplishing tasks with Groq API. To run these examples, you'll need a Groq API key that you can get for free by creating an account here. Are you ready to cook? 🚀

Tutorials

01. Getting Started & Quickstart

02. Tool Use (Function Calling)

03. Model Context Protocol (MCP)

  • Box MCP with Groq: Learn how to securely access and interact with private Box content using Groq inference + Box's hosted MCP server.
  • Browser Use MCP: Equip models via Groq API with Browser Use's tools to enable autonomous website browsing, information extraction, and web pages interaction.
  • BrowserBase MCP: Equip models via Groq API with Browserbase's MCP server for web automation using natural language commands, including tools for web interaction and data extraction.
  • Firecrawl MCP: Equip GPT-OSS 120B via Groq API with enterprise-grade web scraping capabilities, intelligent data extraction, structured parsing, and deep web research.
  • Exa MCP: Use Exa's web search and web crawling tools to get real-time information from the internet. Find relevant search results, extract data from websites, and run deep-research.
  • E2B MCP Gateway: Learn how to use E2B's MCP gateway to run multiple MCP servers (Exa + Browserbase) together in an isolated sandbox for AI research workflows.
  • Tavily MCP with Groq: Build a real-time research agent with the Tavily MCP and Groq API.
  • HuggingFace MCP with Groq: Retrieve real-time HuggingFace model data with the HuggingFace MCP and Groq API.
  • Parallel MCP with Groq: Real-time search with access to live data with the Parallel MCP and Groq API (along with a performance comparison against OpenAI).

04. Retrieval-Augmented Generation (RAG)

05. Structured Output (JSON Mode)

06. Multimodal (Vision & Audio)

07. Agents & Multi-Agent Systems

08. Integrations & Frameworks

09. Observability & Evaluation

10. Guardrails & Safety

Have questions?

Join our Developer Community Forum where we discuss new features and news in the AI industry, share guidance, and collaborate.

Find a bug?

Open an issue on GitHub here.

Contributing to the Cookbook

The Groq API Cookbook is community-driven and we are always looking for contributions in the forms of ideas, fixes, improvements, or suggestions! We greatly appreciate the open-source community and are committed to helping our community get good resources.

If you're interested in contributing to our cookbook, please first check out our contribution guidelines. We welcome high-quality guides and examples that will help our community and can't wait to see what you cook up! 🧑‍🍳

If there are guides or examples that you'd like to see in the future, feel free to make a suggestion here.

About

groq-api-cookbook

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 41

Languages