{"id":23732092,"url":"https://github.com/dankjeroen842/pom-api-open-v1","last_synced_at":"2025-09-04T07:31:39.303Z","repository":{"id":270398622,"uuid":"910260487","full_name":"DankJeroen842/POM-API-open-v1","owner":"DankJeroen842","description":"PoM API simplifies AI and blockchain integration by providing unified access to leading providers like OpenAI, Google’s Gemini, ElevenLabs, and RunwayML. It enables developers to build intelligent workflows and execute Solana-based transactions effortlessly through a single, powerful interface. Only v1 so just imagine v2...","archived":false,"fork":false,"pushed_at":"2024-12-30T21:27:25.000Z","size":2782,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T21:31:40.784Z","etag":null,"topics":["artificial-general-intelligence","artificial-intelligence","elevenlabs-api","gemini-api","javascript","js","openai-api","regulators","runwayml-api","solana"],"latest_commit_sha":null,"homepage":"","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/DankJeroen842.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-12-30T20:21:17.000Z","updated_at":"2024-12-30T21:27:28.000Z","dependencies_parsed_at":"2024-12-30T21:31:57.251Z","dependency_job_id":"1ab2af51-ba3a-419b-85bd-916a40bac226","html_url":"https://github.com/DankJeroen842/POM-API-open-v1","commit_stats":null,"previous_names":["dankjeroen842/pom-api-open-v1"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DankJeroen842%2FPOM-API-open-v1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DankJeroen842%2FPOM-API-open-v1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DankJeroen842%2FPOM-API-open-v1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DankJeroen842%2FPOM-API-open-v1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DankJeroen842","download_url":"https://codeload.github.com/DankJeroen842/POM-API-open-v1/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231940785,"owners_count":18449194,"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":["artificial-general-intelligence","artificial-intelligence","elevenlabs-api","gemini-api","javascript","js","openai-api","regulators","runwayml-api","solana"],"created_at":"2024-12-31T04:14:01.811Z","updated_at":"2024-12-31T04:14:06.404Z","avatar_url":"https://github.com/DankJeroen842.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Proof of Me -- API v1.0\n![Untitled design - 2024-12-30T223823 579](https://github.com/user-attachments/assets/3a278159-8ca8-4e7a-b44e-59e3c4047fbf)\n\n---\n\n# Integrating the PoM Unified API (v1.0)\n\nThe PoM Unified API (v1.0) simplifies connecting to advanced AI services by offering a single interface for multiple providers like OpenAI, Gemini, ElevenLabs, and RunwayML. Follow the steps below to integrate it seamlessly into your application.\n\n## Visual Representation on how the PoM Unified API (v1.0) works: \n\n![Untitled design - 2024-12-30T223904 272](https://github.com/user-attachments/assets/05d48802-0378-4b92-8e87-e2bc5c2282b7)\n---\n\n## 1. Registering a User\n\nTo start using the PoM API, register your account with your AI service keys.\n\n### **Endpoint:**\n`POST /api/v1/user/register-user`\n\n### **Request Body:**\n```json\n{\n  \"email\": \"your-email@example.com\",\n  \"geminiKey\": \"your-gemini-key\",\n  \"openAIKey\": \"your-openai-key\",\n  \"elevenLabsKey\": \"your-elevenlabs-key\",\n  \"runwayMLKey\": \"your-runwayml-key\"\n}\nResponse:\njson\nCopy code\n{\n  \"statusCode\": 200,\n  \"success\": true,\n  \"message\": \"User Registered Successfully, Collect the Token and start playing!\",\n  \"data\": \"your-generated-bearer-token\"\n}\nSave the data field (Bearer Token) for authenticating API requests.\n2. Using AI Services\nEndpoint:\nPOST /api/v1/ai/services?searchModel={model-id}\n\nQuery Parameters:\nParameter\tType\tDescription\tRequired\nsearchModel\tNumber\tModel or service ID (e.g., 1 for Gemini, 2 for OpenAI, etc.)\tYes\nRequest Body (Form Data):\njson\nCopy code\n{\n  \"prompt\": \"Your question or command here\"\n}\nAuthentication:\nAdd your Bearer Token to the Authorization header:\n\ntext\nCopy code\nAuthorization: Bearer your-generated-bearer-token\nExample Code: Query AI Services\nBelow is an example of a JavaScript function to make a request:\n\njavascript\nCopy code\nconst fetch = require(\"node-fetch\");\n\nasync function queryPoMAPI(prompt) {\n  const response = await fetch(\"https://api.pom.example/ai/services?searchModel=4\", {\n    method: \"POST\",\n    headers: {\n      \"Content-Type\": \"application/json\",\n      \"Authorization\": \"Bearer your-generated-bearer-token\",\n    },\n    body: JSON.stringify({ prompt }),\n  });\n\n  if (!response.ok) {\n    throw new Error(\"Error connecting to PoM API\");\n  }\n\n  const data = await response.json();\n  return data.response;\n}\n\n// Example Usage:\nqueryPoMAPI(\"What is the purpose of the PoM Unified API?\")\n  .then(response =\u003e console.log(response))\n  .catch(error =\u003e console.error(error));\n\n```\n\n# The Second Part of the PoM Unified API (v1.0)\n\nThe second part of the PoM Unified API (v1.0) focuses on advanced querying and retrieval services, leveraging intelligent workflows to simplify interactions with supported AI models. These endpoints enable seamless integration with AI functionalities designed to adapt to complex requirements.\n\n---\n\n## 2. Querying AI Services: Advanced Features\n\n### Endpoint:\nPOST /api/v1/ai/services?queryType=2\u0026searchModel={model-id}\n\nyaml\nCopy code\n\nThis endpoint allows users to send more advanced queries to supported AI models.\n\n---\n\n### Query Parameters:\n\n| Parameter       | Type   | Description                                                   | Required |\n|------------------|--------|---------------------------------------------------------------|----------|\n| `queryType`      | Number | Identifies the advanced query type (always `2` for this).     | Yes      |\n| `searchModel`    | Number | Model or service ID (e.g., `1` for Gemini, `2` for OpenAI).   | Yes      |\n\n---\n\n### Request Body:\n\n```json\n{\n  \"advancedPrompt\": \"Provide a detailed analysis of climate change trends using AI insights.\"\n}\nAuthentication: Include your Bearer Token in the Authorization header:\n\ntext\nCopy code\nAuthorization: Bearer your-generated-bearer-token\n\nExample Code: Advanced Query Integration\nBelow is an example of using JavaScript to make an advanced query request:\n\njavascript\nCopy code\nconst fetch = require(\"node-fetch\");\n\nasync function queryPoMAPIAdvanced(advancedPrompt) {\n  const response = await fetch(\"https://api.pom.example/ai/services?queryType=2\u0026searchModel=23\", {\n    method: \"POST\",\n    headers: {\n      \"Content-Type\": \"application/json\",\n      \"Authorization\": \"Bearer your-generated-bearer-token\",\n    },\n    body: JSON.stringify({ advancedPrompt }),\n  });\n\n  if (!response.ok) {\n    throw new Error(\"Error connecting to PoM API for advanced query\");\n  }\n\n  const data = await response.json();\n  return data.response;\n}\n\n// Example Usage:\nqueryPoMAPIAdvanced(\"Generate an advanced analysis on market trends.\")\n  .then(response =\u003e console.log(response))\n  .catch(error =\u003e console.error(error));\n```\n# View our Documentation for more information\n\n---\n\n## Our Docs provides everything you need to know, including our roadmap and future plans, along with the actual functionality of PoM\n\n---\n\n- Discord: https://discord.gg/RuphQvfd\n- Twitter: https://x.com/pomdotfun\n- Website: https://proofofme.fun\n- Docs: \n\n---\n\n## Contract address: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankjeroen842%2Fpom-api-open-v1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdankjeroen842%2Fpom-api-open-v1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankjeroen842%2Fpom-api-open-v1/lists"}