ImagineoAI SDK Documentation Index
Welcome to the ImagineoAI JavaScript SDK documentation.
Features
The ImagineoAI SDK provides comprehensive image generation and editing capabilities:
- Multiple AI Models: Flux Dev, OpenAI, Google Imagen4, Flux Kontext Max/Multi, WAN Image 2.1/2.2
- Image Generation: High-quality text-to-image generation with unified model types
- Advanced Models: WAN Image 2.1 and 2.2 with dual LoRA support for fine-tuned generation
- Image Editing: Advanced editing with Flux Kontext Max
- File Upload: Direct image and mask uploads
- Async Processing: Webhook support and progress tracking
- TypeScript Support: Full type safety with Zod validation
Contents
- API Reference - Complete method and type reference
- Usage Guide - Examples and workflows
- Authentication & Security - API key and token setup
- Architecture & Design - SDK design principles
- FAQ & Troubleshooting - Common questions and solutions
Quick Start
import { ImagineoAIClient } from '@imagineoai/javascript';
const client = new ImagineoAIClient('https://api.imagineoai.com', {
apiKey: 'your-api-key'
});
// Generate with Flux Kontext Max
const result = await client.images.generate({
prompt: 'A majestic mountain landscape',
model_type: 'flux-kontext-max',
aspect_ratio: '16:9'
});
// Edit the generated image
const edit = await client.images.edit.fluxKontext.json({
original_run_id: result.data.run_id,
prompt: 'Add a rainbow over the mountains'
});
See each section for in-depth details and examples.