Skip to main content
Text Generator is an Obsidian plugin for AI-assisted writing. Connect it to CometAPI using the OpenAI Chat settings to access any supported model.

Prerequisites

  • Obsidian with the Text Generator plugin installed — search for it in SettingsCommunity Plugins
    Text Generator plugin in the Obsidian plugin marketplace
  • A CometAPI account with an active API key

Setup

1

Get your CometAPI API key

Log in to the CometAPI dashboard. Click Add API Key and copy your key and base URL (https://api.cometapi.com).
CometAPI dashboard — Add API Key
CometAPI API key and base URL
2

Configure the API connection

Open the Text Generator plugin settings. Select OpenAI Chat as the AI provider, enter https://api.cometapi.com/v1 in the API Address field, and paste your CometAPI key into the Key field. Select a model and click Save.
Text Generator settings — OpenAI Chat selected with CometAPI URL and key
3

Test the connection

Open Obsidian and trigger a text generation prompt. A successful response confirms the integration is working.