{"id":12,"date":"2026-05-12T08:13:43","date_gmt":"2026-05-12T08:13:43","guid":{"rendered":"https:\/\/app.aioxsuite.com\/sandbox3\/?page_id=12"},"modified":"2026-05-12T08:13:43","modified_gmt":"2026-05-12T08:13:43","slug":"api-docs","status":"publish","type":"page","link":"https:\/\/app.aioxsuite.com\/sandbox3\/?page_id=12","title":{"rendered":"API Documentation"},"content":{"rendered":"        <div class=\"aiox-api-docs\">\n            <div class=\"docs-header\">\n                <h1>AIOX Server API Documentation<\/h1>\n                <p>Complete guide to using the AIOX Server API<\/p>\n            <\/div>\n\n            <div class=\"docs-content\">\n                <div class=\"docs-section\">\n                    <h2>Getting Started<\/h2>\n                    <p>The AIOX Server API provides access to advanced AI capabilities through simple REST endpoints.<\/p>\n                    \n                    <h3>Base URL<\/h3>\n                    <code class=\"code-block\">https:\/\/app.aioxsuite.com\/sandbox3\/wp-json\/aiox-server\/v1\/<\/code>\n\n                    <h3>Authentication<\/h3>\n                    <p>All API requests require authentication using your API key in the request headers:<\/p>\n                    <pre class=\"code-block\">X-API-Key: YOUR_API_KEY_HERE<\/pre>\n                <\/div>\n\n                <div class=\"docs-section\">\n                    <h2>Endpoints<\/h2>\n                    \n                    <div class=\"endpoint\">\n                        <h3>POST \/generate<\/h3>\n                        <p>Generate AI responses using the Gemini model.<\/p>\n                        \n                        <h4>Request Body<\/h4>\n                        <pre class=\"code-block\">{\n  \"prompt\": \"Your prompt here\",\n  \"max_tokens\": 1000,\n  \"temperature\": 0.7\n}<\/pre>\n\n                        <h4>Response<\/h4>\n                        <pre class=\"code-block\">{\n  \"success\": true,\n  \"data\": {\n    \"response\": \"Generated AI response\",\n    \"tokens_used\": 150,\n    \"cost\": 0.003\n  }\n}<\/pre>\n                    <\/div>\n\n                    <div class=\"endpoint\">\n                        <h3>GET \/usage<\/h3>\n                        <p>Get your current usage statistics.<\/p>\n                        \n                        <h4>Response<\/h4>\n                        <pre class=\"code-block\">{\n  \"success\": true,\n  \"data\": {\n    \"requests_this_month\": 245,\n    \"tokens_used\": 12500,\n    \"total_cost\": 2.45,\n    \"remaining_requests\": 755\n  }\n}<\/pre>\n                    <\/div>\n                <\/div>\n\n                <div class=\"docs-section\">\n                    <h2>Code Examples<\/h2>\n                    \n                    <h3>cURL<\/h3>\n                    <pre class=\"code-block\">curl -X POST \"https:\/\/app.aioxsuite.com\/sandbox3\/wp-json\/aiox-server\/v1\/generate\" \\\n     -H \"X-API-Key: YOUR_API_KEY\" \\\n     -H \"Content-Type: application\/json\" \\\n     -d '{\"prompt\": \"Hello, world!\"}'<\/pre>\n\n                    <h3>JavaScript<\/h3>\n                    <pre class=\"code-block\">const response = await fetch('https:\/\/app.aioxsuite.com\/sandbox3\/wp-json\/aiox-server\/v1\/generate', {\n  method: 'POST',\n  headers: {\n    'X-API-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\/json'\n  },\n  body: JSON.stringify({\n    prompt: 'Hello, world!'\n  })\n});\n\nconst data = await response.json();\nconsole.log(data);<\/pre>\n\n                    <h3>Python<\/h3>\n                    <pre class=\"code-block\">import requests\n\nurl = \"https:\/\/app.aioxsuite.com\/sandbox3\/wp-json\/aiox-server\/v1\/generate\"\nheaders = {\n    \"X-API-Key\": \"YOUR_API_KEY\",\n    \"Content-Type\": \"application\/json\"\n}\ndata = {\n    \"prompt\": \"Hello, world!\"\n}\n\nresponse = requests.post(url, headers=headers, json=data)\nprint(response.json())\n<\/pre>\n                <\/div>\n\n                <div class=\"docs-section\">\n                    <h2>Rate Limits<\/h2>\n                    <p>API requests are subject to rate limits based on your subscription plan:<\/p>\n                    <ul>\n                        <li><strong>Free Plan:<\/strong> 10 requests per minute, 1,000 per month<\/li>\n                        <li><strong>Basic Plan:<\/strong> 30 requests per minute, 10,000 per month<\/li>\n                        <li><strong>Pro Plan:<\/strong> 100 requests per minute, 100,000 per month<\/li>\n                    <\/ul>\n                <\/div>\n\n                <div class=\"docs-section\">\n                    <h2>Error Handling<\/h2>\n                    <p>The API returns standard HTTP status codes and error messages:<\/p>\n                    <pre class=\"code-block\">{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"RATE_LIMIT_EXCEEDED\",\n    \"message\": \"Rate limit exceeded. Please try again later.\"\n  }\n}<\/pre>\n                <\/div>\n            <\/div>\n        <\/div>\n        \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-12","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/app.aioxsuite.com\/sandbox3\/index.php?rest_route=\/wp\/v2\/pages\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.aioxsuite.com\/sandbox3\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/app.aioxsuite.com\/sandbox3\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/app.aioxsuite.com\/sandbox3\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/app.aioxsuite.com\/sandbox3\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12"}],"version-history":[{"count":0,"href":"https:\/\/app.aioxsuite.com\/sandbox3\/index.php?rest_route=\/wp\/v2\/pages\/12\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.aioxsuite.com\/sandbox3\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}