Vast.ai Templates API
The Templates API from Vast.ai — 1 operation(s) for templates.
The Templates API from Vast.ai — 1 operation(s) for templates.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/vast-ai-templates-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Vast.ai Accounts Templates API
description: API for managing cloud GPU instances, volumes, and resources on Vast.ai
version: 1.0.0
contact:
name: Vast.ai Support
url: https://discord.gg/hSuEbSQ4X8
servers:
- url: https://console.vast.ai
description: Production API server
security:
- bearerAuth: []
tags:
- name: Templates
paths:
/api/v0/template/:
post:
summary: create template
description: 'Creates a new template for launching instances. If an identical template already exists,
returns the existing template instead of creating a duplicate.
CLI Usage: vast create template [options]'
tags:
- Templates
security:
- BearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
image:
type: string
description: Docker image path
example: ghcr.io/huggingface/text-generation-inference:1.0.3
tag:
type: string
description: Docker image tag
env:
type: string
description: Docker environment variables and run arguments
example: -p 3000:3000 -e MODEL_ARGS='--model-id TheBloke/Llama-2-7B-chat-GPTQ'
onstart:
type: string
description: Command to run on instance startup
jup_direct:
type: boolean
description: Enable direct Jupyter connection
ssh_direct:
type: boolean
description: Enable direct SSH connection
use_jupyter_lab:
type: boolean
description: Use JupyterLab instead of Jupyter Notebook
runtype:
type: string
enum:
- jupyter
- ssh
- args
description: Type of instance runtime
use_ssh:
type: boolean
description: Enable SSH access
jupyter_dir:
type: string
description: Jupyter notebook directory
docker_login_repo:
type: string
description: Docker repository requiring authentication
extra_filters:
type: object
description: Additional machine search filters
recommended_disk_space:
type: number
description: Recommended disk space in GB
required:
- image
responses:
'200':
description: Template created or existing template found
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
description: Whether operation was successful
msg:
type: string
description: Status message
template:
type: object
description: Template details
properties:
id:
type: integer
description: Template ID
hash_id:
type: string
description: Template hash identifier
'400':
description: Bad request - invalid parameters
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: false
msg:
type: string
example: Template Failed to be Created
'429':
description: Rate limit exceeded
'401':
description: Unauthorized - invalid or missing API key
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: API key authentication
apiKeyAuth:
type: apiKey
in: header
name: Authorization
ApiKeyAuth:
type: apiKey
in: query
name: api_key
description: API key must be provided as a query parameter