-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathexamples.sh
More file actions
executable file
·48 lines (37 loc) · 1.65 KB
/
examples.sh
File metadata and controls
executable file
·48 lines (37 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# Example usage of nanobanana CLI
# Make sure to set your API key first:
# export GEMINI_API_KEY="your-api-key"
# Build the project if needed
if [ ! -f "./nanobanana" ]; then
echo "Building nanobanana..."
go build -o nanobanana
fi
# Create output directory
mkdir -p ./examples
echo "=== Example 1: Generate a simple image ==="
./nanobanana generate "watercolor painting of a fox in snowy forest" --output=./examples
echo ""
echo "=== Example 2: Generate multiple variations ==="
./nanobanana generate "mountain landscape at sunset" --count=3 --output=./examples
echo ""
echo "=== Example 3: Generate with style ==="
./nanobanana generate "cyberpunk city" --style="neon, futuristic, rainy" --output=./examples
echo ""
echo "=== Example 3b: Generate with aspect ratio ==="
./nanobanana generate "ultra wide cinematic landscape" --aspect-ratio="21:9" --output=./examples
./nanobanana generate "phone wallpaper nature scene" --aspect-ratio="9:16" --output=./examples
echo ""
echo "=== Example 4: Create an icon ==="
./nanobanana icon "coffee cup logo" --sizes="64,128,256" --output=./examples
echo ""
echo "=== Example 5: Generate a pattern ==="
./nanobanana pattern "geometric triangles" --style="minimal, modern" --output=./examples
echo ""
echo "=== Example 6: Create a diagram ==="
./nanobanana diagram "microservices architecture with API gateway" --type="architecture" --output=./examples
echo ""
echo "=== Example 7: Generate a story sequence ==="
./nanobanana story "sunrise to sunset over a lake" --frames=4 --style="peaceful, naturalistic" --output=./examples
echo ""
echo "All examples completed! Check the ./examples directory for generated images."