Get up and running in minutes
npm install aurax
# or with yarn
yarn add aurax
# or with pnpm
pnpm add aurax
import { AuraXClient } from 'aurax';
const client = new AuraXClient({
apiKey: process.env.AURAX_API_KEY!,
keyId: process.env.AURAX_KEY_ID!,
baseUrl: "https://backend.aurax.co.in" // optional
});
See the SDK in action
Create realistic virtual try-on experiences with real-time streaming updates.
// Virtual Try-On Example
const { taskId } = await client.vto({
personImage: personBase64, // base64 encoded person image
garmentImage: garmentBase64, // base64 encoded garment image
productType: "GARMENT",
garmentStrength: 2, // 1-3, higher = more prominent
maskBase64: null, // optional mask
prompt: null, // optional text prompt
runWithPrompt: false
});
// Stream real-time updates
const eventSource = client.streamTask(taskId, {
onMessage: (message) => {
console.log('Status:', message.status);
if (message.status === 'COMPLETED') {
console.log('Result:', message.output);
eventSource.close();
}
},
onError: (error) => {
console.error('Error:', error);
eventSource.close();
}
});
Wide range of fashion categories supported
GARMENT
DRESS
OUTFIT
FOOTWEAR
BAG
JEWELLERY
EYEWEAR
BEAUTY
OTHER
Complete method documentation
vto()
Virtual try-on processingimageGeneration()
AI image creationproductDescription()
Description generationgetTask()
Get task statusstreamTask()
Stream real-time updatespollTask()
Poll until completiongetImage()
Retrieve image blob