Skip to main content
Banan0 API Docs

cURL Examples

Complete cURL examples for all API endpoints.

cURL Examples

List Models

bash
curl -H "Authorization: Bearer bnn_live_xxx" \
  "https://banan0.com/api/v1/models"

Generate Image

bash
curl -X POST \
  -H "Authorization: Bearer bnn_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "prompt": "A beautiful sunset over mountains",
      "image_size": "landscape_16_9"
    }
  }' \
  "https://banan0.com/api/v1/models/fal-ai/flux-pro/run"

Check Run Status

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

Cancel Run

bash
curl -X POST \
  -H "Authorization: Bearer bnn_live_xxx" \
  "https://banan0.com/api/v1/runs/run_abc123/cancel"

Create Webhook

bash
curl -X POST \
  -H "Authorization: Bearer bnn_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://yoursite.com/webhook"}' \
  "https://banan0.com/api/v1/webhooks"

List Webhooks

bash
curl -H "Authorization: Bearer bnn_live_xxx" \
  "https://banan0.com/api/v1/webhooks"

Delete Webhook

bash
curl -X DELETE \
  -H "Authorization: Bearer bnn_live_xxx" \
  "https://banan0.com/api/v1/webhooks/wh_abc123"

Check Balance

bash
curl -H "Authorization: Bearer bnn_live_xxx" \
  "https://banan0.com/api/v1/account/balance"

Command Palette

Search for a command to run...