{"id":28224430,"url":"https://github.com/kazedevid/wrapper-kaze-apis","last_synced_at":"2025-06-12T03:30:36.065Z","repository":{"id":291999741,"uuid":"979489453","full_name":"KazeDevID/wrapper-kaze-apis","owner":"KazeDevID","description":"A JavaScript wrapper library for KAZE APIs.","archived":false,"fork":false,"pushed_at":"2025-05-09T13:08:36.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T09:12:02.091Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/KazeDevID.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,"zenodo":null}},"created_at":"2025-05-07T15:34:45.000Z","updated_at":"2025-05-09T13:08:40.000Z","dependencies_parsed_at":"2025-05-07T16:47:51.487Z","dependency_job_id":"f62876d9-291b-41a7-ade4-ad3b7c7be311","html_url":"https://github.com/KazeDevID/wrapper-kaze-apis","commit_stats":null,"previous_names":["kazedevid/wrapper-kaze-apis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KazeDevID/wrapper-kaze-apis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KazeDevID%2Fwrapper-kaze-apis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KazeDevID%2Fwrapper-kaze-apis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KazeDevID%2Fwrapper-kaze-apis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KazeDevID%2Fwrapper-kaze-apis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KazeDevID","download_url":"https://codeload.github.com/KazeDevID/wrapper-kaze-apis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KazeDevID%2Fwrapper-kaze-apis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259389536,"owners_count":22850025,"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":[],"created_at":"2025-05-18T09:11:40.846Z","updated_at":"2025-06-12T03:30:36.048Z","avatar_url":"https://github.com/KazeDevID.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wrapper-kaze-apis\n\nA JavaScript wrapper library for KAZE APIs.\n\n## Installation\n\n```bash\nnpm install wrapper-kaze-apis\n```\n\n## Getting Started with KAZE APIs\n\nBefore using this wrapper, you need to:\n\n1.  **Create an Account:** Sign up for a free account at [https://kaze-apis.my.id/]\n2.  **Get Your API Key:** Find your API key in the dashboard after logging in.\n\n## Usage\n\n**ESM (JavaScript Modules):**\n\n```javascript\nimport KazeAPI from 'wrapper-kaze-apis'\n\nconst kaze = new KazeAPI('YOUR_API_KEY')\n\nasync function testAPI() {\n  try {\n    const blackboxResponse = await kaze.blackbox('What is the capital of France?')\n    console.log('Blackbox response:', blackboxResponse)\n\n    const askgptResponse = await kaze.askgpt('Tell me a joke.')\n    console.log('Askgpt response:', askgptResponse)\n\n    const ailogicResponse = await kaze.ailogic('Is the sky blue?', 'Answer with yes or no.')\n    console.log('Ailogic response:', ailogicResponse)\n\n    const textToImageResponse = await kaze.textToImage('cat')\n    console.log('Text to image response:', textToImageResponse)\n  } catch (error) {\n    console.error('An error occurred:', error)\n  }\n}\n\ntestAPI()\n```\n\n**CommonJS (Node.js):**\n\n```javascript\nconst KazeAPI = require('wrapper-kaze-apis')\n\n// Initialize the API client with your API key\nconst kaze = new KazeAPI('YOUR_API_KEY')\n\n// Example usage\nasync function testAPI() {\n  try {\n    const blackboxResponse = await kaze.blackbox('What is the capital of France?')\n    console.log('Blackbox response:', blackboxResponse)\n\n    const askgptResponse = await kaze.askgpt('Tell me a joke.')\n    console.log('Askgpt response:', askgptResponse)\n\n    const ailogicResponse = await kaze.ailogic('Is the sky blue?', 'Answer with yes or no.')\n    console.log('Ailogic response:', ailogicResponse)\n\n    const textToImageResponse = await kaze.textToImage('cat')\n    console.log('Text to image response:', textToImageResponse)\n  } catch (error) {\n    console.error('An error occurred:', error)\n  }\n}\n\ntestAPI()\n```\n\n## API\n\n### `KazeAPI(apiKey)`\n\n- **Parameters:**\n  - `apiKey`: Your KAZE APIs API key (required). You can find this in your KAZE APIs dashboard after registering.\n\n### `blackbox(query)`\n\n- **Parameters:**\n  - `query`: The query string for the blackbox API.\n\n### `askgpt(text)`\n\n- **Parameters:**\n  - `text`: The text for the askgpt API.\n\n### `ailogic(query, prompt)`\n\n- **Parameters:**\n  - `query`: The query string for the ailogic API.\n  - `prompt`: The prompt for the ailogic API.\n\n### `textToImage(query)`\n\n- **Parameters:**\n  - `query`: The query string for generating an image from text.\n\n### `chatAI(query)`\n\n- **Parameters:**\n  - `query`: The query string for the chat AI API.\n\n### `aoyoai(query)`\n\n- **Parameters:**\n  - `query`: The query string for the AoyoAI API.\n\n### `agentgpt(query)`\n\n- **Parameters:**\n  - `query`: The query string for the AgentGPT API.\n\n### `ai4chat(query)`\n\n- **Parameters:**\n  - `query`: The query string for the AI4Chat API.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazedevid%2Fwrapper-kaze-apis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkazedevid%2Fwrapper-kaze-apis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazedevid%2Fwrapper-kaze-apis/lists"}