First-party SDKs
Typed clients for TypeScript and Python — install, point at your gateway, and generate.
Install
npm install @litegen/sdkGenerate an image or video
import { LiteGenClient } from '@litegen/sdk';
const client = new LiteGenClient({
baseUrl: process.env.LITEGEN_BASE_URL ?? 'http://localhost:4000',
apiKey: process.env.LITEGEN_API_KEY,
});
// Image — returns the result directly
const image = await client.images.generate({
prompt: 'a red panda coding at a desk, cinematic lighting',
model: 'openai/dall-e-3',
size: '1024x1024',
});
console.log(image.data[0]?.url);
// Video — await resolves to the finished job (submits + polls under the hood)
const video = await client.videos.generate({
prompt: 'a timelapse of clouds drifting over a city',
model: 'runway/gen-3',
duration_seconds: 5,
});
console.log(video.video_url);
// …or stream progress as it runs:
for await (const update of client.videos.generate({
prompt: 'a timelapse of clouds drifting over a city',
model: 'runway/gen-3',
})) {
console.log(update.status, update.progress);
}Models & capabilities
Every model LiteGen integrates and exactly what each one accepts — generated from the capability registry that powers the gateway.
bedrock2
bfl6
bytedance4
fal8
google7
hunyuan2
ideogram3
kling4
leonardo4
luma7
minimax5
openai4
pixverse3
recraft5
replicate6
runway4
stability5
vidu3
REST API
The complete HTTP contract, generated from the OpenAPI spec — for calling LiteGen directly without an SDK.