Groq
communityUltra-fast AI inference platform using custom LPU hardware. OpenAI-compatible API for LLM inference.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
POST
https://api.groq.com/openai/v1/chat/completionsGenerate text with fast inference
Parameters
modelllama-3.3-70b-versatile|mixtral-8x7b-32768|gemma2-9b-it (stringrequiredstreamstream response (booleanoptionalmessagesconversation array (arrayrequiredmax_tokensmax response tokens (integeroptionaltemperature0-2 (numberoptionalReturns
choices[] with message.content, usage with prompt_tokens, completion_tokens, queue_time, prompt_time, completion_timeGET
https://api.groq.com/openai/v1/modelsList available models
Returns
data[] with id, object, created, owned_by, active, context_windowPOST
https://api.groq.com/openai/v1/audio/transcriptionsTranscribe audio
Parameters
fileaudio file (filerequiredmodelwhisper-large-v3-turbo|distil-whisper-large-v3-en (stringrequiredlanguageISO language code (stringoptionalReturns
text (transcribed text)