Get started with egaki in 2 minutes — egaki

2 min read Original article ↗

Quickstart

Install

pnpm add -g egaki

Or with npm:

npm install -g egaki

Authenticate

egaki needs provider API keys to generate media. The fastest way to start is with ChatGPT auth (uses your existing ChatGPT subscription) or a Google AI Studio key.

ChatGPT auth (easiest)

egaki login --provider chatgpt

Opens a browser window for OAuth. After approval, you can use OpenAI image models like gpt-image-1.5.

Google AI Studio key

egaki login --provider google --key AIza...

This gives you access to Imagen and Gemini image models, plus Veo video models.

Egaki subscription

One key for all providers. No need to manage separate API keys. Two plans: Plus ($29/mo) and Pro ($99/mo), each with a matching monthly dollar budget of generation usage.

egaki subscribe --plan plus egaki login --provider egaki --key egaki_...

Run egaki login --show at any time to see which providers are configured.

Generate your first image

egaki image "a watercolor fox reading a map" -o fox.png

The CLI picks the best available model based on your configured providers. Override with -m:

egaki image "isometric floating city" -m imagen-4.0-generate-001 -o city.png

Generate your first video

egaki video "a paper boat drifting on a calm lake at sunrise" -o boat.mp4

Video generation takes 1-5 minutes depending on the model. The CLI shows progress.

Discover available models

egaki models egaki models --type image egaki models --type video

What's next