Automatically create a sandbox, and destroy it immediately after execution. Optional feature to export sandbox files (if there are multiple files in the directory, they will be compressed into a zip file for export; a single file will be exported directly). This interface is recommended if continuous sandbox operations are not required.Price: Sandbox runtime (seconds) * 0.001 PTC + Exporting sandbox files to the 302 file system (0.001 PTC/call)Related MCP Server: https://github.com/302ai/302_sandbox_mcp/blob/main/README.md
Request
Header Params
Authorization
string
required
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
language
enum<string>
执行使用的编程语言
optional
If not specified or if the value is out of the selectable range, it will be treated as Python code.