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.

Developer platform

Run GPU servers from your own code

A REST API with scoped keys, idempotent requests, cursor pagination and signed webhooks. Create and control servers, manage templates, SSH keys and secrets, and read usage and billing.

  • 3key scopes: read, servers, full
  • 24 hidempotency window
  • 1-200items per page, cursor based
  • HMAC-SHA256signed webhook events

Built for server-to-server use

  • Scoped API keys

    Each key is read-only, servers-only or full access, and never exceeds the role of the person who created it. Set an expiry, or revoke a key at once.

  • Idempotent requests

    Send an Idempotency-Key with POST /servers or POST /topups. A retry within 24 hours returns the first answer instead of creating a second server.

  • Cursor pagination

    Every list takes limit and cursor and returns nextCursor, so you can walk long lists page by page.

  • Exact money

    Amounts are integer millionths of a US dollar in a string, next to a decimal string. No floating point.

  • Clear limits and errors

    Rate limits appear in every response header. Errors share one shape with a stable code to branch on.

  • OpenAPI 3.1

    A public description lists every endpoint, request schema and the key scope it needs. Generate a client or import it into your tools.

  • Options when you create a server

    Name up to two alternative plans within a price you agree to, and give the server a token so it can stop itself.

  • Interruptible pricing

    Set pricing to interruptible when you create a server. A paused server reports the status interrupted, and you start it again with the start call.

  • Server groups

    Create, resize, pause and delete groups of identical servers under /v1/groups.

Call it from anywhere

Send the key as a Bearer token. Ids and values below are placeholders.

curl
curl "https://apidly.com/api/v1/servers?limit=2" \
  -H "Authorization: Bearer $APIDLY_API_KEY"
JSONResponse (excerpt)
{
  "servers": [
    {
      "id": "ins_...",
      "label": "training-run",
      "status": "running",
      "gpuModel": "RTX 4090",
      "gpuCount": 1,
      "vramGb": 24,
      "diskGb": 50,
      "hourlyPriceMicros": "940000",
      "hourlyPriceUsd": "0.940000"
    }
  ],
  "nextCursor": "eyJ0Ijox..."
}
JavaScript
const base = "https://apidly.com/api/v1";
const headers = { Authorization: `Bearer ${process.env.APIDLY_API_KEY}` };

let cursor = null;
do {
  const url = new URL(`${base}/servers`);
  url.searchParams.set("limit", "50");
  if (cursor) url.searchParams.set("cursor", cursor);

  const res = await fetch(url, { headers });
  const page = await res.json();
  for (const server of page.servers) {
    console.log(server.id, server.label, server.status);
  }
  cursor = page.nextCursor; // null on the last page
} while (cursor);
Python
import os
import requests

base = "https://apidly.com/api/v1"
headers = {"Authorization": f"Bearer {os.environ['APIDLY_API_KEY']}"}

cursor = None
while True:
    params = {"limit": 50}
    if cursor:
        params["cursor"] = cursor
    page = requests.get(f"{base}/servers", headers=headers, params=params).json()
    for server in page["servers"]:
        print(server["id"], server["label"], server["status"])
    cursor = page["nextCursor"]  # None on the last page
    if cursor is None:
        break

The command-line tool and the JavaScript and Python SDKs can be downloaded from this site. Command-line tool · SDKs

Safe to retry

Retrying a request that timed out is safe when you send an Idempotency-Key. The same key with the same body returns the first answer for 24 hours; the same key with a different body is refused.

curl
curl https://apidly.com/api/v1/servers \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6f1c2f1e-8a4b-4a0e-9d34-0c5a1b2d3e4f" \
  -d '{"planId":"pln_...","templateId":"tpl_...","label":"training-run","diskGb":50,"sshKeyIds":["ssh_..."]}'

Three key scopes

A scope caps what a key can do. Inside it, the key acts with the role of the person who created it.

Three key scopes

  • read
    Allows
    Read every resource of the organization. No changes.
  • servers
    Allows
    Read, plus request, start, stop, restart, rename and delete servers, and cancel waiting requests. No billing. Also sets and clears the automation rules of servers, and pauses and resumes server groups.
  • full
    Allows
    Everything the creator's role allows, including deleting servers, adding credit through hosted checkout, and managing SSH keys and templates. Creating, changing and deleting server groups needs this scope.

Webhooks with signed events

Your HTTPS endpoint receives a POST when something happens, so you do not have to poll.

  • Events for servers, balance, invoices, budgets, team members and API keys.
  • Every delivery carries a timestamped HMAC-SHA256 signature of the raw body.
  • Reject old deliveries, and rotate the secret with a 24-hour overlap so you lose nothing.
  • Failed deliveries retry up to six times within 24 hours. A delivery log keeps 14 days and lets you redeliver.
  • Up to 5 endpoints per organization, HTTPS only. Addresses on private networks are refused.
HTTPDelivery
POST /your-endpoint
Apidly-Signature: t=<unix seconds>,v1=<signature>
Apidly-Event: balance.low

{
  "version": 1,
  "id": "evt_8fK2xQp0aZ1mN4tYc7Ld",
  "type": "balance.low",
  "createdAt": "2026-11-21T10:00:00.000Z",
  "orgId": "org_...",
  "data": {
    "balance": { "micros": "1500000", "usd": "1.500000" },
    "hourlyBurn": { "micros": "480000", "usd": "0.480000" },
    "runwayHours": 3
  }
}
PythonVerify the signature
import hashlib
import hmac
import time


def verify(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
    parts = [p.strip() for p in header.split(",")]
    t = next((p[2:] for p in parts if p.startswith("t=")), None)
    if t is None or abs(time.time() - int(t)) > tolerance:
        return False
    expected = hmac.new(
        secret.encode(), t.encode() + b"." + raw_body, hashlib.sha256
    ).hexdigest()
    return any(
        hmac.compare_digest(p[3:], expected) for p in parts if p.startswith("v1=")
    )