Maintainers

Details

github.com/nexxtmove/ai

Source

Issues

Installs: 2 053

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/nexxtmove/ai

1.1.3 2024-05-21 13:11 UTC

This package is auto-updated.

Last update: 2025-10-14 14:31:14 UTC


README

The simplest way to add AI to your Laravel app, using OpenAI or Gemini.

$fruits = AI::ask('Give me a JSON array with three fruits');

1. Install

composer require nexxtmove/ai

2. Add your API key to .env

AI_DRIVER=openai
OPENAI_API_KEY=sk-...

3. Ask questions

use Nexxtmove\AI;

$summary = AI::ask("Summarize this article: {$article}");

That's it!

Want to read more? Check out the guide.