Get Started
Generate your first AI image in a few simple steps.
What is Banatie?
Banatie is an image generation API for developers. Send a text prompt, get a production-ready image delivered via CDN.
Simple REST API. Optimized AI models that deliver consistent results. Images ready for production use immediately.
Set Up Your Account & Project
Four short steps and you'll hold a working API key. Full details live in the authentication walkthrough and the CLI reference.
1. Log in. Request a login email straight from the terminal:
npx @banatie/cli signup [email protected]The email contains a one-time login command with your organization slug and a bnt_boot_ token. Run it as-is:
npx @banatie/cli auth login acme <bnt_boot-token>2. Create a project:
npx @banatie/cli project new my-app3. Connect a local directory (new or existing: it just links the directory to your project):
mkdir my-app && cd my-app
npx @banatie/cli project connect my-app --root .4. Get your API key: written straight into your env file:
npx @banatie/cli project issue-key --write-env .envacme with the organization slug from your login email. Add .env and .banatie/ to your .gitignore.Your First Image
Your key already lives in .env as BANATIE_API_KEY from the previous step. Generate an image — the CLI reads the key automatically and downloads the result:
npx @banatie/cli generate "a friendly robot waving hello" --output-dir .That's it. The image downloads into the current folder — open it, and there's your robot.
Production Ready
The image URL is permanent and served via global CDN. What this means for you:
- •Fast access: images load in milliseconds
- •Edge cached: served from locations closest to your users
- •Global distribution: works fast everywhere in the world
One request. Production-ready result. Drop the URL into your app and ship.
Live URLs
Want to skip the API call entirely? Generate images directly from a URL:
https://cdn.banatie.app/my-org/my-project/live/demo?prompt=a+friendly+robot+waving+helloPut this in an <img src="..."> tag. First request generates the image, all subsequent requests serve it from cache instantly.