Skip to content

groq/groq-api-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Groq Logo

Groq API Cookbook

Getting Started β€’ Tutorials β€’ Questions β€’ Bug Reporting β€’ Contributing


Getting started

Are you ready to cook? πŸš€ This is a collection of example code and guides for Groq API for you to explore. To run these examples, you'll need a Groq API key that you can get for free by creating an account here.

Tutorials

Guardrails

Tool Use (Function Calling)

Retrieval-Augmented Generation (RAG)

JSON Mode

  • JSON Mode with Health Data: Learn how to use JSON mode to generate structured health analytics from raw data.
  • Structured Output Generator: Learn how to use the Instructor library to create structured output with tools and objects. Special thanks to our GroqChamp, @S4mpl3r, for contributing!

Multimodal

Integrations

Agentic

Have questions?

Join our developer community on Discord where we discuss useful tools, share guidance, and collaborate with industry professionals!

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.