Ana içeriğe geç
Apidly Cloud
Çerez politikası

Kabul etmediğiniz sürece analiz ve reklam çerezleri kapalı kalır. Çerez politikası

Sayfa görüntülemeleri ve oturum kayıtları dahil, herkese açık sayfaların nasıl kullanıldığını anlamak için Google Analytics ve Microsoft Clarity'yi, ayrıca Reddit'teki reklamlarımızın ziyaretlere ve kayıtlara yol açıp açmadığını ölçmek için Reddit Pixel'i kullanmak istiyoruz. Açık olup olmayacaklarını burada siz seçersiniz. Reddetmek sitenin çalışmasını değiştirmez.

API başvurusu: Katalog

Katalog için API v1 işlemleri: scope, parametreler, curl, JavaScript ve Python örnekleri ve yanıtlar.

Son güncelleme: 21 Kasım 20267 dk okuma
Markdown olarak görüntüle

Katalog: API v1'in tüm işlemleri; gerekli scope, parametreler, curl, JavaScript ve Python örnekleri ve yanıtlarla. Kimlik doğrulama, hatalar, sayfalama, sınırlar ve idempotentlik API başvurusuna genel bakış sayfasındadır; ayrıca SDK'lara ve komut satırına bakın.

Anahtarınızla deneyin: konsolda bir API anahtarı oluşturun, terminalde export APIDLY_API_KEY=... komutunu çalıştırın ve aşağıdaki curl örneklerinden birini yapıştırın. Örnek değerler örnek amaçlıdır. Bu sayfada anahtar girilecek bir alan yoktur.

İşlem ve alan açıklamaları API tanımından gelir ve İngilizcedir.

İşlem Gereken scope Özet
GET /plans read Fiyat ve stok durumuyla planlar
GET /gpus read En düşük fiyatlı ve en iyi stok durumlu GPU modelleri
GET /benchmarks read GPU sınıfına göre ölçülen performans
GET /regions read Sunucularınızın çalıştığı bölgeler
GET /quickstart read Hızlı başlangıcın bir hedef için seçeceği şablon ve plan
GET /plans/{id}/history read Bir planın 30 günlük fiyat ve stok geçmişi
GET /plan-filters read Kuruluşun kayıtlı plan filtreleri
POST /plan-filters servers Bir plan filtresini bir adla kaydet
DELETE /plan-filters/{id} servers Kayıtlı bir plan filtresini sil
GET /plan-watches read Anahtarın üyesinin izlediği planlar
POST /plan-watches servers Kullanılamayan bir plan geri geldiğinde bir e-posta al
DELETE /plan-watches/{planId} servers Bir planı izlemeyi bırak

GET /plans

Fiyat ve stok durumuyla planlar

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.

Gereken scope: read

Parametreler

Ad Yeri Tür Zorunlu Açıklama
limit query integer hayır
cursor query string hayır
gpu query string hayır
minVramGb query number hayır
maxVramGb query number hayır
minGpus query integer hayır
maxGpus query integer hayır
minDiskGb query number hayır
minRamGb query number hayır
minVcpus query number hayır
region query na | eu | ap | other hayır
hosting query datacenter | independent | any hayır
maxPriceUsd query string hayır
minPerfIndex query number hayır Minimum Apidly performance index (one GPU of the reference model = 100); plans without an index never pass.
minPerfScore query number hayır Deprecated name of minPerfIndex (same scale), read until 2027-05-31. Send minPerfIndex.
availability query available | limited | unavailable hayır
sort query recommended | price | perf | perf_per_dollar | vram hayır
query query string hayır

Örnek istek (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()

Komut satırı aracı: apidly init, apidly plans, apidly export, apidly plan, apidly apply (CLI başvurusu)

Örnek yanıt (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"
}

Hata durumları: 401, 403, 429.

GET /gpus

En düşük fiyatlı ve en iyi stok durumlu GPU modelleri

Gereken scope: read

Parametreler

Ad Yeri Tür Zorunlu Açıklama
limit query integer hayır
cursor query string hayır

Örnek istek (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()

Komut satırı aracı: apidly gpus (CLI başvurusu)

Örnek yanıt (200)

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

Hata durumları: 401, 403, 429.

GET /benchmarks

GPU sınıfına göre ölçülen performans

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).

Gereken scope: read

Parametreler

Ad Yeri Tür Zorunlu Açıklama
limit query integer hayır
cursor query string hayır
gpu query string hayır

Örnek istek (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()

Komut satırı aracı: apidly benchmarks (CLI başvurusu)

Örnek yanıt (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"
}

Hata durumları: 401, 403, 429.

GET /regions

Sunucularınızın çalıştığı bölgeler

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

Gereken scope: read

Parametreler

Ad Yeri Tür Zorunlu Açıklama
limit query integer hayır
cursor query string hayır

Örnek istek (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()

Komut satırı aracı: apidly regions (CLI başvurusu)

Örnek yanıt (200)

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

Hata durumları: 401, 403, 429.

GET /quickstart

Hızlı başlangıcın bir hedef için seçeceği şablon ve plan

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.

Gereken scope: read

Parametreler

Ad Yeri Tür Zorunlu Açıklama
goal query chat | images | train | notebook | transcribe | api | server hayır
maxHourlyUsd query string hayır
hours query number hayır

Örnek istek (curl)

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

Komut satırı aracı: apidly up (CLI başvurusu)

Örnek yanıt (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"
  }
}

Hata durumları: 400, 401, 403, 429.

GET /plans/{id}/history

Bir planın 30 günlük fiyat ve stok geçmişi

Gereken scope: read

Parametreler

Ad Yeri Tür Zorunlu Açıklama
id path string evet

Örnek istek (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")

Komut satırı aracı: apidly plans (CLI başvurusu)

Örnek yanıt (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
}

Hata durumları: 401, 403, 404, 429.

GET /plan-filters

Kuruluşun kayıtlı plan filtreleri

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

Gereken scope: read · İzin: servers.view

Örnek istek (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()

Komut satırı aracı: apidly filters (CLI başvurusu)

Örnek yanıt (200)

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

Hata durumları: 401, 403, 429.

POST /plan-filters

Bir plan filtresini bir adla kaydet

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

Gereken scope: servers · İzin: servers.deploy · Şununla güvenle tekrarlanabilir: Idempotency-Key

İstek gövdesi

Ad Tür Zorunlu Açıklama
name string evet
filters object hayır

Örnek istek (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,
    },
})

Komut satırı aracı: apidly filters (CLI başvurusu)

Örnek yanıt (201)

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

Hata durumları: 400, 401, 403, 409, 429.

DELETE /plan-filters/{id}

Kayıtlı bir plan filtresini sil

Needs the same servers scope as saving one.

Gereken scope: servers · İzin: servers.deploy

Parametreler

Ad Yeri Tür Zorunlu Açıklama
id path string evet

Örnek istek (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")

Komut satırı aracı: apidly filters (CLI başvurusu)

Örnek yanıt (200)

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

Hata durumları: 401, 403, 404, 429.

GET /plan-watches

Anahtarın üyesinin izlediği planlar

Gereken scope: read · İzin: servers.view

Örnek istek (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()

Komut satırı aracı: apidly watch (CLI başvurusu)

Örnek yanıt (200)

{
  "planIds": [
    "example"
  ]
}

Hata durumları: 401, 403, 429.

POST /plan-watches

Kullanılamayan bir plan geri geldiğinde bir e-posta al

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.

Gereken scope: servers · İzin: servers.view

İstek gövdesi

Ad Tür Zorunlu Açıklama
planId string evet
consent true evet

Örnek istek (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")

Komut satırı aracı: apidly watch (CLI başvurusu)

Örnek yanıt (201)

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

Hata durumları: 400, 401, 403, 404, 409, 429.

DELETE /plan-watches/{planId}

Bir planı izlemeyi bırak

Needs the same servers scope as starting the watch.

Gereken scope: servers · İzin: servers.view

Parametreler

Ad Yeri Tür Zorunlu Açıklama
planId path string evet

Örnek istek (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")

Komut satırı aracı: apidly watch (CLI başvurusu)

Örnek yanıt (200)

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

Hata durumları: 401, 403, 429.

Denemeye hazır mısınız?

Ücretsiz bir hesap oluşturun ve sunucu başlatmak istediğinizde kredi ekleyin. En düşük yükleme tutarı $10.

Ücretsiz hesap oluşturun

Bu yararlı oldu mu?

Hâlâ takıldınız mı? Bize ulaşın