Getting Started
Installation
To install the SDK, follow the instructions, follow the steps below
Create an application in Node.
Open terminal in Linux-based operating system and command prompt in Windows.
Run the following commands.
Configuration
Credits System
Users must start by getting credits on the web app, https://app.chaingpt.org/. These credits will allow users to create API keys and access SDK. Credits will be deducted from each request made using SDK.
Setup API Key
Generating API Key: Utilize the ChainGPT API SDK for authentication. In the web application, navigate to the API Dashboard and use the 'Create Secret Key' feature to generate and copy your API key.
Secret key feature and copy.
Securing API Key:
It is crucial to secure your API keys to control access effectively.
Avoid exposing the API keys in your code or public repositories.
Store them in a secure location, and use environment variables or a secret management service to expose them to your application.
This method ensures you do not need to hard-code them in your codebase, enhancing security.
Pricing
Stream Response
On sending each chat API request, 5 Credits will be deducted from the user account in WebApp.
In addition, if the user enables the chat history feature, an additional 1 Credit will be deducted.
Blob Response
On sending each API request, 5 Credits will be deducted from the user account in WebApp.
In addition, if the user enables the chat history feature, an additional 1 Credit will be deducted.
Get Chat History
Since the user has already enabled the chat history feature while calling the stream/blob response chat API, no additional credits will be deducted for the Get credit history API.
Users can monitor and manage their credit usage via the Webapp, aligning with ChainGPT's user-centric approach to accessibility and transparency in service provision.
For additional details or to manage your credits, users should visit the ChainGPT Webapp.
Support
For additional assistance, refer to Discord - https://discord.gg/chaingpt
Last updated