Quickstart
Make your first Electron chat completion in under 60 seconds - point the OpenAI SDK at Smallest AI and go.
Electron is OpenAI-compatible. If you can call the OpenAI Chat Completions API, you can call Electron - change the base URL and the API key, and your existing code works.
Step 1: Get Your API Key
In the Smallest AI Console, go to Settings → API Keys and click Create API Key. Copy it and export:
New to Smallest AI? Sign up here first.
Step 2: Make Your First Call
Paste this cURL - no install required:
You’ll get back the standard OpenAI chat-completion shape:
Step 3: Use the OpenAI SDK
Because Electron speaks the OpenAI wire format, you can use the official OpenAI SDKs verbatim - just override base_url (or baseURL) and api_key.
Install the SDK if you don’t already have it: