Origino API is an OpenAI-powered API that detects the similarity between texts using embeddings.
- Built with Next.js 13.2
- Uses OpenAI API to detect text similarity.
- Rate limiting to ensure optimal API usage
- Web application to obtain API key
- Web application with authentication & authorization using NextAuth and Oauth2.0
To setup this project locally follow these steps:
- Clone the repository to your local machine
git clone https://github.com/{your-github-username}/Origino1.0.git
- Change directory to Origino1.0
cd Origino1.0
- Install the dependencies.
yarn install
- Start the server
yarn dev
- Open the web application at
http://localhost:3000
To use the Origino API, make a POST request to the endpoint at /api/v1/similarity. The request must include the following parameters in the request body:
text1
: The first text input to compare.text2
: The second text input to compare.
The request must also include the Authorization
header with your API key.
To ensure optimal API usage, Origino API has rate limiting implemented with Redis. The API limits usage to 50 requests per hour per API key. If this limit is exceeded, the API will respond with a 429 Too Many Requests
error.
- Next.js 13.2
- Tailwind CSS
- Open AI API
- Prisma
- PlanetScale
- NextAuth
- Oauth 2.0
- Redis