{"id":"284f132e-07eb-4aae-a7b9-507756865ea0","url":"https://api.magentlab.com/api/calc/aa_gradient?fio2=0.21&paco2_mm_hg=40&pao2_mm_hg=95&pb_mm_hg=760&rq=0.8","method":"GET","fingerprint":"6a76596f47a73253f53e917c17bd69089e550fe963dd95079abdd90fdc96388a","name":"magent","description":null,"category":"other","docs_url":null,"advertised_price_usd":"0.005000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","scheme":"exact","networks":["eip155:8453"],"pay_to":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","input_schema":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["paco2_mm_hg","pao2_mm_hg"],"properties":{"rq":{"type":"number","description":"Respiratory exchange ratio R (0.7-1.0). Omitted uses 0.8."},"fio2":{"type":"number","description":"Inspired oxygen as a fraction (0.21-1.0), not a percent. Omitted uses 0.21 (room air)."},"pb_mm_hg":{"type":"number","description":"Barometric pressure in mm Hg (500-800). Omitted uses 760."},"pao2_mm_hg":{"type":"number","description":"Arterial PO2 in mm Hg (20-700)."},"paco2_mm_hg":{"type":"number","description":"Arterial PCO2 in mm Hg (8-80)."}}}},"additionalProperties":false},"output_schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}},"schema_completeness":0,"status":"degraded","first_seen_at":"2026-08-23 14:05:26.56341+00","last_seen_at":"2026-08-23 14:05:25.241+00","last_success_at":"2026-09-05 10:54:35.171+00","dead_since":null,"probe_backoff_tier":3,"next_probe_at":"2026-09-15 11:04:23.744+00","search_tsv":"'magent':1","catalog_number":"4336","x402_version":2,"resource_url":"https://api.magentlab.com/api/calc/aa_gradient","resource_description":"Alveolar–arterial oxygen gradient from FiO2, barometric pressure, PaCO2, PaO2, and RQ using the simplified alveolar-gas equation (PH2O 47 mm Hg). Deterministic published arithmetic with citation; not a diagnosis.","bazaar_extension":{"info":{"input":{"type":"http","method":"GET","queryParams":{"rq":0.8,"fio2":0.21,"pb_mm_hg":760,"pao2_mm_hg":95,"paco2_mm_hg":40}},"output":{"type":"json","example":{"rq":0.8,"fio2":0.21,"formula":"aa_gradient","citation":{"id":"riley-cournand-1949","doi":"10.1152/jappl.1949.1.12.825","title":"\"Ideal\" alveolar air and the analysis of ventilation-perfusion relationships in the lungs","source":"J Appl Physiol. 1949;1(12):825-847","authors":"Riley RL, Cournand A"},"pb_mm_hg":760,"disclaimer":"Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.","pao2_mm_hg":95,"paco2_mm_hg":40,"aa_gradient_mm_hg":4.7,"water_vapor_mm_hg":47,"formula_expression":"PAO2_mm_hg = fio2 * (pb_mm_hg - 47) - paco2_mm_hg / rq; aa_gradient_mm_hg = PAO2_mm_hg - pao2_mm_hg","pao2_alveolar_mm_hg":99.7}},"iconUrl":"https://api.magentlab.com/favicon.ico"},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["paco2_mm_hg","pao2_mm_hg"],"properties":{"rq":{"type":"number","description":"Respiratory exchange ratio R (0.7-1.0). Omitted uses 0.8."},"fio2":{"type":"number","description":"Inspired oxygen as a fraction (0.21-1.0), not a percent. Omitted uses 0.21 (room air)."},"pb_mm_hg":{"type":"number","description":"Barometric pressure in mm Hg (500-800). Omitted uses 760."},"pao2_mm_hg":{"type":"number","description":"Arterial PO2 in mm Hg (20-700)."},"paco2_mm_hg":{"type":"number","description":"Arterial PCO2 in mm Hg (8-80)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}}},"accepted_requirements":[{"raw":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2","paymentFlow":"upfront","resourceUrl":"https://api.magentlab.com/api/calc/aa_gradient?fio2=0.21&paco2_mm_hg=40&pao2_mm_hg=95&pb_mm_hg=760&rq=0.8","assetTransferMethod":"eip3009"},"payTo":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","amount":"5000","scheme":"exact","network":"eip155:8453","maxTimeoutSeconds":600},"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","scheme":"exact","network":"eip155:8453","amountAtomic":"5000"},{"raw":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2","withdrawDelay":86400,"receiverAuthorizer":"0x3721824a31197dcDD2984cF43b92B6cc8A87c0Fb","assetTransferMethod":"eip3009"},"payTo":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","amount":"5000","scheme":"batch-settlement","network":"eip155:8453","maxTimeoutSeconds":600},"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","scheme":"batch-settlement","network":"eip155:8453","amountAtomic":"5000"}],"bazaar_compatible":false,"bazaar_validated_at":"2026-09-14 11:04:23.744+00","bazaar_validation_error":"timeout","window":"24h","probes_n":1,"handshake_uptime":0,"settle_success_rate":0,"valid_result_rate":null,"latency_p50":10023,"latency_p90":10023,"price_drift_pct":null,"score":0,"computed_at":"2026-09-14 11:05:12.051+00","source_metadata":[{"raw":{"url":"https://api.magentlab.com/api/calc/aa_gradient?fio2=0.21&paco2_mm_hg=40&pao2_mm_hg=95&pb_mm_hg=760&rq=0.8","name":"magent","method":"GET","source":"bazaar:api.cdp.coinbase.com","fingerprint":"6a76596f47a73253f53e917c17bd69089e550fe963dd95079abdd90fdc96388a","advertisedPriceUsd":0.005},"source_id":1,"external_id":null}],"live_endpoint_metadata":{"x402_version":2,"resource_url":"https://api.magentlab.com/api/calc/aa_gradient","resource_description":"Alveolar–arterial oxygen gradient from FiO2, barometric pressure, PaCO2, PaO2, and RQ using the simplified alveolar-gas equation (PH2O 47 mm Hg). Deterministic published arithmetic with citation; not a diagnosis.","bazaar_extension":{"info":{"input":{"type":"http","method":"GET","queryParams":{"rq":0.8,"fio2":0.21,"pb_mm_hg":760,"pao2_mm_hg":95,"paco2_mm_hg":40}},"output":{"type":"json","example":{"rq":0.8,"fio2":0.21,"formula":"aa_gradient","citation":{"id":"riley-cournand-1949","doi":"10.1152/jappl.1949.1.12.825","title":"\"Ideal\" alveolar air and the analysis of ventilation-perfusion relationships in the lungs","source":"J Appl Physiol. 1949;1(12):825-847","authors":"Riley RL, Cournand A"},"pb_mm_hg":760,"disclaimer":"Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.","pao2_mm_hg":95,"paco2_mm_hg":40,"aa_gradient_mm_hg":4.7,"water_vapor_mm_hg":47,"formula_expression":"PAO2_mm_hg = fio2 * (pb_mm_hg - 47) - paco2_mm_hg / rq; aa_gradient_mm_hg = PAO2_mm_hg - pao2_mm_hg","pao2_alveolar_mm_hg":99.7}},"iconUrl":"https://api.magentlab.com/favicon.ico"},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["paco2_mm_hg","pao2_mm_hg"],"properties":{"rq":{"type":"number","description":"Respiratory exchange ratio R (0.7-1.0). Omitted uses 0.8."},"fio2":{"type":"number","description":"Inspired oxygen as a fraction (0.21-1.0), not a percent. Omitted uses 0.21 (room air)."},"pb_mm_hg":{"type":"number","description":"Barometric pressure in mm Hg (500-800). Omitted uses 760."},"pao2_mm_hg":{"type":"number","description":"Arterial PO2 in mm Hg (20-700)."},"paco2_mm_hg":{"type":"number","description":"Arterial PCO2 in mm Hg (8-80)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}}},"accepted_requirements":[{"raw":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2","paymentFlow":"upfront","resourceUrl":"https://api.magentlab.com/api/calc/aa_gradient?fio2=0.21&paco2_mm_hg=40&pao2_mm_hg=95&pb_mm_hg=760&rq=0.8","assetTransferMethod":"eip3009"},"payTo":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","amount":"5000","scheme":"exact","network":"eip155:8453","maxTimeoutSeconds":600},"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","scheme":"exact","network":"eip155:8453","amountAtomic":"5000"},{"raw":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2","withdrawDelay":86400,"receiverAuthorizer":"0x3721824a31197dcDD2984cF43b92B6cc8A87c0Fb","assetTransferMethod":"eip3009"},"payTo":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","amount":"5000","scheme":"batch-settlement","network":"eip155:8453","maxTimeoutSeconds":600},"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","scheme":"batch-settlement","network":"eip155:8453","amountAtomic":"5000"}],"bazaar_compatible":false,"bazaar_validated_at":"2026-09-14 11:04:23.744+00","bazaar_validation_error":"timeout"},"sonar_metrics":{"score":0,"uptime":0,"paid_success_rate":0,"valid_result_rate":null,"latency_p50":10023,"latency_p90":10023,"price_drift_pct":null},"cdp_indexed":false,"confidence":"low"}