|
|
|
@@ -1,3 +1,94 @@
|
|
|
|
|
# NovaLink New API
|
|
|
|
|
|
|
|
|
|
NovaLink builds on [QuantumNous/new-api](https://github.com/QuantumNous/new-api) and adds upstream cost analysis, user operations, referral payouts, site documentation, and support tickets for gateway operators.
|
|
|
|
|
|
|
|
|
|
[Live gateway](https://newapi.it120.cloud) · [NovaLink releases](https://github.com/zsz2018/NovaLink-new-api/releases) · [Report an issue](https://github.com/zsz2018/NovaLink-new-api/issues) · [简体中文](./README.md)
|
|
|
|
|
|
|
|
|
|
[Upstream monitoring](#novalink-monitor) · [User operations](#novalink-operations) · [Referral commissions](#novalink-referrals) · [Site documentation](#novalink-docs) · [Support tickets](#novalink-support) · [Client integrations](#novalink-extras) · [Console locations](#novalink-entries) · [Deployment](#novalink-deployment) · [Upstream project](#upstream-reference)
|
|
|
|
|
|
|
|
|
|
<a id="novalink-monitor"></a>
|
|
|
|
|
|
|
|
|
|
### Upstream monitoring and margin comparison
|
|
|
|
|
|
|
|
|
|
- Manage upstream sites and accounts, currencies, exchange rates, and top-up conversion settings. The server encrypts stored credentials. Administrators can check whether paired browsers are online and revoke device access.
|
|
|
|
|
- Pair the separate NovaLink Browser Bridge extension to record browser steps, map response fields, and preview the results. Run collections manually or on an account schedule, resume after manual verification, and review diagnostics and historical snapshots.
|
|
|
|
|
- Collect account identity, balances, groups, and multipliers from authorized upstream browser sessions, with optional model prices and top-up records. Use the New API or Sub2API adapter, or configure field mappings for other sites with optional AI assistance. The extension sends structured results and keeps raw responses in memory for the duration of the task.
|
|
|
|
|
- Configure one backup address per site. If the primary becomes unavailable during a task, collection can switch once and authenticate again at the backup. The operator confirms before the task repeats actions other than login or requests that are not read-only. Snapshots record the address used for collection.
|
|
|
|
|
- Map local models and groups to upstream procurement channels and compare selling prices with procurement costs for the same usage scenario. The comparison supports token, per-request, tiered, and supported native pricing expressions. Administrators can opt in to reviewed reference prices when procurement quotes are missing.
|
|
|
|
|
|
|
|
|
|
> Upstream monitoring and the browser extension are still in development. Collection requires a matching extension, `UPSTREAM_MONITOR_KEY`, and device pairing by a root administrator.
|
|
|
|
|
|
|
|
|
|
<a id="novalink-operations"></a>
|
|
|
|
|
|
|
|
|
|
### User operations and contribution levels
|
|
|
|
|
|
|
|
|
|
- Track activity, registration conversion, first and repeat purchases, wallet balances, debt, and usage and invitation rankings. Reports show verified payments by provider, payment method, and original currency. Day 1, 7, and 30 usage retention includes users whose measurement dates have ended and have complete usage records.
|
|
|
|
|
- Annual contribution levels count 100% of a user's verified net external wallet top-ups and 50% of the equivalent top-ups made by their direct referrals. Contributions count for 365 days from credit. Automatic levels are reviewed on January 1 in Beijing time, and users can earn upgrades during the year.
|
|
|
|
|
- Configure separate rewards for first purchases and first subscriptions. Wallet top-ups and eligible redemption codes share one lifetime first-purchase reward. Registration and invitation rewards are issued immediately, with separate amounts for the inviter and invitee.
|
|
|
|
|
- Root administrators can manage contribution levels and earnings holds, and pause, resume, cancel, or retry rewards that have yet to be issued. Administrators can search users and usage logs by exact user ID and bulk-enable, disable, or add quota to users. The margin comparison can also show an operating net profit estimate based on the last 30 complete Beijing calendar days.
|
|
|
|
|
|
|
|
|
|
<a id="novalink-referrals"></a>
|
|
|
|
|
|
|
|
|
|
### Referral commissions and withdrawals
|
|
|
|
|
|
|
|
|
|
- Choose between pausing new commissions, earning commission on eligible direct referrals' wallet purchases, or earning commission as direct referrals spend eligible verified wallet credits.
|
|
|
|
|
- Each eligible wallet credit retains its referral relationship, policy, level, commission rate, and release delay at the time of credit. Users can view pending, available, and held earnings, as well as commission and withdrawal history.
|
|
|
|
|
- When switching from consumption to purchase commissions, a root administrator can preview and confirm settlement of the remaining eligible credits under their original terms. The buyer keeps those credits available in their wallet.
|
|
|
|
|
- Users can move available earnings to their spending wallet or request a withdrawal. A withdrawal holds the required balance and locks the CNY quote. A root administrator claims the request, makes the manual payout, and records its payment reference.
|
|
|
|
|
|
|
|
|
|
> Weighted contribution levels require a root administrator to publish an enabled multi-level policy. New commissions, first-purchase rewards, first-subscription rewards, and withdrawals are off by default.
|
|
|
|
|
|
|
|
|
|
<a id="novalink-docs"></a>
|
|
|
|
|
|
|
|
|
|
### Site documentation
|
|
|
|
|
|
|
|
|
|
- Visitors can browse published Markdown articles at `/docs`, search by title or group, and switch articles in the same reader. The reader includes a mobile table of contents, heading navigation, and controls to copy section links and code snippets.
|
|
|
|
|
- Root administrators can manage document groups and ordering, preview edits, save drafts, publish articles, and unpublish them. Readers see the last published version while drafts are being edited. Article URLs stay fixed after first publication.
|
|
|
|
|
|
|
|
|
|
<a id="novalink-support"></a>
|
|
|
|
|
|
|
|
|
|
### Support tickets and reports
|
|
|
|
|
|
|
|
|
|
- Signed-in users can open tickets about API errors, accounts, payments, feature requests, and reports. API error tickets can link to a request record. Users can track progress and reply within an open ticket.
|
|
|
|
|
- Administrators can filter by category or status, reply, mark tickets complete, close them, and reopen them. Sidebar badges show tickets waiting for a reply and notify users when their tickets are completed.
|
|
|
|
|
|
|
|
|
|
<a id="novalink-extras"></a>
|
|
|
|
|
|
|
|
|
|
### Client integrations and maintenance
|
|
|
|
|
|
|
|
|
|
- Pin up to three chat presets as API key import shortcuts. The full preset list remains available in the menu, and administrators can edit presets visually or in JSON.
|
|
|
|
|
- Import an API key configuration into CC Switch for clients such as Claude Code, Codex, and Gemini CLI. Choose the app, name the configuration, and select a model if needed. Confirm the import in CC Switch v4.0.47 or later.
|
|
|
|
|
- Fetch the upstream model list when creating or editing a VolcEngine channel, then choose which models to enable.
|
|
|
|
|
- Read full multiline API key group descriptions in the picker and after selecting a group. Administrators can check the current NovaLink version and open the release notes from the console header.
|
|
|
|
|
|
|
|
|
|
<a id="novalink-entries"></a>
|
|
|
|
|
|
|
|
|
|
### Console locations
|
|
|
|
|
|
|
|
|
|
| Task | Location | Access |
|
|
|
|
|
| --- | --- | --- |
|
|
|
|
|
| Configure upstream collection and compare margins | Upstream Monitoring · `/upstream-monitor` | Root administrator |
|
|
|
|
|
| Review user operations and manage rewards or withdrawals | User Management → Operations Overview · `/users` | Administrators with access. Configuration and payouts require a root administrator |
|
|
|
|
|
| Review contribution levels, commissions, and withdrawals | Wallet → Referral Program · `/wallet` | Signed-in users |
|
|
|
|
|
| Search and read published documentation | Site Documentation · `/docs` | Visitors and signed-in users |
|
|
|
|
|
| Edit and publish documentation | Site & Branding → Site Documentation · `/system-settings/site/docs` | Root administrator |
|
|
|
|
|
| Submit tickets and view replies | My Tickets · `/support-tickets` | Signed-in users |
|
|
|
|
|
| Review and handle tickets | Ticket Management · `/admin/support-tickets` | Administrator |
|
|
|
|
|
| Configure API key import shortcuts | System Settings → Content → Chat Presets · `/system-settings/content/chat` | Root administrator |
|
|
|
|
|
| Import into CC Switch or use chat presets | API Keys · `/keys` | Signed-in users |
|
|
|
|
|
|
|
|
|
|
<a id="novalink-deployment"></a>
|
|
|
|
|
|
|
|
|
|
### Deploy NovaLink
|
|
|
|
|
|
|
|
|
|
Download the Windows x64 package from [NovaLink releases](https://github.com/zsz2018/NovaLink-new-api/releases), or build from this repository. For Docker, run `docker build -t novalink-new-api:local .` in the repository root, then set the `new-api` service's image in the [Compose configuration](./docker-compose.yml) to `novalink-new-api:local`.
|
|
|
|
|
|
|
|
|
|
The [NovaLink deployment guide in Chinese](./README.md#novalink-deployment) covers configuration to preserve across upgrades, the shared payment credential key, and Alipay AI Pay setup and migration.
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
<a id="upstream-reference"></a>
|
|
|
|
|
|
|
|
|
|
<div align="center">
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|