Quickstart
Keywords AI offers 2 easy ways to leverage the platform: the async LLM logging API and our AI gateway.
LLM logging
Track your LLM usage and performance with 0 latency impact.
AI gateway
Call 250+ LLMs with a single API and get complete observability.
LLM logging
Keywords AI provides an Async Logging API that allows you to log your LLM requests and responses asynchronously, which offers complete observability of your LLM applications and won’t disrupt your application’s performance.
1. Get API key
Sign in to Keywords AI platform, and get the API key from the API keys page.
2. Call the Logging API
LLM observability
Learn more features of LLM observability.
Other LLM frameworks
Learn how to integrate Keywords AI with other LLM frameworks.
AI gateway
An AI gateway is a simple “middleman” between you and Large Language Models (LLMs). It handles things like:
- Routing: Sending requests to different models or versions
- Fallback models: If the primary model is down, the proxy will route to a fallback model
- Load balancing: Distributing requests across multiple models
- Caching: Caching responses to improve latency and reduce costs
1. Get API key
Sign in to Keywords AI platform, and get the API key from the API keys page.
2. Add credentials
You have to add your own credentials to activate AI gateway otherwise your LLM calls will cause errors. We will use your credentials to call LLMs on your behalf.
We won’t use your credentials for any other purposes and no extra charges will be applied.
Go to the Providers page to add your credentials.
3. Integrate AI gateway
Keywords AI offers various integration options, including: mainstream LLM frameworks and REST APIs.
If you are not using any LLM frameworks, you can use the standard API call to connect 250+ LLMs.
If you are not using any LLM frameworks, you can use the standard API call to connect 250+ LLMs.
If you are using OpenAI SDK, it’s pretty straightforward to integrate AI gateway into your codebase.
- set the
base_url
tohttps://api.keywordsai.co/api
- set the
api_key
to your Keywords AI API key Go to this page to learn details of OpenAI SDK Integration.
OpenAI SDK Integration
We also support other LLM frameworks, pick the one you are using and follow the instructions.
AI gateway
Learn more about AI gateway.
Other LLM frameworks
Learn how to integrate Keywords AI with other LLM frameworks.
Next steps
Congratulations! You have integrated LLM proxy into your codebase! When you make any API call, you will see the LLM log on the platform.