Create an Account
If you don’t have a Novita account, you need to sign up first. For details, please refer to Quickstart guide.Create API Key
Go to the Novita Key Management page, you can create an API key and save the API key value for use in subsequent steps.Install SDK
You can install the SDK by executing the following commands.Configure Environment Variables
Create a.env
file in your project folder (if it doesn’t exist), and configure the API key and API domain address.
For JavaScript and TypeScript projects, you need to import the
dotenv/config
package in your project; for Python projects, you need to import the dotenv
library in your project and call the load_dotenv
method to load environment variables.
For details, please refer to the example..env
Bash