🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@inferlane/sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inferlane/sdk

Multi-provider LLM proxy SDK with smart routing, streaming, and cost optimization

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
7
-53.33%
Maintainers
1
Weekly downloads
 
Created
Source

@inferlane/sdk

TypeScript SDK for the InferLane API. Route, schedule, and optimize AI inference across providers.

Install

npm install @inferlane/sdk

Quick Start

import { InferLane } from '@inferlane/sdk';

const il = new InferLane({ apiKey: 'il_...' });

// Route to cheapest provider
const response = await il.dispatch({
  prompt: 'Explain quantum computing',
  routing: 'cheapest',
});

// Schedule for later
await il.schedule({
  prompt: 'Generate weekly report',
  model: 'claude-sonnet-4',
  scheduleType: 'RECURRING',
  cronExpression: '0 9 * * 1',
});

// Check savings
const savings = await il.savings({ period: '30d' });
console.log(`Saved $${savings.totalSaved}`);

Subpath Exports

import { ... } from '@inferlane/sdk';           // Core SDK
import { ... } from '@inferlane/sdk/openai';     // OpenAI-compatible client
import { ... } from '@inferlane/sdk/ingest';     // Usage ingestion
import { ... } from '@inferlane/sdk/estimate';   // Cost estimation
import { ... } from '@inferlane/sdk/vercel-ai';  // Vercel AI SDK integration
import { ... } from '@inferlane/sdk/langchain';  // LangChain integration

API Reference

dispatch(options) — Send a prompt

schedule(options) — Schedule a prompt

triage(options) — Classify a prompt

savings(options) — View cost savings

models() — List available models

health() — Provider health status

License

MIT

Keywords

llm

FAQs

Package last updated on 02 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts