Obtain Existing Default Token
- Go to “Tokens” page in top navigation: https://api.apiyi.com/token
- Find the default token on the page, click the management menu on the far right
- Find the copy icon in the management menu and click to copy
-
Copy the complete KEY, which has the format starting with
sk-

Create New KEY
In addition to using the default token, you can also create new KEYs to precisely control usage permissions:
Advantages of Creating New KEYs
- Balance Control: Can set dedicated balance limits for each KEY
- Expiration Management: Can set KEY expiration time
- Flexible Allocation: Suitable for team use or project isolation
Important Note: When creating a new KEY, no need to set available models.Whitelist mechanism is used here:
- If available models are set: The KEY can only use specified models
- If no available models set: The KEY can use all 200+ models on the site
KEY Format Description
- All API KEYs start with
sk- - KEY length is usually 48-64 characters
- Please keep your KEY safe, do not share in public places
Usage Recommendations
- Development Testing: Use default token for quick development and testing
- Production Environment: Create dedicated KEYs for production projects for easier management and monitoring
- Team Collaboration: Create independent KEYs for different team members for convenient permission management