Skip to main content
Banan0 API Docs

Quickstart

Get started with the Banan0 API in under 5 minutes.

Quickstart

Step 1: Get Your API Key

1. Go to [banan0.com/settings](https://banan0.com/settings)

2. Scroll to "Public API Keys"

3. Click "Create Key"

4. Copy and save your key - it won't be shown again!

Step 2: Make Your First Request

Generate an image with FLUX Pro:

bash
curl -X POST \
  -H "Authorization: Bearer bnn_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "prompt": "A majestic banana in a tropical paradise, photorealistic"
    }
  }' \
  "https://banan0.com/api/v1/models/fal-ai/flux-pro/run"

Step 3: Poll for Results

bash
curl -H "Authorization: Bearer bnn_live_your_key" \
  "https://banan0.com/api/v1/runs/run_abc123"

When complete, you'll get:

json
{
  "run_id": "run_abc123",
  "status": "COMPLETED",
  "output": {
    "images": ["https://storage.banan0.com/..."]
  },
  "tokens_charged": 5
}

Step 4: Use Webhooks (Optional)

Instead of polling, receive a webhook when done:

bash
curl -X POST \
  -H "Authorization: Bearer bnn_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {"prompt": "A banana spaceship"},
    "webhook_url": "https://yoursite.com/webhook"
  }' \
  "https://banan0.com/api/v1/models/fal-ai/flux-pro/run"

Command Palette

Search for a command to run...