The Orcish AI Next.js Framework is a powerful tool that leverages the capabilities of GPT-4, OpenAI's advanced language model, to integrate AI functionalities seamlessly into your Next.js applications. With this framework, you can easily harness the power of AI to generate text and images based on your specified input.
To begin, install the required dependencies using the following command:
pnpm i
After installing the dependencies, run the development server:
pnpm dev
Open http://localhost:3000 with your browser to see the result.
cp .env.example .env
Create a copy of the provided .env.example
file and name it .env
. Fill in the required OpenAI API Key in the newly created .env
file:
OPENAI_API_KEY=your_api_key
Make sure to replace placeholder values with your actual API key.
On the index page of your application, locate the input field. Insert your desired subject into the input field, and then click on the Get Result
button. This action will prompt the framework to generate text based on the provided input.
Additionally, you can switch from text completion to image generation. To do this, click on the toggle to change the mode to "Image" and then click on the Get Image
button. This will invoke the AI to generate an image based on the input.
The Orcish AI Next.js Framework provides a seamless integration of AI capabilities into your Next.js applications, offering a versatile and user-friendly experience for generating both text and images.