{"id":15175573,"url":"https://github.com/intelligentnode/intellijava","last_synced_at":"2026-02-25T23:32:54.603Z","repository":{"id":65382100,"uuid":"586696976","full_name":"intelligentnode/IntelliJava","owner":"intelligentnode","description":"Integrate with the latest language models, image generation, speech, and deep learning frameworks like ChatGPT,  DALL·E, and Cohere using few java lines.","archived":false,"fork":false,"pushed_at":"2024-02-18T22:12:35.000Z","size":7487,"stargazers_count":65,"open_issues_count":6,"forks_count":13,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-30T04:49:06.892Z","etag":null,"topics":["chatbot","chatgpt","cohere","dalle2","gpt-4","gpt3","gpt4","image-generation","java","openai","speech-synthesis","text-generation","text-to-speech"],"latest_commit_sha":null,"homepage":"https://show.intellinode.ai/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/intelligentnode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-09T02:01:14.000Z","updated_at":"2024-08-03T13:56:21.000Z","dependencies_parsed_at":"2024-09-27T12:39:42.361Z","dependency_job_id":"68a773cc-e0af-4c87-b39e-0011745cfee6","html_url":"https://github.com/intelligentnode/IntelliJava","commit_stats":null,"previous_names":["intelligentnode/intellijava"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intelligentnode%2FIntelliJava","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intelligentnode%2FIntelliJava/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intelligentnode%2FIntelliJava/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intelligentnode%2FIntelliJava/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intelligentnode","download_url":"https://codeload.github.com/intelligentnode/IntelliJava/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235519884,"owners_count":19003201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","chatgpt","cohere","dalle2","gpt-4","gpt3","gpt4","image-generation","java","openai","speech-synthesis","text-generation","text-to-speech"],"created_at":"2024-09-27T12:39:32.563Z","updated_at":"2025-10-06T10:32:03.810Z","avatar_url":"https://github.com/intelligentnode.png","language":"Java","readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"images/intelligent_java_header.png\" width=\"500em\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\n\u003ca href=\"https://central.sonatype.com/artifact/io.github.barqawiz/intellijava.core/0.8.2\" alt=\"maven build\"\u003e\n    \u003cimg src=\"https://img.shields.io/maven-central/v/io.github.barqawiz/intellijava.core?style=flat-square\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://github.com/Barqawiz/IntelliJava/releases\" alt=\"github releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/Barqawiz/IntelliJava?style=flat-square\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://opensource.org/licenses/Apache-2.0\" alt=\"licenses tag\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/intelligentnode/IntelliJava?style=flat-square\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://github.com/akullpp/awesome-java\"\u003e\n     \u003cimg src=\"https://awesome.re/mentioned-badge.svg\" alt=\"Mentioned in Awesome Java\"\u003e\n\u003c/a\u003e\n\n\n\u003c/p\u003e\n\n# Intelligent Java\nIntelligent java (IntelliJava) is the ultimate tool to integrate with the latest language models and deep learning frameworks using java. The library provides an intuitive functions for sending input to models like ChatGPT and DALL·E, and receiving generated text, speech or images. With just a few lines of code, you can easily access the power of cutting-edge AI models to enhance your projects.\n\nThe supported models:\n- **OpenAI**: Access ChatGPT, GPT3 to generate text and DALL·E to generate images. OpenAI is preferred for quality results without tuning.\n- **Cohere.ai**: Generate text; Cohere allows you to custom your language model to suit your specific needs.\n- **Google AI**: Generate audio from text; Access DeepMind’s speech models.\n\n# How to use\n\n1. Add the maven dependency or import the core jar file (check the Integration section).\n2. Add Gson dependency if using the jar file; otherwise, it's handled by maven or Gradle.\n3. Call the ``RemoteLanguageModel`` for the language models, ``RemoteImageModel`` for image generation, ``RemoteSpeechModel`` for text to speech models, and ``Chatbot`` for ChatGPT.\n\n## Integration\nThe package released to Maven Central Repository:\n\nMaven:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.barqawiz\u003c/groupId\u003e\n    \u003cartifactId\u003eintellijava.core\u003c/artifactId\u003e\n    \u003cversion\u003e0.8.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nGradle:\n\n```\nimplementation 'io.github.barqawiz:intellijava.core:0.8.2'\n```\n\nGradle(Kotlin):\n```\nimplementation(\"io.github.barqawiz:intellijava.core:0.8.2\")\n```\n\nJar download:\n[intellijava.jar](https://repo1.maven.org/maven2/io/github/barqawiz/intellijava.core/0.8.2/intellijava.core-0.8.2.jar).\n\n## Code Example\n**Language model code** (2 steps):\n```java\n// 1- initiate the remote language model\nString apiKey = \"\u003cadd-openai-api-key\u003e\";\nRemoteLanguageModel langModel = new RemoteLanguageModel(apiKey, \"openai\");\n\n// 2- call generateText with any command !\nLanguageModelInput langInput = new LanguageModelInput.Builder(\"Summarize the plot of the 'Inception' movie in two sentences\")\n                .setModel(\"text-davinci-003\").setTemperature(0.7f).setMaxTokens(50).build();\nString resValue = langModel.generateText(langInput);\n```\nOutput:```Inception follows Dom Cobb, a professional thief, who is offered a chance at redemption in exchange for planting an idea in a target's mind. He must navigate a dangerous landscape of dream-sharing technology and battle his inner demons in order to complete the mission and find his way back to reality.```\n\n\u003cbr\u003e\n\n**Image generation code** (2 steps):\n```java\n// 1- initiate the remote image model\nRemoteImageModel imageModel = new RemoteImageModel(apiKey, \"openai\");\n\n// 2- call generateImages with any command !\nImageModelInput imageInput = new ImageModelInput.Builder(\"teddy writing a blog in times square\")\n                .setNumberOfImages(2).setImageSize(\"1024x1024\").build();\nList\u003cString\u003e images = imageModel.generateImages(imageInput);\n```\nOutput:\u003cbr\u003e\n\u003cimg src=\"images/response_image.png\" height=\"220px\"\u003e\n\n\u003cbr\u003e\n\n**Text to speech code** (2 steps):\n```java\n// 1- initiate the remote speech model\nRemoteSpeechModel model = new RemoteSpeechModel(apiKey, SpeechModels.google);\n\n// 2- call generateEnglishText with any text\nText2SpeechInput input = new Text2SpeechInput.Builder(\"Hi, I am Intelligent Java.\").build();\nbyte[] decodedAudio = model.generateEnglishText(input);\n```\nOutput:\u003cbr\u003e\n```Java\n// save temporary audio file for testing\nAudioHelper.saveTempAudio(decodedAudio);\n```\n\n\u003cbr\u003e\n\n**ChatGPT code**:\n```java\n// 1- initiate the chat model.\nChatbot bot = new Chatbot(apiKey, SupportedChatModels.openai);\n\n// 2- prepare the chat history by calling addMessage.\nString mode = \"You are a helpful astronomy assistant.\";\nChatModelInput input = new ChatGPTInput.Builder(mode)\n                       .addUserMessage(\"what is the space between moon and earth\").build();\n\n// 3- call chat!\nList\u003cString\u003e resValues =  bot.chat(input);\n```\nOutput:``` The average distance between the Moon and the Earth is about 238,855 miles (384,400 kilometers). ```\n\n\u003cbr\u003e\n\nFor full examples and ready integration try [the sample_code](https://github.com/Barqawiz/IntelliJava/tree/main/sample_code).\n\n## Third-party dependencies\nThe only dependencies is **GSON**.\n*Required to add manually when using IntelliJava jar. However, if you imported this repo through Maven, it will handle the dependencies.*\n\nFor jar download:\n[gson download repo](https://search.maven.org/artifact/com.google.code.gson/gson/2.10.1/jar)\n\n## Documentation\n- [Go to Java docs](https://intelligentnode.github.io/IntelliJava/javadocs/)\n- [Tutorial article](https://albarqawi.medium.com/intelligent-java-a-gateway-to-the-latest-ai-models-c08c09513672)\n\n# Roadmap\nCall for contributors:\n- [x] Add support to OpenAI Completion.\n- [x] Add support to OpenAI DALL·E 2.\n- [ ] Add support to other OpenAI functions.\n- [x] Add support to cohere generate API.\n- [ ] Add support to Google language models.\n- [x] Add support to Google speech models.\n- [ ] Add support to Amazon language models.\n- [ ] Add support to Azure nlp models.\n- [ ] Add support to Midjourney image generation.\n- [ ] Add support to WuDao 2.0 model.\n- [ ] Add support to Stable Diffusion.\n\n# License\nApache License\n\nCopyright 2023 Github.com/Barqawiz/IntelliJava\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintelligentnode%2Fintellijava","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintelligentnode%2Fintellijava","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintelligentnode%2Fintellijava/lists"}