π Authentication & API Key
To access the NineBit CIQ SDK, you need a valid API key. This key authorizes your requests and links them to your account.
π₯ How to Get Your API Keyβ
- Visit the official CIQ platform: ciq.ninebit.in
- Click βRegisterβ (or Login if you already have an account)
- After logging in, you'll find your API key in the bottom-left corner of the dashboard
π This key is unique to your account β keep it secure!
π§ Using the API Key in SDKsβ
- Python
- JavaScript
client = NineBitCIQClient(
api_key="<your-api-key>"
)
const apiKey = process.env.API_KEY || '';
const client = new CIQClient(apiKey);
π§ͺ Test Your Authenticationβ
To check if your API key is working, try uploading a test file or sending a query. If the key is invalid, the SDK will return an authentication error.
Exampleβ
- Python
- JavaScript
response = client.rag_query("Hello?")
print(response)
const response = await client.ragQuery("Hello?");
console.log(response);
π Need Help? If your key isnβt working or youβve lost it:
Re-login to regenerate
Or contact support@ninebit.in