Getting Started with the Countly AI SDK

If you want to see what your AI features cost, how fast they respond, and who uses them, then this is a great place to start. You will set up the SDK, connect it to your AI framework, decide what data to collect, and learn where to look when something seems off.

Setup

The Countly AI SDK wraps the AI library you already use and sends each model call to your Countly Server. Start with the overview, which covers installing the adapter, wrapping your client, and verifying the integration.

Next, decide which device ID you will pass. It must match the ID your web or mobile Countly SDK already uses, or your user-based AI metrics will read zero. For more detailed information, check out the following articles:

Framework Integrations

The overview shows the common pattern, but each framework has its own details, such as which calls are tracked, how streaming is counted, and how to flush before your process exits. Pick the guide for your framework:

Feedback, Cost, and Privacy

With data flowing, you can decide what else to collect. Feedback is not collected automatically, so wire it from your interface if you want satisfaction metrics. Cost is calculated for you, but fine-tuned or unlisted models need a custom price, and the observability level controls whether prompt text leaves your application.

For more detailed information, check out the following articles:

Reference and Troubleshooting

Keep these at hand once you are up and running. The references list every configuration option and event field, and the troubleshooting guide starts from the symptom you are seeing:

Was this page helpful?
Reach out to us for any other questions.
Helpful?

Looking For More Help?