Back to Tools

Code Interpreter

Compute

Execute Python code in a secure sandbox environment. Supports data analysis, visualization, and general computation.

Available Actions
executeanalyze
Input Schema
{
  "type": "object",
  "required": [
    "code"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "Python code to execute"
    },
    "timeout": {
      "type": "number",
      "default": 30,
      "description": "Timeout in seconds"
    }
  }
}
Output Schema
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "files": {
      "type": "array"
    },
    "output": {
      "type": "string"
    }
  }
}
Quick Start

API Endpoint

POST /api/execute/code-interpreter

cURL Example

curl -X POST \
  https://api.nulayers.com/execute/code-interpreter \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action": "execute"}'
Integration

Get your API key from the dashboard to start using this tool in your AI applications.