init

init

Initializes the API connection with the embedded model. Must be called before using any other API methods.

Signature

init(): Promise<void>

Parameters

None.

Returns

Promise<void> — Resolves when the connection is established and the model is ready.

Usage

Notes

  • Always await this method before calling other API methods

  • Each iframe requires its own API instance and init() call

  • The Promise resolves when the model has finished loading

Last updated