Skip to content

Templates

Shared worker images for serverless endpoints.

POST /v1/templates

Returns 201 with tpl_ id.

bash
curl -s -X POST https://api.skilleo.org/v1/templates \
  -H "Authorization: Bearer $SKILLEO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"sd-worker","image":"runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel"}'
FieldDefault
nameskilleo-template
imageplatform default

GET /v1/templates

bash
curl -s https://api.skilleo.org/v1/templates \
  -H "Authorization: Bearer $SKILLEO_API_KEY"

GET /v1/templates/{id}

bash
curl -s https://api.skilleo.org/v1/templates/tpl_abc123 \
  -H "Authorization: Bearer $SKILLEO_API_KEY"

DELETE /v1/templates/{id}

Fails with TEMPLATE_IN_USE if a live endpoint still references the template.

bash
curl -s -X DELETE https://api.skilleo.org/v1/templates/tpl_abc123 \
  -H "Authorization: Bearer $SKILLEO_API_KEY"

Endpoints may also auto-create a hidden template; shared templates survive endpoint delete.

Skilleo — /v1 at api.skilleo.org