UNPKG

@mvkproject/nexus

Version:

Free AI SDK with API key (500 free daily requests). Access 25+ LLM models (GPT-4, Gemini, Llama, DeepSeek), generate images with 14+ models (Flux, Stable Diffusion), and integrate Akinator game - all completely free.

24 lines (18 loc) 607 B
import { APIClient } from './utils/client.js'; import { ImageAPI } from './api/image.js'; import { TextAPI } from './api/text.js'; export class NexusClient { constructor(options) { if (typeof options === 'string') { options = { apiKey: options }; } const { apiKey, baseURL } = options; if (!apiKey) { throw new Error('API key is required. Get your free API key at https://nexus.drexus.xyz'); } this.client = new APIClient(apiKey, baseURL); this.image = new ImageAPI(this.client); this.text = new TextAPI(this.client); } } export default NexusClient;