● one endpoint  /  every model

AI infrastructure,
built for the developers
who ship it.

IKS puts model routing, retrieval-augmented generation, and embeddings behind a single, well-typed API. Stop stitching five vendors together. Write one call and deploy.

bash — iks-quickstart
# install the SDK
~ $ npm i @iks/sdk
added 1 package in 0.9s

# route a prompt — IKS picks the right model for the job
~ $ node
import { iks } from '@iks/sdk'
const r = await iks.route({
  task: 'summarize',
  input: doc,
  prefer: 'latency'
})
→ routed · streamed · done
// capabilities

Three primitives. One API surface.

The building blocks every AI feature needs, exposed as composable endpoints with consistent types, errors, and streaming across the board.

⇄

Model routing

Describe the task and your constraints. IKS routes each request to a suitable model, with automatic fallback when a provider degrades.

⌕

RAG pipeline

Ingest, chunk, index, and retrieve with a managed vector store. Grounded answers with source citations, no glue code to maintain.

⊹

Embeddings

A single embeddings endpoint with batching, caching, and dimension control — for search, clustering, and recommendation workloads.

// 01 — routing

Route by intent, not by vendor.

Pin a model when you want to, or hand IKS the task and let it choose based on your preference for latency, cost, or context length. Switching providers becomes a config change, never a rewrite.

  • Declarative task + preference routing
  • Automatic failover and retries
  • Streaming and structured output, uniformly
  • Per-request usage metadata returned inline
// one call, any backend
const { text, model, usage } =
  await iks.route({
    task: 'extract',
    schema: InvoiceSchema,
    input: pdfText,
    prefer: 'cost',
    fallback: true
  })

// model === whatever fit best
// 02 — retrieval

Grounded answers with citations.

Push your documents in; get back retrieval that is chunked, embedded, and indexed for you. Queries return ranked passages and a grounded response you can trust and trace.

  • Managed chunking and vector indexing
  • Hybrid keyword + semantic retrieval
  • Source spans attached to every answer
  • Namespaces to isolate per-tenant data
// ingest once
await iks.rag.ingest({
  namespace: 'handbook',
  docs
})

// ask, grounded
const a = await iks.rag.ask({
  namespace: 'handbook',
  query: q
})
a.sources → [ {id, span} ]
// 03 — embeddings

Vectors without the boilerplate.

Batch thousands of inputs in a single request. IKS caches repeats, handles rate limits, and lets you set output dimensions to match your index.

  • Batched requests with transparent caching
  • Configurable output dimensions
  • Deterministic IDs for idempotent writes
  • Drop-in with common vector databases
// batch embed
const vecs = await iks.embed({
  input: chunks, // string[]
  dims: 512
})

await db.upsert(
  vecs.map(toRecord)
)
→ 4096 vectors · cached hits skipped
1 endpoint

Routing, RAG, and embeddings share one typed client and one auth model.

Typed SDKs

First-class TypeScript and Python clients with inline usage metadata.

Stream-first

Server-sent streaming and structured output on every text route.

// developer experience

Read it in the morning, ship it by lunch.

Clear reference docs, copy-paste quickstarts, and honest error messages. The API is designed to be learnable in a single sitting.

{ }

Predictable types

Consistent request and response shapes across every endpoint, so your editor autocompletes the whole surface area.

!

Readable errors

Structured error codes with a message that tells you what to change — no guessing from an opaque 500.

⌁

Local-first testing

A test mode and deterministic fixtures let you run your suite without burning real inference calls.

// get started

Give it an afternoon.

Grab a key, install the SDK, and make your first routed call before your coffee goes cold.