LINKORA
OverviewQuickstart

Client SDKs

Lightweight, type-safe clients for the Linkora API

The Client SDKs give you a thin, type-safe layer over the Linkora REST API. It handles authentication, request validation, and response typing so you can call any of 400+ models with a single function call, with no boilerplate and no provider-specific quirks.

Installation

LanguagePackage
TypeScript[`@linkora/sdk`](https://www.npmjs.com/package/@linkora/sdk)
Python[`linkora`](https://pypi.org/project/linkora/)
Go[`go-sdk`](https://pkg.go.dev/github.com/LinkoraTeam/go-sdk)
npm install @linkora/sdk

All three SDKs are auto-generated from the Linkora OpenAPI spec, so new models, parameters, and endpoints appear immediately after each API release.

When to use the Client SDKs

Choose the Client SDKs when you need direct, efficient access to model inference and want to manage your own application logic:

  • Single-turn completions, send a prompt, get a response
  • Streaming responses, real-time token-by-token output
  • Embeddings, video, and rerank, generate vector representations, create videos, and rerank results
  • API key and credit management, programmatic control over your account
  • Custom orchestration, you handle conversation loops, tool dispatch, and state yourself

The Client SDKs are intentionally lean. It mirrors the Linkora API surface 1:1 with full type safety, so there is no abstraction to fight when you need fine-grained control.

If you want higher-level primitives for building agents (multi-turn loops, tool definitions, stop conditions, and conversation state management), see the Agent SDK instead.

Quick example

import { Linkora } from '@linkora/sdk';

const client = new Linkora({
  apiKey: process.env.LINKORA_API_KEY,
});

const response = await client.responses.send({
  responsesRequest: {
    model: 'openai/gpt-5.2',
    input: 'Explain quantum computing in one sentence.',
  },
});

if (!('output' in response)) {
  throw new Error('Expected a non-streaming response');
}
if (response.status !== 'completed') {
  throw new Error(response.error?.message ?? `Response ended as ${response.status}`);
}

const message = [...response.output].reverse().find((item) => item.type === 'message');
console.log(message?.content.find((part) => part.type === 'output_text')?.text);

Client SDKs vs Agent SDK

Client SDKsAgent SDK
**Focus**Lean API client, mirrors the REST API with full type safetyAgentic primitives, multi-turn loops, tools, stop conditions
**Use when**You want direct model calls and manage orchestration yourselfYou want built-in agent loops, tool execution, and state management
**Conversation state**You manage itManaged for you via `callModel`
**Tool execution**You dispatch tool callsAutomatic with the `tool()` helper
**Languages**TypeScript, Python, GoTypeScript

Next steps