Team API Key Guide
Learn how to create and use API keys.
How to get your keys
Sign up or login for an account on aiXplain. Then from the Dashboard, navigate to the Integrations.
Creating a New API Key
On the Integrations page, you can find the Create a team access key button on the top right corner. You can create a new key by clicking that button, then specifiying a label and an (optional) expiry date.
Manage API Keys
On the Integrations page, you can view all the existing Team API keys. You can also delete keys on this page.
Setting the keys
An example of how to use the APIKeyManager
to retrieve and set API keys.
To set the API keys using Xcode environment variables, follow these steps:
- In Xcode, select your project in the Project Navigator.
- Select your target, then click the “Info” tab.
- Under the “Configurations” section, click the “+” button in the bottom-left corner.
- In the newly added row, set the “Name” to the desired API key name (e.g., “TEAM_API_KEY”) and the “Value” to your API key.
- Repeat step 4 for each API key you need to set.
With the environment variables set, the APIKeyManager
will automatically load and use the API keys from the corresponding environment variables.
You can also set the API keys directly in code if needed:
AiXplainKit.shared.keyManager.TEAM_API_KEY = "<Your Key>"
Classes
See Also
Essential
Learn how to use Pipelines
Learn how to use aiXplain’s ever-expanding catalog of 35,000+ ready-to-use AI models that can be used for various tasks like Translation, Speech Recognition, Diacritization, Sentiment Analysis, and much more.