$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "cookie": "insert-your-cookie-here",
< "generations": [
< {
< "prompt": "Combine these to images into a single image in a creative way",
< "images": [
< "https://picsum.photos/id/17/800/600",
< "https://picsum.photos/id/22/800/600"
< ],
< "aspectRatio": "16:9",
< "runs": 1,
< "name": "combination-01"
< },
< {
< "prompt": "Make the style of the image 10 years older",
< "images": [
< "output:combination-01"
< ],
< "aspectRatio": "1:1",
< "runs": 2,
< "name": "older-style"
< },
< {
< "prompt": "Change the style of @img1 using @img2 as reference",
< "images": [
< "output:older-style",
< "upload:1"
< ],
< "aspectRatio": "9:16",
< "runs": 2
< }
< ],
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ]
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/igolaizola~freepik-nanobanana/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'