Skip to main content
Apidly Cloud
Cookie policy

Analytics and ad cookies stay off unless you accept. Cookie policy

We would like to use Google Analytics and Microsoft Clarity to understand how the public pages are used, including page views and session recordings, and the Reddit Pixel to measure whether our ads on Reddit lead to visits and sign-ups. You choose here whether they are on. Rejecting changes nothing about how the site works.

For developers

Launch GPU servers from your code, terminal or AI assistant

A REST API with an OpenAPI document, a command-line tool that covers every API route, JavaScript and Python SDKs, an MCP server and signed webhooks.

Start with a $10 top-up, no subscription. A new account's first server is checked by a person before it starts; nothing is charged while you wait.

OpenAPI 3.1 description (JSON)

Open-source tools

MIT-licensed clients for the REST API, in one repository. Create an API key in the console and set APIDLY_API_KEY.

  • CLI

    The apidly command: launch, stop and watch servers, endpoints, volumes and billing from a terminal.

    Install
    npm install -g https://apidly.com/downloads/apidly-cli-0.1.35.tgz
  • MCP server

    Lets an AI assistant price, launch and manage servers over stdio. Read-only by default; add --allow-writes and a price cap to let it launch.

    Install
    npm install -g https://apidly.com/downloads/apidly-mcp-0.1.26.tgz
  • JavaScript / TypeScript SDK

    A dependency-free client for the REST API.

    Install
    npm install https://apidly.com/downloads/apidly-sdk-0.1.35.tgz
  • Python SDK

    A Python client for the REST API.

    Install
    pip install https://apidly.com/downloads/apidly-0.1.35-py3-none-any.whl
  • Terraform provider

    Manage servers, volumes, SSH keys and endpoints as code. Build it from source; see its README.

View apidly-tools on GitHub

Five ways in

Pick the one that fits your work. All of them use the same API keys and scopes.

REST API

Plans, templates, servers, volumes, billing, team and webhooks, all under /api/v1. Send your key as a Bearer token.

  • Three key scopes: read, servers and full.
  • An Idempotency-Key on POST /servers and POST /topups makes a retry safe for 24 hours.

Read the API reference

curl
# Cheapest plans you can launch now
curl "https://apidly.com/api/v1/plans?availability=available&sort=price&limit=3" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

# Request a server (safe to retry with the same Idempotency-Key)
curl -X POST "https://apidly.com/api/v1/servers" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"planId":"PLAN_ID","templateId":"TEMPLATE_ID","label":"first-run","diskGb":50}'

Command-line tool

The apidly command covers every API route, so you can try by hand what you later put in a script.

  • apidly init saves your key and SSH key; apidly up notebook goes from a goal to a running server with an automatic stop.
  • apidly ssh opens a terminal on the server; --print shows the ssh command instead.

Read the CLI guide

shell
apidly init
apidly up notebook --hours 2

# Or pick the plan and template yourself
apidly plans --available --sort price --limit 5
apidly deploy --plan PLAN_SLUG --template pytorch-jupyterlab --wait
apidly ssh SERVER_ID
apidly logs SERVER_ID --follow
apidly stop SERVER_ID
apidly destroy SERVER_ID

JavaScript and Python SDKs

Both SDKs follow the API one to one, retry safely and walk long lists for you. Download them from this site; they are not on public package registries yet.

  • JavaScript for Node 18 or newer, and Python 3.9 or newer.
  • Each has a helper that verifies webhook signatures.

Read the SDK guide

JavaScript
import { Apidly } from "@apidly/sdk";

const apidly = new Apidly({ apiKey: process.env.APIDLY_API_KEY });

const { plans } = await apidly.plans.list({ availability: "available", sort: "price", limit: 5 });
const { templates } = await apidly.templates.list();

const { server, deployment } = await apidly.servers.create({
  planId: plans[0].id,
  templateId: templates[0].id,
  label: "first-run",
  diskGb: 50,
});
// server is null while the request waits for approval: read deployment.status
Python
import os
from apidly import Client

client = Client(api_key=os.environ["APIDLY_API_KEY"])

plans = client.plans.list(availability="available", sort="price", limit=5)["plans"]
templates = client.templates.list()["templates"]

result = client.servers.create(
    plan_id=plans[0]["id"],
    template_id=templates[0]["id"],
    label="first-run",
    disk_gb=50,
)

MCP server

apidly-mcp runs on your computer and gives an assistant tools to list plans and templates, deploy, start, stop and destroy servers, and read logs, usage and balance.

  • --read-only hides every tool that changes anything.
  • Tools that spend money, stop or delete need an explicit confirmation.

Read the MCP guide

MCP settings (JSON)
{
  "mcpServers": {
    "apidly": {
      "command": "apidly-mcp",
      "args": ["--read-only"],
      "env": { "APIDLY_API_KEY": "paste-your-key-here" }
    }
  }
}

Webhooks

Your HTTPS endpoint gets a POST when a server starts or stops, your balance runs low, an invoice is created and more, so you do not have to poll.

  • Each delivery is signed with HMAC-SHA256 over the timestamp and the raw body.
  • Failed deliveries are retried, and the delivery log lets you send one again.

Read the webhooks guide

shell
apidly webhooks add https://example.com/apidly --events server.running,balance.low
apidly webhooks test WEBHOOK_ID
JavaScript
import express from "express";
import { verifyWebhook } from "@apidly/sdk";

const app = express();
app.post("/apidly", express.raw({ type: "application/json" }), (req, res) => {
  const ok = verifyWebhook(
    req.body,
    req.get("Apidly-Signature") ?? "",
    process.env.APIDLY_WEBHOOK_SECRET
  );
  if (!ok) return res.sendStatus(400);
  const event = JSON.parse(req.body.toString("utf8"));
  console.log(event.type, event.id);
  res.sendStatus(200);
});

More for developers

Ids, keys and addresses in the samples are placeholders. Every sample is checked against the API description and the command-line tool.

Guides and ready-made templates

Step-by-step write-ups, and templates that start with the software already installed.

Get your API key

Create an account, add credit and make a key under API keys in the console.