Skip to main content
Pre-configured environments with popular libraries, tools, and runtime environments. Start coding immediately without installing dependencies.

Available Templates

Python Base v1

Template ID: python-base-v1
Runtime: Python 3.11
curl -X POST https://api.gravixlayer.com/v1/agents/sandboxes \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "gravix",
    "region": "eu-west-1",
    "template": "python-base-v1"
  }'

JavaScript Base v1

Template ID: javascript-base-v1
Runtime: Node.js 20 LTS with popular packages
curl -X POST https://api.gravixlayer.com/v1/agents/sandboxes \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "gravix",
    "region": "eu-west-1",
    "template": "javascript-base-v1"
  }'

List Templates

curl -X GET https://api.gravixlayer.com/v1/agents/templates \
  -H "Authorization: Bearer YOUR_API_KEY"
Response:
{
  "templates": [
    {
      "id": "ee7ac712-5161-46e8-9e02-22e2c1d1f018",
      "name": "python-base-v1",
      "description": "Python 3.11 with data science libraries",
      "vcpu_count": 2,
      "memory_mb": 2048
    }
  ]
}

Next Steps