For AI agents: a documentation index is available at /llms.txt. Markdown versions of all documentation pages are available by appending .md to the URL path.

Recipe B — Album drop

Outcome: A self-contained release.html you can host anywhere — <img> cover, <audio> track, <video> clip — all generated from a single mood prompt.

Approx cost: ~$0.21 per release.

Script

#!/bin/bash
set -euo pipefail

MOOD="${1:-lo-fi hip hop, late-night studio session, jazz piano + tape hiss}"

TRACK=$(visa-cli generate music "$MOOD, 90 seconds" --instrumental --json --yes \
    | jq -r '.urls[0] // .filePath')

COVER=$(visa-cli generate image "album cover for: $MOOD, 1:1, vinyl aesthetic" --json --yes \
    | jq -r '.urls[0] // .filePath')

VIDEO=$(visa-cli generate video "abstract visualization for: $MOOD, slow zoom" \
    --aspect-ratio 1:1 --duration 6 --json --yes \
    | jq -r '.urls[0] // .filePath')

cat > release.html <<HTML
<!doctype html>
<html><head><title>release</title></head><body style="background:#111;color:#eee;font-family:system-ui;padding:2rem;max-width:640px;margin:auto">
<img src="$COVER" style="width:100%;border-radius:4px" />
<audio controls src="$TRACK" style="width:100%;margin-top:1rem"></audio>
<video controls src="$VIDEO" style="width:100%;margin-top:1rem;border-radius:4px"></video>
<p style="opacity:0.6;font-size:0.9rem">Generated from: $MOOD</p>
</body></html>
HTML

echo "Release bundled in release.html"

Cost breakdown

Step Tool Approx
Track (90s) fal-ace-step-music $0.02
Cover art fal-flux-pro $0.04
Video clip (6s) fal-minimax-video $0.15
Total ~$0.21