@simpill/image-ai-core
v0.1.2
Published
Engine-agnostic AI image generation SDK: Gemini, OpenAI, xAI adapters, Zod schemas, prompt registry, and guard
Maintainers
Readme
@simpill/image-ai-core
Source and full documentation: github.com/SkinnnyJay/ai-image-generated-ai-cli
(npm does not pull from GitHub; this README is bundled in the package. For the latest docs, use the repo above.)
Engine-agnostic AI image generation SDK: Gemini, OpenAI, xAI adapters, Zod schemas, prompt registry, prompt-injection guard, and asset tool registration. Part of the simpill toolkit.
Install
npm install @simpill/image-ai-coreUsage
import { createEngine } from "@simpill/image-ai-core";
const engine = createEngine("gemini", { apiKey: process.env.GEMINI_API_KEY });
const result = await engine.generate({ prompt: "a cat", width: 1024, height: 1024 });
// result.images: Uint8Array[]Exports: createEngine, checkPromptGuard, generateRequestSchema, spritesheetMetaSchema, registerPrompts, discoverPrompts, registerTool, getTool, listTools, and more. See the GitHub repo for full API and usage.
Repository
- GitHub: https://github.com/SkinnnyJay/ai-image-generated-ai-cli
- Issues: https://github.com/SkinnnyJay/ai-image-generated-ai-cli/issues
