TypeScript + Python SDKs

Build AI systems
that stay portable.

One developer experience for agents, tools, streaming, structured output, and provider-aware routing—without locking your application to one model vendor.

Server-firstBun · Node.js · Python 3.11+
Provider-flexiblePortable core · Native control
quickstart.ts Ready
01import { generateText } from "@zhivex-ai/sdk";
02import { createOpenAI } from "@zhivex-ai/openai";
03
04const model = createOpenAI()("gpt-5.6-terra");
05
06const result = await generateText({
07  model,
08  prompt: "Ship something remarkable."
09});
10
11console.log(result.text);
TOOLStyped
STATEdurable
ROUTINGportable

Built for a multi-provider world

OpenAIAnthropicAzure OpenAIGeminiVertex AIQwenKimixAIDeepSeekBedrockOpenRouterOllama
Why Zhivex

Your app should outlive
today’s model choice.

Provider APIs move fast. Zhivex gives your product a stable application layer while keeping advanced provider features within reach.

Your product
Application logicOne integration surface
Zhivex layer
Portable coreAgents · tools · streams · state
Model ecosystem
OpenAI
Anthropic
Gemini
Qwen
+ native providers
Choose your runtime

Two SDKs. One design language.

Use the ecosystem your team already knows. Both SDKs are designed around portable AI foundations and deliberate provider-specific control.

TS
TypeScriptServer-first

@zhivex-ai/sdk

Built for Bun and modern Node.js.

A unified, ESM-first toolkit for generation, agents, workflows, streaming, provider adapters, routing, and production controls.

bun add @zhivex-ai/sdk
  • Stable Runner + SessionService surface
  • Opt-in provider packages
  • Bun and Node.js server runtimes
PY
PythonAsync-first

zhivex-ai-sdk

Agent-first for Python 3.11+.

Build orchestrated AI systems with agents, handoffs, approvals, durable run state, tools, traces, and portable provider foundations.

pip install zhivex-ai-sdk
  • Async-first agent runtime
  • Durable state and approval resume
  • Python 3.11 through 3.14
Shared foundations

Useful from prototype
to production.

Adopt one layer at a time. The shared contract stays small while operational capabilities remain available when your system needs them.

01

Portable contracts

Keep messages, tools, streaming events, usage, and structured output consistent as models change.

02

Agent-ready runtimes

Build tool-using agents with sessions, handoffs, approvals, durable state, replay, and evaluation hooks.

03

Production controls

Add safety policies, retries, middleware, budget guards, redaction, tracing, and provider-aware routing.

04

Native escape hatches

Start portable, then reach provider-specific capabilities without leaking them through your whole app.

05

Multimodal foundations

Use text, tools, structured output, embeddings, audio, files, and realtime features where supported.

06

Server-first by design

Keep credentials, tools, databases, and policy on trusted server runtimes—not inside browser clients.

Quickstart

From install to first response in minutes.

Pick your language, copy the command, and follow the focused quickstart for your runtime.

quickstart.ts
# Install the SDK and a provider
bun add @zhivex-ai/sdk @zhivex-ai/openai

import { generateText } from "@zhivex-ai/sdk";
import { createOpenAI } from "@zhivex-ai/openai";

const openai = createOpenAI();
const result = await generateText({
  model: openai("gpt-5.6-terra"),
  prompt: "What should we build next?"
});

console.log(result.text);
A production path

Adopt only what you need.
Add rigor when it matters.

01
Start small

Choose the stable surface

Begin with generation or the agent runtime and install only the provider adapters your app needs.

02
Scale safely

Move state to durable stores

Add shared sessions, Postgres-backed state, approvals, traces, and safety policies before real users arrive.

03
Stay flexible

Route without rewriting

Use the shared contract for portable behavior and native namespaces only for deliberate provider features.

Ready when you are

Build the AI layer
your product can grow on.

Copied to clipboard