ข้ามไปยังเนื้อหาหลัก
Apidly Cloud
นโยบายคุกกี้

คุกกี้เพื่อการวิเคราะห์และการโฆษณาจะปิดอยู่จนกว่าคุณจะยอมรับ นโยบายคุกกี้

เราต้องการใช้ Google Analytics และ Microsoft Clarity เพื่อทำความเข้าใจว่าหน้าสาธารณะถูกใช้งานอย่างไร รวมถึงการเข้าชมหน้าและการบันทึกเซสชัน และใช้ Reddit Pixel เพื่อวัดว่าโฆษณาของเราบน Reddit นำไปสู่การเข้าชมและการสมัครใช้งานหรือไม่ คุณเลือกที่นี่ว่าจะเปิดใช้งานหรือไม่ การปฏิเสธไม่ทำให้การทำงานของเว็บไซต์เปลี่ยนไป

เอกสารอ้างอิง API: แคตตาล็อก

การดำเนินการของ API v1 สำหรับ แคตตาล็อก: สโคป พารามิเตอร์ ตัวอย่างใน curl, JavaScript และ Python และผลลัพธ์

อัปเดตล่าสุด 21 พฤศจิกายน 2569อ่าน 12 นาที
ดูเป็น Markdown

แคตตาล็อก: ทุกการดำเนินการของ API v1 พร้อมสโคปที่ต้องใช้ พารามิเตอร์ ตัวอย่างใน curl, JavaScript และ Python และผลลัพธ์ที่ได้ การยืนยันตัวตน ข้อผิดพลาด การแบ่งหน้า ขีดจำกัด และ idempotency อยู่ในภาพรวมเอกสารอ้างอิง API ดูเพิ่มเติมที่ SDK และบรรทัดคำสั่ง

ลองใช้กับคีย์ของคุณ: สร้างคีย์ API ในคอนโซล รัน export APIDLY_API_KEY=... ในเทอร์มินัล แล้ววางตัวอย่าง curl ด้านล่าง ค่าในตัวอย่างเป็นเพียงภาพประกอบ หน้านี้ไม่มีช่องให้กรอกคีย์

คำอธิบายของการดำเนินการและฟิลด์มาจากนิยามของ API และเป็นภาษาอังกฤษ

การดำเนินการ สโคปที่ต้องใช้ สรุป
GET /plans read แพ็กเกจพร้อมราคาและความพร้อมใช้งาน
GET /gpus read รุ่น GPU ที่ราคาต่ำสุดและพร้อมใช้งานดีที่สุด
GET /benchmarks read ประสิทธิภาพที่วัดได้ตามคลาส GPU
GET /regions read ภูมิภาคที่เซิร์ฟเวอร์ของคุณทำงาน
GET /quickstart read เทมเพลตและแพ็กเกจที่ การเริ่มต้นด่วน จะเลือกให้สำหรับเป้าหมาย
GET /plans/{id}/history read ประวัติราคาและความพร้อมใช้งาน 30 วันของแพ็กเกจ
GET /plan-filters read ตัวกรองแพ็กเกจที่บันทึกไว้ขององค์กร
POST /plan-filters servers บันทึกตัวกรองแพ็กเกจด้วยชื่อ
DELETE /plan-filters/{id} servers ลบตัวกรองแพ็กเกจที่บันทึกไว้
GET /plan-watches read แพ็กเกจที่สมาชิกเจ้าของคีย์กำลังติดตาม
POST /plan-watches servers รับอีเมลหนึ่งฉบับเมื่อแพ็กเกจที่ไม่ว่างกลับมาพร้อมใช้
DELETE /plan-watches/{planId} servers เลิกติดตามแพ็กเกจ

GET /plans

แพ็กเกจพร้อมราคาและความพร้อมใช้งาน

Filters and sort run on the server with the pricing page's rules. minVramGb is the memory of each GPU. minRamGb, minVcpus, region and hosting keep plans whose machines can meet them (pass the same values as constraints when you request the server). maxPriceUsd is per hour, for the cheapest option matching region and hosting. sort: recommended (default), price (cheapest first), perf (highest Apidly performance index first), perf_per_dollar (index per USD per hour), vram; ties break by price, then id, so a cursor is stable as long as you repeat the same filters and sort. maxVramGb, minGpus, maxGpus and minDiskGb bound the memory of each GPU, the GPU count and the plan's disk. query sets the same filters as one line of KEY OP VALUE terms that must all hold, for example vram>=24 gpus>=2 price<1.5 region=eu sort=perf_per_dollar (quote a value with spaces: gpu="rtx 4090"). Keys and operators: gpu = (text), gpus and vram (= >= <= > <), ram, cpu, disk (>= >), price (<= <, USD per hour), perf >= (Apidly performance index), region =, hosting =, availability =, sort =. Whole-number keys read > as the next number. The query is combined with the other parameters; a filter given both ways with different values, an unknown key, a wrong operator or a bad value answers 400 invalid_query with the reason.

สโคปที่ต้องใช้: read

พารามิเตอร์

ชื่อ ตำแหน่ง ชนิด จำเป็น คำอธิบาย
limit query integer ไม่
cursor query string ไม่
gpu query string ไม่
minVramGb query number ไม่
maxVramGb query number ไม่
minGpus query integer ไม่
maxGpus query integer ไม่
minDiskGb query number ไม่
minRamGb query number ไม่
minVcpus query number ไม่
region query na | eu | ap | other ไม่
hosting query datacenter | independent | any ไม่
maxPriceUsd query string ไม่
minPerfIndex query number ไม่ Minimum Apidly performance index (one GPU of the reference model = 100); plans without an index never pass.
minPerfScore query number ไม่ Deprecated name of minPerfIndex (same scale), read until 2027-05-31. Send minPerfIndex.
availability query available | limited | unavailable ไม่
sort query recommended | price | perf | perf_per_dollar | vram ไม่
query query string ไม่

ตัวอย่างคำขอ (curl)

curl "https://apidly.com/api/v1/plans?limit=20" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.plans.list({ limit: 20 });

Python (SDK)

client.plans.list()

เครื่องมือบรรทัดคำสั่ง: apidly init, apidly plans, apidly export, apidly plan, apidly apply (เอกสารอ้างอิง CLI)

ตัวอย่างผลลัพธ์ (200)

{
  "plans": [
    {
      "id": "example",
      "slug": "example",
      "name": "example",
      "gpuModel": "example",
      "gpuCount": 1,
      "vramGb": 1,
      "vcpus": 1,
      "ramGb": 1,
      "diskGb": 1,
      "hourlyPriceMicros": "1000000",
      "hourlyPriceUsd": "1.000000",
      "storageHourlyMicrosPerGb": "1000000",
      "storageHourlyUsdPerGb": "1.000000",
      "monthlyPriceMicros": "1000000",
      "monthlyPriceUsd": "1.000000",
      "tier": "standard",
      "featured": false,
      "sort": 1,
      "availability": "available",
      "priceSyncedAt": "2026-11-21T10:00:00.000Z",
      "variants": [
        []
      ],
      "fx": [
        1
      ],
      "performanceIndex": 1,
      "perf": 1,
      "endsSoon": 1,
      "earliestEndAt": "2026-11-21T10:00:00.000Z",
      "interruptibleHourlyPriceMicros": "1000000",
      "interruptibleHourlyPriceUsd": "1.000000"
    }
  ],
  "nextCursor": "example"
}

สถานะข้อผิดพลาด: 401, 403, 429.

GET /gpus

รุ่น GPU ที่ราคาต่ำสุดและพร้อมใช้งานดีที่สุด

สโคปที่ต้องใช้: read

พารามิเตอร์

ชื่อ ตำแหน่ง ชนิด จำเป็น คำอธิบาย
limit query integer ไม่
cursor query string ไม่

ตัวอย่างคำขอ (curl)

curl "https://apidly.com/api/v1/gpus?limit=20" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.gpus.list({ limit: 20 });

Python (SDK)

client.gpus.list()

เครื่องมือบรรทัดคำสั่ง: apidly gpus (เอกสารอ้างอิง CLI)

ตัวอย่างผลลัพธ์ (200)

{
  "gpus": [
    {
      "gpuModel": "example",
      "vramGb": 1,
      "fromHourlyPriceMicros": "1000000",
      "fromHourlyPriceUsd": "1.000000",
      "availability": "available",
      "gpuCounts": [
        1
      ],
      "plans": 1
    }
  ],
  "nextCursor": "example"
}

สถานะข้อผิดพลาด: 401, 403, 429.

GET /benchmarks

ประสิทธิภาพที่วัดได้ตามคลาส GPU

Figures we measured ourselves with a fixed, synthetic suite (FP16 and FP32 matrix multiply, ResNet-50 inference, a small transformer forward pass, VRAM copy bandwidth): the median over the runs of each class, with each run's value in samples. Results vary between machines; classes we have not measured are absent. perDollar uses our current price. Filter with gpu (exact model name).

สโคปที่ต้องใช้: read

พารามิเตอร์

ชื่อ ตำแหน่ง ชนิด จำเป็น คำอธิบาย
limit query integer ไม่
cursor query string ไม่
gpu query string ไม่

ตัวอย่างคำขอ (curl)

curl "https://apidly.com/api/v1/benchmarks?limit=20" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.benchmarks.list({ limit: 20 });

Python (SDK)

client.benchmarks.list()

เครื่องมือบรรทัดคำสั่ง: apidly benchmarks (เอกสารอ้างอิง CLI)

ตัวอย่างผลลัพธ์ (200)

{
  "benchmarks": [
    {
      "gpuModel": "example",
      "gpuCount": 1,
      "runs": 1,
      "measuredAt": "2026-11-21T10:00:00.000Z",
      "source": "example",
      "metrics": [
        {
          "id": null,
          "benchmark": null,
          "metric": null,
          "unit": null,
          "median": null,
          "runs": null,
          "samples": null,
          "perDollar": null
        }
      ]
    }
  ],
  "nextCursor": "example"
}

สถานะข้อผิดพลาด: 401, 403, 429.

GET /regions

ภูมิภาคที่เซิร์ฟเวอร์ของคุณทำงาน

Plans are not pinned to a region; a server is placed on the best matching machine at launch.

สโคปที่ต้องใช้: read

พารามิเตอร์

ชื่อ ตำแหน่ง ชนิด จำเป็น คำอธิบาย
limit query integer ไม่
cursor query string ไม่

ตัวอย่างคำขอ (curl)

curl "https://apidly.com/api/v1/regions?limit=20" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.regions.list({ limit: 20 });

Python (SDK)

client.regions.list()

เครื่องมือบรรทัดคำสั่ง: apidly regions (เอกสารอ้างอิง CLI)

ตัวอย่างผลลัพธ์ (200)

{
  "regions": [
    {
      "region": "South Korea",
      "regionCode": "KR",
      "continent": "asia",
      "servers": 1
    }
  ],
  "nextCursor": "example"
}

สถานะข้อผิดพลาด: 401, 403, 429.

GET /quickstart

เทมเพลตและแพ็กเกจที่ การเริ่มต้นด่วน จะเลือกให้สำหรับเป้าหมาย

Same rules as the console's Quick start: the goal's first template in the catalogue that has an in-stock plan, then the cheapest in-stock plan that meets its GPU memory and hardware needs (single GPU first, the recommended memory when it is offered at a sensible price). maxHourlyUsd keeps only plans whose price per running hour (compute and the template's disk) is within it; when none fits, the cheapest fit is returned with budget: "over". hours adds totalMicros, the running cost for that long. status: ok, no_capacity (the template exists but nothing in stock fits; template is set) or no_template. Without goal the answer is the goal menu: status: "choose_goal" and goalOptions, each goal with its English title, template and all-in price per running hour. stoppedHourlyMicros is what the disk keeps costing while the server is stopped. Nothing is reserved or launched.

สโคปที่ต้องใช้: read

พารามิเตอร์

ชื่อ ตำแหน่ง ชนิด จำเป็น คำอธิบาย
goal query chat | images | train | notebook | transcribe | api | server ไม่
maxHourlyUsd query string ไม่
hours query number ไม่

ตัวอย่างคำขอ (curl)

curl "https://apidly.com/api/v1/quickstart" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

เครื่องมือบรรทัดคำสั่ง: apidly up (เอกสารอ้างอิง CLI)

ตัวอย่างผลลัพธ์ (200)

{
  "goal": "example",
  "defaults": {
    "sshKeyIds": [
      "example"
    ],
    "autoStopHours": 1,
    "region": "example"
  },
  "goals": [
    "example"
  ],
  "status": "ok",
  "goalOptions": [
    {
      "id": "example",
      "title": "example",
      "description": "example",
      "status": "ok",
      "template": {
        "slug": "example",
        "name": "example"
      },
      "fromHourlyMicros": "1000000",
      "fromHourlyUsd": "1.000000"
    }
  ],
  "template": {
    "id": "example",
    "slug": "example",
    "name": "example",
    "launchMode": "example",
    "use": "page"
  },
  "plan": {
    "id": "example",
    "slug": "example",
    "name": "example",
    "gpuModel": "example",
    "gpuCount": 1,
    "vramGb": 1,
    "vcpus": 1,
    "ramGb": 1,
    "diskGb": 1,
    "hourlyPriceMicros": "1000000",
    "hourlyPriceUsd": "1.000000",
    "storageHourlyMicrosPerGb": "1000000",
    "storageHourlyUsdPerGb": "1.000000",
    "monthlyPriceMicros": "1000000",
    "monthlyPriceUsd": "1.000000",
    "tier": "standard",
    "featured": false,
    "sort": 1,
    "availability": "available",
    "priceSyncedAt": "2026-11-21T10:00:00.000Z",
    "variants": [
      []
    ],
    "fx": [
      1
    ],
    "performanceIndex": 1,
    "perf": 1,
    "endsSoon": 1,
    "earliestEndAt": "2026-11-21T10:00:00.000Z",
    "interruptibleHourlyPriceMicros": "1000000",
    "interruptibleHourlyPriceUsd": "1.000000"
  },
  "diskGb": 1,
  "reason": {
    "code": "anyGpu",
    "haveGb": 1,
    "needGb": 1,
    "spareGb": 1,
    "recommendedGb": 1
  },
  "budget": "within",
  "hourlyMicros": "1000000",
  "hourlyUsd": "1.000000",
  "stoppedHourlyMicros": "1000000",
  "stoppedHourlyUsd": "1.000000",
  "hours": 1,
  "totalMicros": "1000000",
  "totalUsd": "1.000000",
  "faster": {
    "plan": {
      "id": "example",
      "slug": "example",
      "name": "example",
      "gpuModel": "example",
      "gpuCount": 1,
      "vramGb": 1,
      "vcpus": 1,
      "ramGb": 1,
      "diskGb": 1,
      "hourlyPriceMicros": "1000000",
      "hourlyPriceUsd": "1.000000",
      "storageHourlyMicrosPerGb": "1000000",
      "storageHourlyUsdPerGb": "1.000000",
      "monthlyPriceMicros": "1000000",
      "monthlyPriceUsd": "1.000000",
      "tier": "standard",
      "featured": false,
      "sort": 1,
      "availability": "available",
      "priceSyncedAt": "2026-11-21T10:00:00.000Z",
      "variants": [
        []
      ],
      "fx": [
        1
      ],
      "performanceIndex": 1,
      "perf": 1,
      "endsSoon": 1,
      "earliestEndAt": "2026-11-21T10:00:00.000Z",
      "interruptibleHourlyPriceMicros": "1000000",
      "interruptibleHourlyPriceUsd": "1.000000"
    },
    "hourlyMicros": "1000000",
    "hourlyUsd": "1.000000"
  }
}

สถานะข้อผิดพลาด: 400, 401, 403, 429.

GET /plans/{id}/history

ประวัติราคาและความพร้อมใช้งาน 30 วันของแพ็กเกจ

สโคปที่ต้องใช้: read

พารามิเตอร์

ชื่อ ตำแหน่ง ชนิด จำเป็น คำอธิบาย
id path string ใช่

ตัวอย่างคำขอ (curl)

curl "https://apidly.com/api/v1/plans/pln_example/history" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.plans.history("pln_example");

Python (SDK)

client.plans.history("pln_example")

เครื่องมือบรรทัดคำสั่ง: apidly plans (เอกสารอ้างอิง CLI)

ตัวอย่างผลลัพธ์ (200)

{
  "planId": "id_example",
  "days": [
    {
      "day": "example",
      "priceMicros": "1000000",
      "priceUsd": "1.000000",
      "availability": "available"
    }
  ],
  "minMicros": "1000000",
  "minUsd": "1.000000",
  "maxMicros": "1000000",
  "maxUsd": "1.000000",
  "observedDays": 1
}

สถานะข้อผิดพลาด: 401, 403, 404, 429.

GET /plan-filters

ตัวกรองแพ็กเกจที่บันทึกไว้ขององค์กร

The deploy wizard's saved searches (at most 10 per organization, shared by its members), newest first.

สโคปที่ต้องใช้: read · สิทธิ์: servers.view

ตัวอย่างคำขอ (curl)

curl "https://apidly.com/api/v1/plan-filters" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.planFilters.list();

Python (SDK)

client.plan_filters.list()

เครื่องมือบรรทัดคำสั่ง: apidly filters (เอกสารอ้างอิง CLI)

ตัวอย่างผลลัพธ์ (200)

{
  "presets": [
    {
      "id": "example",
      "name": "example",
      "filters": {
        "core": {
          "key": null
        },
        "hw": {
          "key": null
        }
      },
      "createdAt": "2026-11-21T10:00:00.000Z"
    }
  ]
}

สถานะข้อผิดพลาด: 401, 403, 429.

POST /plan-filters

บันทึกตัวกรองแพ็กเกจด้วยชื่อ

409 limit_reached at 10 saved filters, 409 name_taken when the name (ignoring case) is in use.

สโคปที่ต้องใช้: servers · สิทธิ์: servers.deploy · ลองซ้ำได้อย่างปลอดภัยด้วย: Idempotency-Key

เนื้อหาคำขอ

ชื่อ ชนิด จำเป็น คำอธิบาย
name string ใช่
filters object ไม่

ตัวอย่างคำขอ (curl)

curl -X POST "https://apidly.com/api/v1/plan-filters" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"name":"example"}'

JavaScript (SDK)

await apidly.planFilters.create({
  name: "example"
});

Python (SDK)

client.plan_filters.create(name="example", filters={
    "core": {
        "availableOnly": True,
        "gpus": 0,
        "maxPrice": 0,
    },
    "hw": {
        "cores": 0,
        "cpu": "",
        "cuda": 0,
    },
})

เครื่องมือบรรทัดคำสั่ง: apidly filters (เอกสารอ้างอิง CLI)

ตัวอย่างผลลัพธ์ (201)

{
  "preset": {
    "id": "example",
    "name": "example",
    "filters": {
      "core": {
        "key": null
      },
      "hw": {
        "key": null
      }
    },
    "createdAt": "2026-11-21T10:00:00.000Z"
  }
}

สถานะข้อผิดพลาด: 400, 401, 403, 409, 429.

DELETE /plan-filters/{id}

ลบตัวกรองแพ็กเกจที่บันทึกไว้

Needs the same servers scope as saving one.

สโคปที่ต้องใช้: servers · สิทธิ์: servers.deploy

พารามิเตอร์

ชื่อ ตำแหน่ง ชนิด จำเป็น คำอธิบาย
id path string ใช่

ตัวอย่างคำขอ (curl)

curl -X DELETE "https://apidly.com/api/v1/plan-filters/planfilter_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.planFilters.delete("planfilter_example");

Python (SDK)

client.plan_filters.delete("planfilter_example")

เครื่องมือบรรทัดคำสั่ง: apidly filters (เอกสารอ้างอิง CLI)

ตัวอย่างผลลัพธ์ (200)

{
  "deleted": false,
  "id": "example"
}

สถานะข้อผิดพลาด: 401, 403, 404, 429.

GET /plan-watches

แพ็กเกจที่สมาชิกเจ้าของคีย์กำลังติดตาม

สโคปที่ต้องใช้: read · สิทธิ์: servers.view

ตัวอย่างคำขอ (curl)

curl "https://apidly.com/api/v1/plan-watches" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.plans.listWatches();

Python (SDK)

client.plans.list_watches()

เครื่องมือบรรทัดคำสั่ง: apidly watch (เอกสารอ้างอิง CLI)

ตัวอย่างผลลัพธ์ (200)

{
  "planIds": [
    "example"
  ]
}

สถานะข้อผิดพลาด: 401, 403, 429.

POST /plan-watches

รับอีเมลหนึ่งฉบับเมื่อแพ็กเกจที่ไม่ว่างกลับมาพร้อมใช้

Watches a plan that is out of stock for 14 days on behalf of the key's member; one email goes to them when it is available again. consent: true is their request for that email. Repeating the call renews the watch. 409 plan_available when the plan can be deployed now, 409 limit_reached when too many plans are watched.

สโคปที่ต้องใช้: servers · สิทธิ์: servers.view

เนื้อหาคำขอ

ชื่อ ชนิด จำเป็น คำอธิบาย
planId string ใช่
consent true ใช่

ตัวอย่างคำขอ (curl)

curl -X POST "https://apidly.com/api/v1/plan-watches" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"planId":"id_example","consent":true}'

JavaScript (SDK)

await apidly.plans.watch("id_example");

Python (SDK)

client.plans.watch(plan_id="id_example")

เครื่องมือบรรทัดคำสั่ง: apidly watch (เอกสารอ้างอิง CLI)

ตัวอย่างผลลัพธ์ (201)

{
  "watch": {
    "planId": "id_example",
    "expiresAt": "2026-11-21T10:00:00.000Z"
  }
}

สถานะข้อผิดพลาด: 400, 401, 403, 404, 409, 429.

DELETE /plan-watches/{planId}

เลิกติดตามแพ็กเกจ

Needs the same servers scope as starting the watch.

สโคปที่ต้องใช้: servers · สิทธิ์: servers.view

พารามิเตอร์

ชื่อ ตำแหน่ง ชนิด จำเป็น คำอธิบาย
planId path string ใช่

ตัวอย่างคำขอ (curl)

curl -X DELETE "https://apidly.com/api/v1/plan-watches/planwatche_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.plans.unwatch("planwatche_example");

Python (SDK)

client.plans.unwatch("planwatche_example")

เครื่องมือบรรทัดคำสั่ง: apidly watch (เอกสารอ้างอิง CLI)

ตัวอย่างผลลัพธ์ (200)

{
  "removed": false,
  "planId": "id_example"
}

สถานะข้อผิดพลาด: 401, 403, 429.

พร้อมลองแล้วหรือยัง

สร้างบัญชีฟรีและเติมเครดิตเมื่อต้องการเริ่มเซิร์ฟเวอร์ ยอดเติมเงินขั้นต่ำคือ $10

สร้างบัญชีฟรี

เนื้อหานี้มีประโยชน์หรือไม่

ยังแก้ไม่ได้ใช่ไหม ติดต่อเรา