Nicepe AI API
A single, OpenAI-compatible endpoint. If you already use the OpenAI SDK, just change the base_url and your key — everything else stays the same. One key, one bill, billed per use from your wallet.
🧩 Use Nicepe AI inside VS Code
⬇ Download extension (.vsix)A built-in AI assistant in your editor — chat, explain & generate code, just like Claude Code. Connects to your Nicepe AI account with one API key.
- Download the nicepe-ai.vsix file above.
- Open VS Code → top menu View → Extensions. In that panel, click the ··· (three dots, top-right corner) → Install from VSIX… → choose the downloaded file.
- Top menu View → Command Palette → type “Nicepe AI: Set API Key” and click it → paste your key from /api-keys.
- The Nicepe AI icon now appears on the left side bar — click it to chat. Select code & right-click → Ask about selection / Explain.
⚡ Or install in ONE terminal command — open VS Code's terminal (top menu Terminal → New Terminal) and paste:
Windows (PowerShell): iwr https://ai.nicepe2.com/static/downloads/nicepe-ai.vsix -OutFile nicepe-ai.vsix; code --install-extension nicepe-ai.vsix
No .vsix option? Download the source zip, unzip it into ~/.vscode/extensions/ and reload VS Code.
1 · Base URL & authentication
Send your Nicepe AI key as a Bearer token (or x-api-key). Create keys at /api-keys.
2 · Chat completions
POST /v1/chat/completions — body: model (a tier id from the list below), messages (array of {role, content}), optional max_tokens, temperature. The response is OpenAI-shaped and also carries x_aihub with the request cost and your wallet balance.
3 · Available models
Pick a tier by its id. Higher tiers are more capable; you are billed per token from your wallet (a 402 is returned when your balance runs out — top up at /wallet).
| Model id | Tier |
|---|---|
| nicepe-ai-free | Nicepe AI Free |
| nicepe-ai-lite | Nicepe AI Lite |
| nicepe-ai-standard-6 | Nicepe AI Standard |
| nicepe-ai-pro-4 | Nicepe AI Pro |
| nicepe-ai-max | Nicepe AI Max |
4 · Other endpoints
| Endpoint | Description |
|---|---|
| GET /v1/models | List available model tiers. |
| GET /v1/balance | Your current wallet balance and usage. |
| POST /v1/chat/completions | Generate a chat completion (above). |