Overview

The RAG API uses smart AI and data search together to give accurate answers. It works with custom prompts and can fit many uses, making it great for developers, teachers, and businesses.

  • Integrates retrieval with large language models
  • Generates contextually aware responses
  • Supports custom prompt engineering
  • Scalable for high-volume use cases

Great for

  • Business Intelligence - Generate insights by querying company data
  • Knowledge - Query large document collections
  • Educational Platforms - Build AI tutors with course materials
  • Product Assistant - E-commerce recommendation engine

Get Your API Key

How to generate API Key

Quick guide to generate your API key

Using the API

Once you have your API key, you can begin sending queries for context-rich responses.

Check our API Reference for more details

Endpoint

POST
https://rag-api.starkai.io/v1/rag_chat

Request Example (using CURL)

curl 
  -request 'POST'
  --url 'https://rag-api.starkai.io/v1/rag_chat' 
  --header 'accept: application/json' 
  --header 'X-Api-Key: <api-key>'
  -data '{
            "query": "your query"
         }'