Agent examples
Two common patterns: train when it is cheap, and check before you trust.
Train only under a price
offers = requests.get("https://api.obsyd.online/api/v1/gpu/offers",
params={"gpu": "H100", "limit": 1}).json()["offers"]
if offers and offers[0]["our_usdc_per_hour"] < 2.0:
job = session.post("https://api.obsyd.online/v1/jobs",
json={"gpu": "H100", "hours": 4, "max_usd": 8}).json()Check another agent's result
r = requests.get(f"https://api.obsyd.online/v1/receipts/{receipt_id}").json()
ok = r["gpu"] == "H100" and r["seconds"] > 3600 and r["output_sha256"] == my_hashWas this page helpful?