Zyka SDK
TypeScript and JavaScript SDK for AI image, video, and audio generation with Zyka.
Think of it like Remotion for AI generation: instead of React components rendering video frames, you write typed pipeline definitions (compositions + scenes) and the SDK orchestrates Zyka's API calls, polls for results, and delivers output URLs.
Zyka SDK gives developers a unified way to generate images, videos, speech, and media transformations using multiple AI models through one programmable API. It includes a low-level client for direct generation, a composition system for multi-step workflows, and a CLI for quick starts and automation.
Why Zyka SDK?
Build AI media pipelines without manually handling uploads, polling loops, or output downloads.
Highlights
🖼️ Generate images with models like GPT Image, DALL·E, Flux, Kling Image, Nano Banana, and more
🎬 Generate videos with models like Sora, Veo, Kling, WAN, Bytedance, and Grok Imagine Video
🔊 Generate TTS audio with providers like ElevenLabs, MiniMax, Qwen3, Chatterbox, and Fish Audio
⚡ Use a simple Node.js API with sensible defaults
📤 Pass local file paths and let the SDK upload them automatically
⏳ Wait for completion automatically or manage async jobs manually
💾 Download outputs directly to disk
🧱 Compose multi-scene AI workflows with typed inputs and dependencies
🛠️ Use the included CLI for auth, scaffolding, rendering, and direct generation
Features
🖼️ Image Generation
🎬 Video Generation
🔊 Audio / TTS Generation
⚡ Fast Developer API
📡 Async Progress Workflows
🧠 Multiple AI Models
Core Features
| Feature | What it does | Why it matters |
|---|
| Unified client | One ZykaClient for image, video, audio, and app endpoints | Fewer SDKs and wrappers to manage |
| Auto-upload | Detects local file paths and uploads them before API requests | Easier image-to-video, img2img, and voice cloning workflows |
| Auto-polling | createImage, createVideo, and createTTS wait for completion by default | No manual polling code for common use cases |
| Auto-download | Save completed outputs with output: './path.ext' | Faster local testing and scripting |
| Multi-model support | Supports multiple providers and model families behind one API | Easier experimentation and model switching |
| Composition engine | Define scenes, dependencies, and typed inputs | Great for repeatable creative pipelines |
| CLI | zyka auth, zyka init, zyka render, zyka generate | Useful for prototyping and CI scripts |
| Prompt refinement | Refine prompts before generation | Better prompts with less manual iteration |
| Media apps | Includes utility endpoints like upscaling, captioning, dubbing, and face swap | Covers more than just generation |
Installation
npm
npm install zyka-sdk
yarn
yarn add zyka-sdk
pnpm
pnpm add zyka-sdk
If you want input validation for compositions, install zod as well:
npm install zod
Use with AI Agents
Zyka ships as an agent skill, which teaches your coding agent how to drive the
zyka CLI. Once installed, you ask for media in plain language and the agent runs
the right command for you.
Supported: Claude Code, Codex, ChatGPT, Dots, Cursor, Grok Bot and Muse Code.
Every one of them reads the same skill from skills/zyka-ai/SKILL.md.
Step 1: Prerequisites
Both of these are required, whichever agent you use.
# 1. Install the CLI the skill drives
npm install -g zyka
# 2. Set your API key (get one at https://zyka.ai)
export ZYKA_API_KEY=zk_live_...
# 3. Confirm it works
zyka auth whoami
Add the export line to your ~/.zshrc or ~/.bashrc. Agents inherit the shell
environment they were launched from, so a key set only in a temporary shell will
not reach them.
Step 2: Install into your agent
Claude Code
/plugin marketplace add kshitijdixit/zyka-sdk
/plugin install zyka-sdk@zyka
Codex, ChatGPT and Dots
codex plugin marketplace add kshitijdixit/zyka-sdk
codex plugin add zyka-sdk@zyka