Repository navigation
Releases
Releases · LatensRbh/latens-sdk
@latens/sdk v1.3.0: GPU Price History & Paginated Offers
Added
LatensReadOnlyClient.getPriceHistory({ model, window, interval, category }): queriesGET /api/v1/agent/models/historyreturning genuine recorded min, median, and max USD/GPU/hr time series across24h,7d, and30dwindows (15m,1h, and1dintervals) withfirst_recorded_atandcoverage_hours(zero backfill or interpolation).- Full pagination and sorting on
LatensReadOnlyClient.listOffers(): supportsoffset,limit(up to 100),sort(price_ascdefault,price_desc,vram_desc), and returnstotal,count,offset,limit,sort, andnext_offset. - Synced
openapi/openapi.v3.1.jsontoinfo.version: 1.3.0, documenting/api/v1/agent/models/history, strict unknown parameter rejection (HTTP 400 with hints), andtotalOffersvsfilteredOffers.
Verification & Compatibility
- Rebuilt zero-dependency ESM +
.d.tsbundle indist/and addedpublishConfig.access: "public"inpackage.jsonahead of npm publication. - Expanded unit test suite (
tests/sdk.test.mjs) covering price history queries, pagination params, and existing sizing/TCO/tier tests. - Live OpenAPI 3.1 specification:
https://latens.trade/api/v1/openapi.json. - Ecosystem token
$LTNSon Robinhood Chain (4663):0x6c29b040f7d139c93d22f8d6e29b1528e3ca4bf9.
@latens/sdk v1.2.0: LLM VRAM Sizing & Multi-Offer TCO Ranker
Added
estimateLlmVramRequirements(src/sizing.ts): deterministic VRAM breakdown covering parameter weights (fp32,fp16,bf16,fp8,int8,q8_0,q4_k_m,int4), GQA-aware KV cache scaling, LoRA and full fine-tuning optimizer/gradient/activation overhead, runtime headroom, and compatible multi-GPU layouts (RTX 3090,RTX 4090,L40S,A100 SXM,H100 SXM,H200,B200).rankOffersByTco(src/sizing.ts): filters unavailable or catalog-only listings, evaluates full rental TCO (compute + persistent storage amortization + outbound egress), applies$LTNSPrivate Compute Desk fee tiers and settlement rebates, and computes savings spread across providers.LatensReadOnlyClient.compareLiveOffersForWorkload(src/client.ts): end-to-end workload sizing paired with live normalized GPU offer TCO ranking.
Verification & Compatibility
- Prebuilt ESM +
.d.tsbundle indist/updated for zero-dependency direct GitHub installs (npm install github:LatensRbh/latens-sdk). - Expanded unit test suite (
tests/sdk.test.mjs) covering hardware normalization, deterministic cost breakdowns,$LTNStier resolution, LLM VRAM estimation, and multi-offer TCO ranking. - Live OpenAPI 3.1 specification synced at
https://latens.trade/api/v1/openapi.json. - Ecosystem token
$LTNSon Robinhood Chain (4663):0x6c29b040f7d139c93d22f8d6e29b1528e3ca4bf9.