Use when an agent needs run python
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…
by api.oblique.markets · discovered, not yet claimed by its owner · updated 2026-10-08
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
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.
Tags: run · python · ai-tools · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-08
{
"code": "Python 3 program source, at most 32 KB.…"
}{
"artifacts": [
{
"content_base64": "eyJuIjogNCwgIm1lYW4iOiA3LjI1fQ==",
"name": "result.json",
"size_bytes": 22
}
],
"duration_ms": 168,
"exit_code": 0,
"generated_at": "2026-09-09T00:31:12.000Z",
"receipt": {
"amount_atomic": "50000",
"network": "eip155:8453",
"payer": "0x1111111111111111111111111111111111111…",
"payment_nonce": "0x7d1b2c3d4e5f60718293a4b5c6d7e8f90a1b2…",
"payment_tx": "settled after this response; the transa…",
"run_id": "run_5f0c2a9d7b3e1c4d8a6f0b21",
"scheme": "exact"
},
"run_id": "run_5f0c2a9d7b3e1c4d8a6f0b21",
"sandbox": {
"memory_mb": 512,
"network": false,
"python_version": "3.12.10",
"runtime": "isolated",
"timeout_s": 10
},
"stderr": "",
"stderr_truncated": false,
"stdout": "mean 7.25\nargv ['--fast']\nnet blocked: …",
"stdout_truncated": false,
"timed_out": false
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/25988.jsonfor the price and payment options. - Pay. Call
GET https://api.oblique.markets/api/v1/paid/run-python. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.05 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Solana
- Demand
- 6 calls · 4 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.05 | 0x970007590aCC5C938cd51345B17AF51B1B40D3Ab | 60s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.05 | GYyTRmt317JafPHXPnM54Fsvsma5GnS9wm6qGMqaykdS | 60s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x970007590aCC5C938cd51345B17AF51B1B40D3Ab",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "50000",
"amountUsd": 0.05,
"maxTimeoutSeconds": 60
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "GYyTRmt317JafPHXPnM54Fsvsma5GnS9wm6qGMqaykdS",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "50000",
"amountUsd": 0.05,
"maxTimeoutSeconds": 60
}
]Schemas
Output schema (JSON Schema)
{
"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"
}Example shape — generated from the schema, not a captured live response
{
"artifacts": [
{
"content_base64": "string",
"name": "string",
"size_bytes": 0
}
],
"duration_ms": 0,
"exit_code": 0,
"generated_at": "string",
"receipt": {
"amount_atomic": "string",
"network": "string",
"payer": "string",
"payment_nonce": "string",
"payment_tx": "string",
"run_id": "string",
"scheme": "string"
},
"run_id": "string",
"sandbox": {
"memory_mb": 0,
"network": true,
"python_version": "string",
"runtime": "string",
"timeout_s": 0
},
"stderr": "string",
"stderr_truncated": true,
"stdout": "string",
"stdout_truncated": true,
"timed_out": true
}Examples
curl -X POST 'https://api.oblique.markets/api/v1/paid/run-python' -H 'Content-Type: application/json' --data '{"code":"Python 3 program source, at most 32 KB.…"}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREconst res = await fetch("https://api.oblique.markets/api/v1/paid/run-python", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": "{\"code\":\"Python 3 program source, at most 32 KB.…\"}"
});
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
import json
res = httpx.request("POST", "https://api.oblique.markets/api/v1/paid/run-python", json=json.loads("{\"code\":\"Python 3 program source, at most 32 KB.…\"}"))
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- api.oblique.markets
- Endpoint
- https://api.oblique.markets/api/v1/paid/run-python
- Machine-readable
/resources/25988.json