#!/usr/bin/env bash # cURL + Python 3.10+ transport example. Download submit.py beside this file. # bash submit.sh /local/artwork.png 254 127 mm # Shares the tested bounded retry policy, multipart body and safe output with Python. # The Python --curl transport executes curl --header @- --data-binary @PRIVATE_FILE: # auth travels over stdin, never shell trace/argv; no --location or automatic retries. # POST reserves/spends API credits. Persist the original idempotency key and inputs. set -eu exec python3 "$(dirname "$0")/submit.py" --curl "$@"