intelligentnode / IntelliNode

Access the latest AI models like ChatGPT, LLaMA, Diffusion, Gemini Hugging face, and beyond through a unified prompt layer and performance evaluation
https://show.intellinode.ai
Apache License 2.0
216 stars 14 forks source link

add Gen function #11

Closed Barqawiz closed 1 year ago

Barqawiz commented 1 year ago

Introducing user-friendly business functions, aim to provide a simplified experience for users.

Gen" function enables the generation of text, image, and audio content from various sources with just a single line of code.

For instance, consider the following function that utilizes the "Gen" function:

const image = await Gen.generate_image_from_desc(prompt, openaiApiKey, stabilityApiKey, true);

This function combines the power of chatGPT, an AI model for generating image descriptions, and a stable diffusion model for image generation.