A clean, modern Perl client for the xAI Grok API built with Moo + Mojolicious.
- Streaming support
- Intelligent caching
- Mojolicious helper integration
- Clean Moo-based API
- Full chat web UI example
use Mojo::AI::Client;
my $client = Mojo::AI::Client->new(api_key => $ENV{XAI_API_KEY});
print $client->ask("Hello Grok!");Run the included chat UI:
morbo script/xai-chatThen visit http://localhost:3000
MIT