{"id":15292030,"url":"https://github.com/otoneko1102/unlimited-ai","last_synced_at":"2025-06-20T09:35:12.673Z","repository":{"id":254947047,"uuid":"848052745","full_name":"otoneko1102/unlimited-ai","owner":"otoneko1102","description":"Provides unlimited AI answers for Node.js.","archived":false,"fork":false,"pushed_at":"2025-04-09T15:55:06.000Z","size":56,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T16:51:23.783Z","etag":null,"topics":["ai","bard","free","gemini","gen","generate","gpt","gpt3","gpt4","gpt4o","nodejs","npm","package","unlimited"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/unlimited-ai","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/otoneko1102.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-08-27T03:27:53.000Z","updated_at":"2025-04-09T15:55:10.000Z","dependencies_parsed_at":"2025-01-29T14:22:58.207Z","dependency_job_id":"2fe3ad13-7b1b-4759-b95f-f1684ec0c60f","html_url":"https://github.com/otoneko1102/unlimited-ai","commit_stats":null,"previous_names":["otoneko1102/unlimited-ai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otoneko1102%2Funlimited-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otoneko1102%2Funlimited-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otoneko1102%2Funlimited-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otoneko1102%2Funlimited-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otoneko1102","download_url":"https://codeload.github.com/otoneko1102/unlimited-ai/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248701859,"owners_count":21148110,"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":["ai","bard","free","gemini","gen","generate","gpt","gpt3","gpt4","gpt4o","nodejs","npm","package","unlimited"],"created_at":"2024-09-30T16:16:13.862Z","updated_at":"2025-04-13T10:42:27.106Z","avatar_url":"https://github.com/otoneko1102.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![npm version](https://badge.fury.io/js/unlimited-ai.svg) ![npm downloads](https://img.shields.io/npm/d18m/unlimited-ai.svg?maxAge=3600) ![last commit](https://img.shields.io/github/last-commit/otoneko1102/unlimited-ai) ![commit actvity](https://img.shields.io/github/commit-activity/w/otoneko1102/unlimited-ai) ![code size](https://img.shields.io/github/languages/code-size/otoneko1102/unlimited-ai)\n\u003cbr\u003e\n[![NPM](https://nodei.co/npm/unlimited-ai.png)](https://nodei.co/npm/unlimited-ai/)\n# unlimited-ai\nProvides unlimited AI answers for Node.js.\u003cbr\u003e\nPowered by [Voids API](https://voids.top/).\n\n\u003e ⚠ At the request of the Voids API owner, the specifications of some functions have been changed. ⚠\n\n\u003e ⚠ The Voids API owner has stated that an API key will be required in the future. ⚠\n\n\u003e Note: The Voids API is not owned or operated by the developer of this package, so please do not contact us through GitHub Issues or other such inquiries about the API being down.\n\n###### Teams\n\u003ca href=\"https://oto.pet/\"\u003e\u003cimg src=\"https://www.otoneko.cat/img/logo.png\" alt=\"OTONEKO.CAT\" style=\"display: block; width: auto; height: 100px;\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://www.otoho.me/\"\u003e\u003cimg src=\"https://www.otoho.me/img/logo.png\" alt=\"Oto Home\" style=\"display: block; width: auto; height: 100px;\"/\u003e\u003c/a\u003e\n\n## Usage\n- Example with class: [class.js](https://github.com/otoneko1102/unlimited-ai/tree/main/examples/class.js)\n- Example (gemini): [gemini.js](https://github.com/otoneko1102/unlimited-ai/tree/main/examples/gemini.js)\n- Example (gpt): [gpt-4.js](https://github.com/otoneko1102/unlimited-ai/tree/main/examples/gpt-4.js)\n- Example with search: [with-search.js](https://github.com/otoneko1102/unlimited-ai/tree/main/examples/with-search.js)\n\n### AI(format?: { model?: string, messages?: Array\\\u003c{ role: string, content: string }\\\u003e })\n  #### setModel(model: string, search?: boolean, all?: boolean): AI\n  #### setMessages(messages: Array\\\u003c{ role: string, content: string }\\\u003e): AI\n  #### addMessage(message: { role: string, content: string }): AI\n  #### removeMessage(index: Integer): AI\n  #### generate(raw?: boolean): Promise\\\u003cstring | object\\\u003e\n  #### getFormat(): { model?: string, messages?: Array\\\u003c{ role: string, content: string }\\\u003e }\n\n```js\n// Example\n// The model name in this example may be out of date.\n// Please check with .models() or .allModels() for the latest information.\n\nconst { AI } = require('unlimited-ai');\n\n(async () =\u003e {\n  const ai = new AI();\n  ai\n    .setModel('gpt-4-turbo-2024-04-09')\n    .addMessage({ role: 'user', content: 'Hello!' })\n    .addMesssage({ role: 'system', content: 'You are a 12-year-old girl.' })\n\n  console.log(await ai.generate()); // 'Hello there! How can I be of assistance to you today?'\n})();\n```\n\n### .generate(model, messages, raw): Promise\\\u003cstring | object\\\u003e\nReturn string of AI answers (if raw is true, return object).\n```js\n// Example\n// The model name in this example may be out of date.\n// Please check with .models() or .allModels() for the latest information.\n\nconst ai = require('unlimited-ai');\n\n(async () =\u003e {\n  const model = 'gpt-4-turbo-2024-04-09';\n  const messages = [\n    { role: 'user', content: 'Hello!' },\n    { role: 'system', content: 'You are a 12-year-old girl.' }\n  ];\n\n  console.log(await ai.generate(model, messages)); // 'Hello there! How can I be of assistance to you today?'\n})();\n```\n\n#### model: string\nAvailable models: ai.models()\n\n#### messages: array\n| role\t| description |\n| :--- | :--- |\n| system | Used for providing instructions and context prior to the conversation. |\n| user | Used to identify user messages. |\n| assistant |Used to identify AI messages. |\n\n#### raw?: boolean (default: false)\n\n### .models(): Promise\\\u003cstring[]\\\u003e\nReturn array of available models.\n\n### .allModels(): Promise\\\u003cstring[]\\\u003e\nReturn array of all models.\n\n### .searchModels(word, all): Promise\\\u003cstring[]\\\u003e\nSearch models.\n\n#### word: string\nSearch keywords.\n\n#### all?: boolean (default: false)\nSearch from all or available.\n\n### .config: object\nReturn URLs.\n\n## Change Log\n### 5.x --\u003e 6.0.0\nClass has been added.\n### 4.x --\u003e 5.0.0\nModel search function added.\n### 3.x --\u003e 4.0.0\n`.models` is no longer supported and has been replaced by `.models()`.\n### 2.x --\u003e 3.0.0\nDevelopers and development groups have been listed. Features have been optimized.\n### 1.x --\u003e 2.0.0\nTypeScript supported!\n### 0.x --\u003e 1.0.0\nPackage released!\n\n## Get Support\n\u003ca href=\"https://discord.gg/yKW8wWKCnS\"\u003e\u003cimg src=\"https://discordapp.com/api/guilds/1005287561582878800/widget.png?style=banner4\" alt=\"Discord Banner\"/\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotoneko1102%2Funlimited-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotoneko1102%2Funlimited-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotoneko1102%2Funlimited-ai/lists"}