FAQ Answers

We've compiled the most frequently encountered questions to help you find answers quickly

Account and Authentication

How to get API key?

Steps to get API key:

  1. Log in to your account and enter the console
  2. Click "API Keys" in the left menu
  3. Click "Create New Key" button
  4. Set key name and permissions
  5. Copy and securely save the generated key

Note: Keys are only shown once, please keep them safe. If lost, you need to generate new ones.

What to do if API key is leaked?

If your API key may have been leaked:

  • Immediately revoke the old key - Delete the leaked key in the console
  • Generate a new key - Create a new API key
  • Update applications - Update all places using the key to the new key
  • Check logs - Review API call logs for any unusual activity
  • Contact support - If anomalies are found, immediately contact technical support
What authentication methods are supported?

Currently supported authentication methods:

  • Bearer Token

    Add to Request Headers: Authorization: Bearer YOUR_API_KEY

  • OAuth 2.0

    Suitable for third-party application integration (Enterprise Edition)

Billing and Plans

How to calculate token usage?

Token calculation rules:

  • Input Tokens: The message content you send
  • Output Tokens: The response content generated by the model
  • Total Tokens = Input Tokens + Output Tokens

Reference: 1 Token ≈ 0.75 English words ≈ 0.5 Chinese characters

What to do when free credits are used up?

When free credits are exhausted, you can:

  • Upgrade to a paid plan for more credits and features
  • Pay-as-you-go based on actual usage
  • Participate in activities to get additional credits
  • Invite friends to earn bonus credits
How to check usage and bills?

View detailed usage in the console:

  1. Log in to the console
  2. Click "Usage" to view real-time usage statistics
  3. Click "Bills" to view historical billing details
  4. Export detailed reports in CSV format

Technical Issues

Which programming languages are supported?

We provide official SDK support for the following languages:

🐍Python
🟨JavaScript/TypeScript
Java
🐹Go
🔷C#/.NET
🐘PHP

Other languages can directly use REST API

What are the API rate limits?

Rate limits vary by plan:

PlanRPMTPM
Free Plan20/minutes40,000 tokens/minutes
Basic Plan60/minutes100,000 tokens/minutes
Professional Plan200/minutes500,000 tokens/minutes
Enterprise PlanCustomCustom
How to handle long text?

Suggestions for handling long text:

  • Choose appropriate model: GPT-4 supports longer context (32K tokens)
  • Text chunking: Split long text into multiple parts for processing
  • Summary first: Generate summary first, then process detailed content
  • Use vector database: Combine with RAG technology to handle ultra-long documents
How to提高响应质量?

提高响应质量的技巧:

  • 编写清晰, 具体的Tip词
  • provide相关的上下文和Example
  • using系统消息设定角色和规则
  • 调整temperatureParameter控制创造性
  • usingfew-shot learningprovideExample

性能与Optimize

API响应速度慢怎么办?

Optimize响应速度的方法:

  • using流式响应, 实时展示Generate内容
  • 减少输入Token数量
  • 设置合理的max_tokens限制
  • 选择更快的Model(如gpt-3.5-turbo)
  • using就近的APIEndpoint
  • Implement缓存机制
How to降低API成本?

降低成本的Strategy:

  • OptimizeTip词, 减少不必要的内容
  • using更经济的Model(gpt-3.5-turbo vs gpt-4)
  • 设置max_tokens限制输出长度
  • 实施智能缓存Strategy
  • 批量处理请求
  • Monitorusing量, 设置预算警报

安全与合规

我的Data安全吗?

我们采取多重措施保护您的Data:

  • 端到端加密: 所有Data传输usingTLS 1.3
  • Data隔离: 每个用户的Data完全隔离
  • 不用于训练: 您的Data不会用于Model训练
  • 合规认证: 符合SOC 2, ISO 27001标准
  • 定期审计: 第三方安全审计
support私有化Deploy吗?

企业版support私有化Deploy:

  • 本地Deploy: 在您的Data中心运行
  • 私有云Deploy: AWS, Azure, 阿里云等
  • 混合Deploy: 部分本地+部分云端

联系销售团队understand详情: sales@n1n.ai

还有其他问题?

如果您的问题没有在这里找到答案, 请联系我们的技术support团队