Read JPEG or PNG bytes on the server and encode them as base64 for JSON transport. Reuse the same reference string in the request content.
Example
from pathlib import Path
import base64
assets = {"<photo>": {"type": "image", "format": "png",
"data_base64": base64.b64encode(Path("photo.png").read_bytes()).decode()}}
reply = client.system_one("<photo>", {"label": {"type": "box",
"instructions": "Locate the label."}}, assets=assets)