Skip to main content

Groq + Llama 3 + Portkey

Use blazing fast Groq API with OpenAI Compatibility using Portkey!

You will need Portkey and Groq API keys to run this notebook.
  • Sign up for Portkey and generate your API key here
  • Get your Groq API key here

With OpenAI Client

OpenAI Python

With Portkey Client

Note: Add your Groq API key in Model Catalog and access models using your provider slug
Python
Output

Observability with Portkey

By routing requests through Portkey you can track a number of metrics like - tokens used, latency, cost, etc.
Last modified on April 17, 2026