BetaMirror for Developers

MIRROR FOR DEVELOPERS

Live updates

Change reference garments and prompts during an active iKawn session without reconnecting.

Read as Markdown

Update the current session instead of reconnecting. Omitting prompt preserves its current value; passing an explicitly blank prompt restores the clothing default when a reference exists.

JavaScript
// Change the garment without reconnecting.
await live.set({ referenceImage: anotherGarmentFile });

// Change the complete instruction.
await live.set({
  prompt: 'Replace only the jacket with the reference jacket. Preserve the person, lighting and background.'
});

// Restore the clothing-only default when a reference is present.
await live.set({ prompt: '' });

// With the wrapper above, finish from your Stop button:
const receipt = await live.stop();

Reusing the same File or Blob object skips another upload. A different object uploads a new reference. Await the update before sending another. Acceptance of an instruction does not mean the next displayed frame already contains it.