AI Text Editor Demo
🤖 How to use the AI Text Editor
Configure your OpenAI API key below (it's saved in localStorage)
Type some text in the editor and pause for a moment
The AI will suggest continuations in gray text
Press
Tab
to accept the suggestion
Press
Escape
to reject the suggestion
Navigate with arrow keys to dismiss suggestions
For multi-paragraph suggestions, use
Tab
repeatedly to accept each paragraph
Configuration
OpenAI API Key
⚠️ Your API key is stored locally in your browser and never sent to our servers. It's only used to make requests directly to the OpenAI API.
API Endpoint
Model Name
GPT-3.5 Turbo
GPT-4
GPT-4 Turbo
Suggestion Delay (seconds)
System Prompt
You are a helpful writing assistant. Continue the user's text naturally and coherently. Provide 1-3 sentences that would logically follow their writing. Keep the same tone and style. Do not repeat what they've already written.
Context (optional)
Apply Configuration
Reset to Defaults
Clear API Key
No API Key
⏳
AI is thinking...
Standard Editor
This is the standard editor with built-in status indicator and loading spinner.
Embedded Mode
This is embedded mode - no border, status indicator, or loading spinner. Perfect for integrating into custom UIs.
API Methods
Get Value
Set Sample Value
Clear Value
Get Configuration
Trigger Suggestion
Event Log
Clear Log