{"uid":"cap_bZI8RBOwy8_RjWAMkfsBL","slug":"sol-blockrun-ai-python-3-11-managed-sandbox-create-835fecda","name":"sol.blockrun.ai Python 3.11 Managed Sandbox Create","description":"Create a managed Python 3.11 sandbox. Two billing modes: ≤300s at ≤1 CPU and ≤1024 MB = flat rate (CPU $0.01, GPU varies). Otherwise per-hour billing for the full requested lifetime, never below the flat rate, no refund on early terminate. Max 24h.","url":"https://sol.blockrun.ai/api/v1/modal/sandbox/create?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cpu":{"type":"number","description":"CPU cores (min 0.125, max 1 CPU-only, 8 for GPU sandboxes, default: 1). Above 1 bills hourly, never below the flat rate."},"gpu":{"type":"string","description":"Optional GPU type. One of: T4, L4, A10G, A100, H100. Flat (≤300s, ≤1 CPU, ≤1024 MB): T4 $0.05, L4 $0.08, A10G $0.1, A100 $0.2, H100 $0.4. Hourly: T4 $4, L4 $4.5, A10G $5, A100 $7, H100 $9/hour."},"image":{"type":"string","description":"Managed image. Only `python:3.11` is currently available."},"memory":{"type":"number","description":"Memory in MB (max 1024 CPU-only, 32768 for GPU sandboxes, default: 512). Above 1024 bills hourly, never below the flat rate."},"timeout":{"type":"number","description":"Sandbox lifetime in seconds (max 86400 = 24h, default: 300). Above 300s bills hourly."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cVo_Ygkmej1oZrtRdkdXV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a managed, isolated Python 3.11 sandbox environment with configurable CPU, GPU, memory, and lifetime, billed at a flat rate for small jobs or hourly for larger ones.","exampleAgentPrompt":"Spin up a managed Python 3.11 sandbox with 1 CPU, 512 MB of memory, and a 5-minute timeout so I can run some data processing code.","exampleUseCases":[{"title":"Quick data processing script run","prompt":"Create a Python 3.11 sandbox for me with 1 CPU and 1024 MB of memory and give it a 300-second timeout — I need to run a short data transformation script."},{"title":"GPU-accelerated ML inference sandbox","prompt":"Spin up a Python 3.11 sandbox with an A10G GPU and 16 GB of memory that stays alive for 30 minutes — I want to run a machine learning inference job on it."},{"title":"Long-running data pipeline environment","prompt":"Provision a Python 3.11 managed sandbox with 4 CPU cores, 8192 MB of RAM, and a 2-hour lifetime so I can run a large batch data pipeline job."}],"resultDescription":"Returns a sandbox object with a unique sandbox ID and connection details needed to execute commands inside the running environment. The sandbox remains live for the requested timeout duration and can be interacted with via the companion execute-command endpoint.","failureModes":["Invalid GPU type specified — must be one of T4, L4, A10G, A100, H100","CPU exceeds 1 for CPU-only (non-GPU) sandboxes","Memory exceeds 1024 MB for CPU-only sandboxes","Timeout exceeds 86400 seconds (24h maximum)","Payment failure — insufficient USDC balance for flat-rate or hourly billing","Sandbox provisioning timeout or infrastructure unavailability","Unsupported image — only python:3.11 is currently available"],"whenToPreferThis":"Choose this endpoint when you need a fully managed, ephemeral Python 3.11 execution environment with optional GPU acceleration, predictable flat-rate billing for short jobs (≤300s, ≤1 CPU, ≤1024 MB), or hourly billing for larger workloads up to 24 hours. Prefer this over raw VM provisioning when you want zero infrastructure management and pay-per-use pricing starting at $0.01.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T12:37:00.945Z","isFirstParty":false,"canonicalSlug":"sol-blockrun-ai-python-3-11-managed-sandbox-create-835fecda"}