New APINew API
User GuideInstallationAPI ReferenceAI ApplicationsSkillsHelp & SupportBusiness Cooperation
User Guide

Quick Start

Follow the shortest path from signing up and logging in to adding quota, creating an API key, sending your first request, and checking the charge in Usage Logs. This guide also introduces the console's top bar and sidebar.

  • If you're new to this site, follow the six steps on this page to sign up, log in, and make your first model call.
  • Each step covers only the essential actions. See the pages linked in each step for other options and troubleshooting.
  • Model calls draw from your account quota at the applicable price, using your wallet balance or subscription quota.

Tip

  • New accounts start with no quota or API keys by default. If the administrator has configured a signup bonus, your account receives quota when you sign up. Some sites automatically create an API key during signup.
  • The administrator configures the available login methods, top-up options, subscription plans, and models. These vary by site. If you can't find an option in any step, contact your administrator.
  • Each site defines its own quota unit.

Basic Concepts

The interface may use several names for the same thing. The table below lists the terms used in this guide and other labels you may see in the interface.

TermMeaningOther Labels in the Interface
API KeyA credential that starts with sk- and lets a program or client call a model.“Token,” as in “Invalid token.”
Access TokenA credential that starts with nap_ and is used only for account management in scripts. See Security and Access.—
QuotaThe amount available to spend in your account. Each model call deducts quota at the applicable price. Both wallet balance and subscription quota count as quota.“Balance,” “Quota,” or “Funds,” as in “Current Balance,” “Unlimited Quota,” or “Add Funds.”
GroupA routing and pricing tier defined by the administrator. It determines which models you can call and which billing ratio applies.Group names and ratios, such as “default” and “1x.”
PlaygroundA page where you can chat with models directly in your browser using your account quota, without an API key.“Playground,” as in “Verify the route using Playground or your client.”

Make Your First Model Call

Sign Up or Log In

Steps

  1. Click “Log In” in the upper-right corner of the site to open the login page.
  2. If you already have an account, log in with your username and password, a third-party account, or a passkey.
  3. If you don't have an account yet, click “Sign Up” on the login page or “Get Started” on the home page. Fill in the required fields, click “Create Account,” and log in with your new account.

Tip

  • After you log in, the “Overview” page opens by default. The “Setup Guide” at the top of that page covers steps 3–5 of this guide. You can complete them in any order. After completing the steps, refresh the page to see the checkmarks. See Overview.
  • For login methods, email verification during signup, and troubleshooting, see Registration and Login.

View Models and Pricing

Steps

  1. Click “Model Marketplace” in the top navigation.
  2. Enter a keyword in the search box or use the “Filters” panel on the left to filter by group, provider, or other criteria.
  3. Click “Details” in the lower-right corner of the model card. Under “Overview,” find “Pricing by Group” to see the groups and prices available to your account.
  4. Click the copy button to the right of the model name to copy it for later use.

Tip

  • You can browse without logging in if the site allows public access. After you log in, the site displays models and prices based on your account's available groups and account-specific ratios, so they may differ from what you saw before logging in.
  • The charge is based on the group used for the call. For help reading model prices, see Model Marketplace and Rankings.

Add Quota

Steps

  1. In the sidebar, click “Personal” → “Wallet.”
  2. Choose one of the methods below based on what your site offers.
  3. Check “Current Balance” or “My Subscriptions” to confirm that the quota has been credited.

Ways to Add Quota

MethodStepsDetails
Redemption CodePaste your code into “Enter your redemption code” at the bottom of “Add Funds,” then click “Redeem Quota.”Redemption Codes
Online Top-UpUnder “Add Funds,” select or enter an amount, then click a payment method. In the “Confirm Payment” dialog, click “Confirm Payment,” then complete the payment on the payment page.Online Top-Up
Subscription PlanUnder “Subscription Plans,” click “Subscribe Now” for the plan you want, then click “Pay with Balance” or choose another payment method to complete the purchase.Subscription Plans

Tip

  • If the wallet offers no options, the administrator hasn't configured any yet. Contact your administrator for quota or a redemption code.
  • If your balance doesn't increase after payment or your redemption fails, see the FAQ in Wallet.
  • “Remaining Quota” on the “Overview” page reflects only your wallet balance. If you purchased only a subscription and your wallet balance is 0, the checkmark next to “2. Add Quota” in the “Setup Guide” appears after your first successful model call.

Create an API Key

Steps

  1. In the sidebar, click “General” → “API Keys.”
  2. Click “Create API Key” in the upper-right corner of the page.
  3. Enter a “Name” and leave the other settings at their defaults.
  4. Click “Save Changes.”
  5. In the new key's row, click the copy button to the right of the key in the “API Key” column.

Tip

  • With the default settings, the key has no quota limit, can access all models available to your account, and never expires. Calls draw from your account quota. To set quota, model, or IP restrictions, see API Keys.
  • If you plan to use only the Playground, you can skip this step.

Keep Your API Key Secure

Anyone who obtains your API key can use it to spend your account quota. Keep it out of group chats, screenshots, and public code repositories.

Send Your First Request

Choose one of the three methods below.

Method 1 — Send a Request in the Playground

  1. In the sidebar, click “Chat” → “Playground.”
  2. Click the group and model selectors below the input box on the right, then select a group and a model.
  3. Enter a message in the input box and click “Send.”

Method 2 — Send a Request with curl

  1. Open a terminal on macOS or Linux, or use Git Bash on Windows. On Windows, the command requires Git Bash to run as written.
  2. Copy the command below, replace the three values listed in the table, and run it.
curl https://your-host/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxxxxxxx" \
  -d '{"model":"模型名称","messages":[{"role":"user","content":"你好"}]}'
Value in the CommandReplace WithWhere to Find It
https://your-hostAPI addressOn the “API Keys” page, click “API Address” in the upper-right corner, then click the copy button to the right of the address you want to use.
sk-xxxxxxxxAPI keyThe API key you copied in step 4.
模型名称Model nameThe model name you copied in step 2.

Method 3 — Run the Example Command from the Overview Page

  1. In the sidebar, click “General” → “Overview.”
  2. Click “Copy” in the upper-right corner of “First API Request.”
  3. Paste the command into your terminal and run it as copied.

Tip

  • The call succeeded if the terminal returns a JSON response containing the model's reply. If you get an error, look up the exact error message in the FAQ.
  • The command in “First API Request” already includes the API address, the first enabled key in the list, and the first available model. Run it as copied in any terminal supported by the curl command above. If the setup guide is collapsed, click “Show Setup Guide” or “Setup Guide” to the right of the page title. See Overview.
  • For help choosing an API address and making calls from other clients, see Copy the Key and Call a Model.
  • Calls from the Playground draw from your account quota without using an API key. See Playground.

Check the Charge in Usage Logs

Steps

  1. In the sidebar, click “General” → “Usage Logs.”
  2. Click “Search” to refresh the list.
  3. Find an entry of type “Consumption” and check the “Cost” column.
  4. Click the summary in the entry's “Details” column. In “Log Details,” check “Token Breakdown” and “Billing Details.”

Tip

  • The page title is “General Logs.” By default, the page shows only today's entries. Click “Search” to refresh them manually.
  • For Playground calls, the “Token” column shows playground- followed by the group name, such as playground-default.
  • Only successful calls incur charges. If you can't find an entry, see the FAQ in Usage Logs.

Tip

If you run into an issue at any step, start with the FAQ on the page linked in that step. For issues that span multiple pages, such as failed calls or balance discrepancies, see the FAQ.

Get to Know the Console Layout

After you log in, the console has three parts: the top bar, the left sidebar, and the main content area. The red numbers in the image match the numbers in the two tables below.

  • Quick Start – Console Layout

Quick Start – Console Layout

Top Bar

The table lists the items in the top bar from left to right.

ItemLocationWhat It DoesWhen It Appears
1. Sidebar ToggleFar left of the top barExpands or collapses the left sidebar.Always visible.
2. Site NameTo the right of the sidebar toggleTakes you back to the site home page.Always visible. The administrator sets the name and icon.
3. Top NavigationRight side of the top barOpens “Home,” “Console,” “Model Marketplace,” “Rankings,” “Docs,” or “About.”The administrator can enable or disable each item. The navigation is visible at screen widths of 1024px or more.
4. SearchTo the right of the top navigationFinds and opens sidebar pages by name.Always visible. On narrow screens, only the icon appears.
5. NotificationsBell icon to the right of SearchOpens the “System Announcements” dialog, where you can read site notifications and announcements.Always visible.
6. LanguageIcon to the right of NotificationsChanges the interface language. See Set the Interface Language.Always visible.
7. Theme SettingsPalette icon to the right of LanguageAdjusts the interface theme, colors, fonts, layout, and other appearance settings.Visible at screen widths of 768px or more.
8. AvatarFar right of the top barOpens a menu with “Profile,” “Security and Access,” “Wallet,” “System Settings” (visible only to Root), and “Log Out.”Always visible.

Tip

  • Press Ctrl+B (⌘B on Mac) to expand or collapse the sidebar, or Ctrl+K (⌘K on Mac) to open the search dialog. At the bottom of the search dialog, you can switch between the “Light,” “Dark,” and “System” themes.
  • In the top navigation, “Console” opens the “Overview” page. The administrator can require users to log in before viewing “Model Marketplace” or “Rankings.”
  • In the “System Announcements” dialog, the “Notifications” tab shows site notifications posted by the administrator. The “Timeline” tab shows up to 20 announcements posted by the administrator, matching the “Announcements” panel on the “Overview” page. When empty, the tabs display “No announcements at this time” and “No system announcements,” respectively.
  • When you have unread items, the unread count appears in the upper-right corner of the bell icon. Opening the dialog marks the items on the “Notifications” tab as read. Switching to the “Timeline” tab marks its announcements as read. Your current browser stores the read status. Items appear unread again if you switch browsers or clear site data.
  • The language selector controls the same setting as “Interface Language” on the “Profile” page. “Theme Settings” are stored in your current browser, so you need to set them again if you switch browsers or devices. Click “Reset” to restore the defaults.
  • The avatar menu lists your display name, role, and group at the top, in that order. If “Security and Access” or “Wallet” is hidden in the sidebar, the corresponding item is also hidden in the avatar menu. “Profile” is always visible. After you click “Log Out” and confirm in the dialog, the site returns you to the login page.
  • On pages such as Home, Model Marketplace, and Rankings, the top bar contains only the top navigation, language selector, theme switcher, notifications, and “Log In” (your avatar if you're logged in). On narrow screens, only the theme switcher, avatar, and menu button appear directly. The top navigation and “Log In” are available through the menu button.

Press Ctrl+K (⌘K on Mac) or click “Search” to open the search dialog, where you can find and open sidebar pages by name.

  • Quick Start – Search Dialog

Quick Start – Search Dialog

Click the bell icon to open the “System Announcements” dialog. The “Notifications” and “Timeline” tabs show site notifications and announcements, respectively.

  • Quick Start – System Announcements Dialog

Quick Start – System Announcements Dialog

Click the palette icon to open “Theme Settings” and adjust the interface appearance and layout.

  • Quick Start – Theme Settings

Quick Start – Theme Settings

Click your avatar to open the menu and go to “Profile,” “Security and Access,” “Wallet,” or “System Settings” (visible only to Root), or click “Log Out” to end your session.

  • Quick Start – Avatar Menu

Quick Start – Avatar Menu

The table lists the sidebar sections from top to bottom. The section numbers match those in the “Quick Start – Console Layout” image above.

SectionPagesDescription
9. Chat“Playground”Chat with models directly in your browser. See Playground.
9. Chat“Chat”Expand this item to open one of the chat apps configured by the administrator. This item appears only if the site has chat presets. See Chat.
10. General“Overview,” “Dashboard”View quota, usage, and the setup guide, as well as call statistics grouped by time and model. See Overview and Dashboard.
10. General“API Keys”Create and manage API keys for calling models. See API Keys.
10. General“Usage Logs,” “Audit Logs,” “Task Logs”View model calls and charges, account activity, and asynchronous and image generation tasks. See Usage Logs, Audit Logs, and Task Logs.
11. Personal“Wallet,” “Profile,” “Security and Access”Manage top-ups and subscriptions, personal preferences, passwords, and login security. See Wallet, Profile, and Security and Access.
12. Administration (visible only to administrators)Management pages for channels, models, users, and moreSee the administrator guide in the Feature Guide Overview.

Tip

  • Two levels of settings control the sidebar. Pages disabled by the administrator are hidden from all users. You can hide more pages under “Personal Sidebar Settings” on the “Profile” page. See Choose Which Pages Appear in the Left Sidebar.
  • When collapsed, the sidebar displays only icons. Hover over an icon to see the page name. Your current browser remembers whether the sidebar is expanded or collapsed.
  • At screen widths below 768px, such as on phones, the sidebar is hidden by default. Click the sidebar toggle to slide it in from the left. It closes automatically when you select a page.
  • Open Model Marketplace and Rankings from the top navigation.
  • Create an account, use the available login methods, or reset a forgotten password. See Registration and Login.
  • View available models and pricing. See Model Marketplace and Rankings.
  • Add funds, redeem quota, or purchase a subscription plan. See Wallet.
  • Create an API key and copy the API address and key to call models. See API Keys.
  • Chat with models directly in your browser. See Playground.
  • View the billing details for each call. See Usage Logs.
  • Follow the setup guide to make your first call and copy the example command. See Overview.
  • Set the interface language and choose which pages appear in the left sidebar. See Profile.
  • Troubleshoot issues that span multiple pages, such as failed calls or balance discrepancies. See the FAQ.
  • For Root users configuring the top navigation, sidebar modules, and system announcements, see Site and Branding Settings.

How is this guide?

Last updated on