{"slug":"api-oblique-markets-api-v1-paid-run-python-9ac82e","title":"Use when an agent needs run python","host":"api.oblique.markets","method":"POST","resource":"https://api.oblique.markets/api/v1/paid/run-python","category":"code","description":"Use when an agent needs run python. Returns Runs a short Python program in an isolated sandbox and returns its output: exit code, stdout/stderr (64 KB each), duration, up to 3 artifact files in ./out/, and a receipt. Python 3.12 with the standard library plus numpy, pandas and requests; no network; ","price_listed":0.05,"price_asked":0.05,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":20,"reported_calls_30d":4,"reported_payers_30d":2,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"code":"Python 3 program source, at most 32 KB.…"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"args":{"items":{"type":"string"},"type":"array"},"code":{"type":"string"},"files":{"items":{"properties":{"content_base64":{"type":"string"},"name":{"type":"string"}},"required":["name","content_base64"],"type":"object"},"type":"array"},"stdin":{"type":"string"},"timeout_s":{"type":"number"}},"required":["code"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"artifacts":{"items":{"properties":{"content_base64":{"type":"string"},"name":{"type":"string"},"size_bytes":{"type":"integer"}},"type":"object"},"type":"array"},"duration_ms":{"type":"integer"},"exit_code":{"type":"integer"},"generated_at":{"type":"string"},"receipt":{"properties":{"amount_atomic":{"type":"string"},"network":{"type":"string"},"payer":{"type":"string"},"payment_nonce":{"type":"string"},"payment_tx":{"type":"string"},"run_id":{"type":"string"},"scheme":{"type":"string"}},"type":"object"},"run_id":{"type":"string"},"sandbox":{"properties":{"memory_mb":{"type":"integer"},"network":{"type":"boolean"},"python_version":{"type":"string"},"runtime":{"type":"string"},"timeout_s":{"type":"integer"}},"type":"object"},"stderr":{"type":"string"},"stderr_truncated":{"type":"boolean"},"stdout":{"type":"string"},"stdout_truncated":{"type":"boolean"},"timed_out":{"type":"boolean"}},"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.05,"price_match":true,"latency_ms":20,"error":null}],"description_full":"Use when an agent needs run python. Returns Runs a short Python program in an isolated sandbox and returns its output: exit code, stdout/stderr (64 KB each), duration, up to 3 artifact files in ./out/, and a receipt. Python 3.12 with the standard library plus numpy, pandas and requests; no network; 512 MB; up to 30 s. Input: code (32 KB), optional stdin, args and up to 4 input files. Free syntax check: POST /api/v1/run-python/validate; worked example: GET /api/v1/run-python/example. $0.05.","last_updated":"2026-09-14T06:46:06.315Z","schemes":["exact"]}