import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.plans.vm.list();
console.log(result);
}
run();{
"data": [
{
"id": "plan_aNmodj4eDbE8W",
"type": "virtual_machine_plans",
"attributes": {
"name": "vm.l40s.tiny",
"specs": {
"memory": 16,
"gpu": "NVIDIA H100 Tensor Core GPU",
"vram_per_gpu": 80,
"vcpus": 14,
"vcpu": {
"count": 14,
"clock": 3.8,
"type": "Intel Xeon"
},
"nics": [
{
"type": "1 Gbps",
"count": "1"
}
],
"disk": {
"type": "local NVMe",
"size": {
"amount": 150,
"unit": "gib"
}
}
},
"regions": [
{
"name": "United States",
"locations": {
"available": [
"DAL"
],
"in_stock": [
"DAL"
]
},
"stock_level": "low",
"pricing": {
"USD": {
"hour": 1,
"month": 720,
"year": 8640
},
"BRL": {
"hour": 1,
"month": 720,
"year": 8640
}
}
}
],
"stock_level": "low",
"available_operating_systems": [
"ubuntu_24_04_x64_lts",
"debian_13",
"rocky_10",
"almalinux_10"
]
}
}
]
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.plans.vm.list();
console.log(result);
}
run();{
"data": [
{
"id": "plan_aNmodj4eDbE8W",
"type": "virtual_machine_plans",
"attributes": {
"name": "vm.l40s.tiny",
"specs": {
"memory": 16,
"gpu": "NVIDIA H100 Tensor Core GPU",
"vram_per_gpu": 80,
"vcpus": 14,
"vcpu": {
"count": 14,
"clock": 3.8,
"type": "Intel Xeon"
},
"nics": [
{
"type": "1 Gbps",
"count": "1"
}
],
"disk": {
"type": "local NVMe",
"size": {
"amount": 150,
"unit": "gib"
}
}
},
"regions": [
{
"name": "United States",
"locations": {
"available": [
"DAL"
],
"in_stock": [
"DAL"
]
},
"stock_level": "low",
"pricing": {
"USD": {
"hour": 1,
"month": 720,
"year": 8640
},
"BRL": {
"hour": 1,
"month": 720,
"year": 8640
}
}
}
],
"stock_level": "low",
"available_operating_systems": [
"ubuntu_24_04_x64_lts",
"debian_13",
"rocky_10",
"almalinux_10"
]
}
}
]
}Was this page helpful?