This plugin provides an API for the AI for Templater plugin called **ait** for short. ait is available in the Obsidian console, as well in JavaScript code that is run within Obsidian. The API has the following Typescript definition: ```javascript ait: { availableModels: () => Promise<string[]>; chat: (promptOrMessages: string | ChatCompletionMessageParam[]) => Promise<string>; defaultClientSettings: Settings; helpers: { ActivityIndicator: typeof ActivityIndicator; ChatBuilder: typeof ChatBuilder; OpenAI: typeof OpenAI; toFile: typeof toFile; }; }; ``` To see how to use this API, check out the following advanced examples: - [[Generate Audio from Text - TTS]] - [[Generate Image with dall-e-3]] - [[MP3 to text]] - [[Summarize the contents of a PDF]]