NAME
Langertha::Engine::Groq - GroqCloud API
VERSION
version 0.303
SYNOPSIS
use Langertha::Engine::Groq;
my $groq = Langertha::Engine::Groq->new(
api_key => $ENV{GROQ_API_KEY},
model => 'llama-3.3-70b-versatile',
system_prompt => 'You are a helpful assistant',
);
print $groq->simple_chat('Say something nice');
# Audio transcription
my $text = $groq->transcription('/path/to/audio.mp3');
DESCRIPTION
Provides access to Groq's ultra-fast LLM inference via their GroqCloud API. Composes Langertha::Role::OpenAICompatible with Groq's endpoint (https://api.groq.com/openai/v1) and API key handling.
Popular models: llama-3.3-70b-versatile, llama-3-groq-70b-tool-use, deepseek-r1-distill-llama-70b, qwen-2.5-coder-32b. Audio transcription uses whisper-large-v3 by default. No default chat model is set; model must be specified explicitly.
Dynamic model listing via list_models(). Get your API key at https://console.groq.com/keys and set LANGERTHA_GROQ_API_KEY.
THIS API IS WORK IN PROGRESS
SEE ALSO
https://groqstatus.com/ - Groq service status
https://console.groq.com/docs/models - Official Groq models documentation
Langertha::Role::OpenAICompatible - OpenAI API format role
Langertha::Role::Transcription - Transcription role (Groq hosts Whisper)
Langertha::Engine::DeepSeek - Another OpenAI-compatible engine
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/langertha/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de> https://raudss.us/
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.