1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35707,e=>{"use strict";let t=(0,e.i(69547).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",()=>t],35707)},43638,e=>{"use strict";let t=(0,e.i(69547).default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);e.s(["Activity",()=>t],43638)},66311,e=>{"use strict";let t=(0,e.i(69547).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);e.s(["Shield",()=>t],66311)},40614,e=>{"use strict";let t=(0,e.i(69547).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",()=>t],40614)},49249,e=>{"use strict";let t=(0,e.i(69547).default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);e.s(["Database",()=>t],49249)},26331,e=>{"use strict";let t=(0,e.i(69547).default)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);e.s(["Key",()=>t],26331)},98421,e=>{"use strict";let t=(0,e.i(69547).default)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);e.s(["Server",()=>t],98421)},76255,e=>{"use strict";let t=(0,e.i(69547).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",()=>t],76255)},2889,e=>{"use strict";let t=(0,e.i(69547).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",()=>t],2889)},47710,e=>{"use strict";let t=(0,e.i(69547).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
1],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",()=>t],47710)},23636,e=>{"use strict";let t=(0,e.i(69547).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",()=>t],23636)},33538,e=>{"use strict";let t=(0,e.i(69547).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],33538)},21614,44244,e=>{"use strict";var t=e.i(69547);let i=(0,t.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>i],21614);let a=(0,t.default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",()=>a],44244)},82429,e=>{"use strict";var t=e.i(91398),i=e.i(58678),a=e.i(41158),s=e.i(91788),n=e.i(23636),r=e.i(2889),o=e.i(66311),d=e.i(26331),c=e.i(21614),l=e.i(33538),p=e.i(76255),u=e.i(40614),h=e.i(98421),m=e.i(35707),y=e.i(49249),g=e.i(44244),f=e.i(43638),x=e.i(47710),v=e.i(72405),k=e.i(4140);let P=[{id:"getting-started",title:"Getting Started",icon:r.Zap,content:` 2## Quick Start 3 4Get up and running with CodeStreem APIs in under 60 seconds. 5 6### 1. Get Your API Key 7 8Sign up for a free account at [dashboard.codestreem.io](https://codestreem-ai.vercel.app/dashboard) to get your API key. 9 10### 2. Install SDK (Optional) 11 12\`\`\`bash 13# Node.js / JavaScript 14npm install @codestreem/sdk 15 16# Python 17pip install codestreem 18 19# Go 20go get github.com/codestreem/go-sdk 21 22# Ruby 23gem install codestreem 24\`\`\` 25 26### 3. Make Your First Request 27 28Every API request requires authentication via the \`Authorization\` header: 29 30\`\`\`bash 31curl -X POST "https://api.codestreem.io/v1/sentiment" \\ 32 -H "Authorization: Bearer YOUR_API_KEY" \\ 33 -H "Content-Type: application/json" \\ 34 -d '{"text": "Hello, World!"}' 35\`\`\` 36 `},{id:"authentication",title:"Authentication",icon:d.Key,content:` 37## Authentication 38 39All API requests require authentication using API keys. 40 41### API Key Types 42 43| Type | Rate Limit | Use Case | 44|------|-----------|----------| 45| Public Key | 100/min | Client-side apps | 46| Secret Key | 10,000/min | Server-side apps | 47| Admin Key | Unlimited | Enterprise | 48 49### Header Format 50 51\`\`\`http 52Authorization: Bearer sk_live_xxxxxxxxxxxx 53\`\`\` 54 55### Security Best Practices 56 571. **Never expose secret keys** in client-side code 582. **Rotate keys** regularly (recommended: every 90 days) 593. **Use environment variables** to store keys 604. **Restrict key permissions** per project 61 62### Example: Environment Variables 63 64\`\`\`bash 65# .env file 66CODESTREEM_API_KEY=sk_live_your_key_here 67\`\`\` 68 69\`\`\`javascript 70// JavaScript 71const apiKey = process.env.CODESTREEM_API_KEY; 72\`\`\` 73 `},{id:"sentiment-api",title:"Sentiment Analysis API",icon:f.Activity,content:` 74## Sentiment Analysis API 75 76Deep NLP analysis of text strings to detect emotional markers, tone, and overall sentiment. Support for 40+ languages with 98.7% accuracy. 77 78### Endpoint 79\`\`\`http 80POST https://api.codestreem.io/v1/sentiment 81\`\`\` 82 83### Example 84\`\`\`javascript 85const res = await fetch("/api/v1/sentiment", { 86 method: "POST", 87 headers: { "X-API-Key": "YOUR_KEY" }, 88 body: JSON.stringify({ text: "CodeStreem is fast!" }) 89}); 90\`\`\` 91 `,playgroundLink:"/playground?api=sentiment"},{id:"summarize-api",title:"Text Summarization",icon:p.FileText,content:` 92## Text Summarization 93 94Condensed summaries of long-form content using abstractive AI models. 95 96### Endpoint 97\`\`\`http 98POST https://api.codestreem.io/v1/summarize 99\`\`\` 100 `,playgroundLink:"/playground?api=summarize"},{id:"vision-ocr",title:"Vision OCR (Paperless)",icon:l.Search,content:` 101## Vision OCR API 102 103Optical Character Recognition for scanned documents, receipts, and images. 104 105### Endpoint 106\`\`\`http 107POST https://api.codestreem.io/v1/paperless 108\`\`\` 109 `,playgroundLink:"/playground?api=ocr"},{id:"image-gen",title:"Image Generation",icon:x.Sparkles,content:` 110## Image Generation API 111 112Text-to-Image synthesis using state-of-the-art latent diffusion models. 113 114### Endpoint 115\`\`\`http 116POST https://api.codestreem.io/v1/generate-image 117\`\`\` 118 `,playgroundLink:"/playground?api=image-gen"},{id:"security-scan",title:"Security Scanner",icon:o.Shield,content:` 119## Security Scanner API 120 121Vulnerability detection and security posture analysis for URLs and infrastru
121cture. 122 123### Endpoint 124\`\`\`http 125POST https://api.codestreem.io/v1/security-scan 126\`\`\` 127 `,playgroundLink:"/playground?api=security"},{id:"guardian-api",title:"Guardian (PII Shield)",icon:m.Lock,content:` 128## Safety Guardian API 129 130Protect sensitive data by detecting and masking PII, toxicity, and restricted content. 131 132### Endpoint 133\`\`\`http 134POST https://api.codestreem.io/v1/guardian 135\`\`\` 136 `,playgroundLink:"/playground?api=guardian"},{id:"code-review",title:"AI Code Review",icon:n.Code2,content:` 137## AI Code Review API 138 139Automated pull request analysis and bug detection for 20+ programming languages. 140 141### Endpoint 142\`\`\`http 143POST https://api.codestreem.io/v1/analyze-code 144\`\`\` 145 `,playgroundLink:"/playground?api=code-review"},{id:"echo-audio",title:"Echo Audio Intel",icon:u.Globe,content:` 146## Echo Audio API 147 148Neural transcription and audio sentiment analysis from MP3/WAV/OGG sources. 149 150### Endpoint 151\`\`\`http 152POST https://api.codestreem.io/v1/echo 153\`\`\` 154 `,playgroundLink:"/playground?api=echo"},{id:"oracle-prediction",title:"Predictive Oracle",icon:r.Zap,content:` 155## Predictive Oracle API 156 157Time-series forecasting and anomaly detection for business data. 158 159### Endpoint 160\`\`\`http 161POST https://api.codestreem.io/v1/oracle 162\`\`\` 163 `,playgroundLink:"/playground?api=oracle"},{id:"insight-ner",title:"Insight NER",icon:l.Search,content:` 164## Insight Named Entity Recognition 165 166Extract people, places, organizations, and dates from unstructured text. 167 168### Endpoint 169\`\`\`http 170POST https://api.codestreem.io/v1/insight 171\`\`\` 172 `,playgroundLink:"/playground?api=insight"},{id:"deepfake-detect",title:"Deepfake Detection",icon:o.Shield,content:` 173## Deepfake Detection API 174 175AI-powered forensic analysis to detect synthetic and manipulated media. 176 177### Endpoint 178\`\`\`http 179POST https://api.codestreem.io/v1/security/deepfake 180\`\`\` 181 `,playgroundLink:"/playground?api=deepfake"},{id:"tts-api",title:"Text-to-Speech (TTS)",icon:u.Globe,content:` 182## Text-to-Speech API 183 184Convert text to natural, high-fidelity human speech in 25+ voices. 185 186### Endpoint 187\`\`\`http 188POST https://api.codestreem.io/v1/audio/tts 189\`\`\` 190 `,playgroundLink:"/playground?api=tts"},{id:"translation-api",title:"Neural Translation",icon:u.Globe,content:` 191## Translation API 192 193Neural machine translation between 100+ languages with auto-detection. 194 195### Endpoint 196\`\`\`http 197POST https://api.codestreem.io/v1/translate 198\`\`\` 199 `,playgroundLink:"/playground?api=translate"},{id:"scraping-api",title:"Web Scraping API",icon:l.Search,content:` 200## Web Scraping API 201 202Extract structured data from any URL with JavaScript rendering support. 203 204### Endpoint 205\`\`\`http 206POST https://api.codestreem.io/v1/scrape 207\`\`\` 208 `,playgroundLink:"/playground?api=scrape"},{id:"pdf-parser",title:"PDF Parser API",icon:p.FileText,content:` 209## PDF Parser API 210 211Extract text, tables, and structured data from PDF files. 212 213### Endpoint 214\`\`\`http 215POST https://api.codestreem.io/v1/pdf 216\`\`\` 217 `,playgroundLink:"/playground?api=pdf"},{id:"vision-intel",title:"Image Recognition",icon:l.Search,content:` 218## Image Recognition API 219 220Object detection and scene classification using computer vision. 221 222### Endpoint 223\`\`\`http 224POST https://api.codestreem.io/v1/analyze 225\`\`\` 226 `,playgroundLink:"/playground?api=vision"},{id:"data-enrich",title:"Data Enrichment",icon:y.Database,content:` 227## Data Enrichment API 228 229Enhance your datasets with verified firmographic and demographic data. 230 231### Endpoint 232\`\`\`http 233POST https://api.codestreem.io/v1/faker 234\`\`\` 235 `,playgroundLink:"/playground?api=data"},{id:"cloud-cost",title:"Cloud Cost Optimizer",icon:h.Server,content:` 236## Cloud Cost Optimizer API 237 238Analyze infrastructure logs and suggest cost-saving instance migrations. 239 240### Endpoint 241\`\`\`http 242POST https://api.codestreem.io/v1/cloud-cost 243\`\`\` 244 `,playgroundLink:"/playground?api=cloud-cost"},{id:"nexus-logistics",title:"Nexus Logistics AI",icon:u.Globe,content:` 245## Nexus Logistics API 246 247Optimize supply chain routes and predict delivery anomalies. 248 249### Endpoint 250\`\`\`http 251POST https://api.codestreem.io/v1/nexus 252\`\`\` 253 `,playgroundLink:"/playground?api=nexus"},{id:"rate-limits",title:"Rate Limits",icon:o.Shield,content:` 254## Rate Limits 255 256Our rate limiting is designed to be generous while protecting service quality. 257 258### Limits by Plan 259 260| Plan | Requests/min | Requests/month | Burst | 261|------|-------------|----------------|-------| 262| Starter (Free) | 10 | 500 | 5 | 263| Pro ($29/mo) | 100 | 100,000 | 50 | 264| Enterprise ($149/mo) | 1,000 | 1,000,000 | 500 | 265 266### Rate Limit Headers 267 268Every response includes rate limit information: 269 270\`\`\`http 271X-RateLimit-Limit: 1000 272X-RateLimit-Remaining: 999 273X-RateLimit-Reset: 1640995200 274\`\`\` 275 276### Handling Rate Limits 277 278When rate limited, you'll receive a \`429 Too Many Requests\` response: 279 280\`\`\`json 281{ 282 "error": { 283 "code": "RATE_LIMITED", 284 "message": "Rate limit exceeded. Retry after 60 seconds.", 285 "retry_after": 60 286 } 287} 288\`\`\` 289 290### Best Practices 291 2921. **Implement exponential backoff** for retries 2932. **Cache responses** when appropriate 2943. **Monitor rate limit headers** proactively 2954. **Contact us** for limit increases 296 `},{id:"errors",title:"Error Handling",icon:p.FileText,content:` 297## Error Handling 298 299All errors follow a consistent format for easy handling. 300 301### Error Response Format 302 303\`\`\`json 304{ 305 "success": false, 306 "error": { 307 "code": "INVALID_API_KEY",
308 "message": "The provided API key is invalid or expired.", 309 "details": {} 310 } 311} 312\`\`\` 313 314### Common Error Codes 315 316| Code | HTTP Status | Description | 317|------|-------------|-------------| 318| INVALID_API_KEY | 401 | Invalid or expired API key | 319| INSUFFICIENT_CREDITS | 402 | Account needs more credits | 320| RATE_LIMITED | 429 | Too many requests | 321| INVALID_REQUEST | 400 | Malformed request body | 322| RESOURCE_NOT_FOUND | 404 | Requested resource not found | 323| SERVER_ERROR | 500 | Internal server error | 324 325### Retry Strategy 326 327\`\`\`python 328import time 329import requests 330 331def api_call_with_retry(url, headers, data, max_retries=3): 332 for attempt in range(max_retries): 333 response = requests.post(url, headers=headers, json=data) 334 335 if response.status_code == 429: 336 retry_after = int(response.headers.get('Retry-After', 60)) 337 time.sleep(retry_after) 338 continue 339 340 if response.status_code >= 500: 341 time.sleep(2 ** attempt) # Exponential backoff 342 continue 343 344 return response 345 346 raise Exception("Max retries exceeded") 347\`\`\` 348 `}];function S(){let[e,n]=(0,s.useState)("getting-started"),[r,o]=(0,s.use
348State)(!1),d=P.find(t=>t.id===e);return(0,t.jsxs)("div",{className:"page-wrapper",children:[(0,t.jsxs)(i.default,{children:[(0,t.jsx)("title",{children:"Documentation â CodeStreem API"}),(0,t.jsx)("meta",{name:"description",content:"Complete API documentation for CodeStreem. Authentication, endpoints, code examples in Python, JavaScript, Go, Ruby, and cURL."})]}),(0,t.jsxs)("div",{className:"ultra-bg",children:[(0,t.jsx)("div",{className:"ultra-gradient-1"}),(0,t.jsx)("div",{className:"ultra-gradient-2"}),(0,t.jsx)("div",{className:"ultra-grid"})]}),(0,t.jsx)("div",{className:"noise-overlay"}),(0,t.jsx)(v.default,{}),(0,t.jsx)("nav",{className:"nav-ultra",children:(0,t.jsxs)("div",{className:"container flex items-center justify-between h-16",children:[(0,t.jsxs)("div",{className:"flex items-center gap-8",children:[(0,t.jsx)(a.default,{href:"/",className:"nav-brand",children:(0,t.jsx)(k.default,{size:32})}),(0,t.jsxs)("div",{className:"nav-links",children:[(0,t.jsx)(a.default,{href:"/catalog",className:"nav-link",children:"API Catalog"}),(0,t.jsx)(a.default,{href:"/docs",className:"nav-link active",children:"Docs"}),(0,t.jsx)(a.default,{href:"/status",className:"nav-link",children:"Status"}),(0,t.jsx)(a.default,{href:"/pricing",className:"nav-link",children:"Pricing"}),(0,t.jsx)(a.default,{href:"/dashboard",className:"nav-link",children:"Dashboard"})]})]}),(0,t.jsx)(a.default,{href:"/signup",className:"btn-ultra-primary",children:"Get API Key"})]})}),(0,t.jsx)("main",{className:"docs-main",children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"docs-layout",children:[(0,t.jsxs)("aside",{className:"docs-sidebar",children:[(0,t.jsxs)("div",{className:"docs-search",children:[(0,t.jsx)(l.Search,{size:18}),(0,t.jsx)("input",{type:"text",placeholder:"Search docs..."})]}),(0,t.jsx)("nav",{className:"docs-nav",children:P.map(i=>(0,t.jsxs)("button",{className:`docs-nav-item ${e===i.id?"active":""}`,onClick:()=>n(i.id),children:[(0,t.jsx)(i.icon,{size:18}),(0,t.jsx)("span",{children:i.title})]},i.id))})]}),(0,t.jsxs)("article",{className:"docs-content",children:[(0,t.jsxs)("div",{className:"docs-header",children:[(0,t.jsxs)("div",{className:"docs-breadcrumb",children:[(0,t.jsx)(a.default,{href:"/",children:"Home"}),(0,t.jsx)(c.ChevronRight,{size:14}),(0,t.jsx)(a.default,{href:"/docs",children:"Docs"}),(0,t.jsx)(c.ChevronRight,{size:14}),(0,t.jsx)("span",{children:d?.title})]}),(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsx)("h1",{children:d?.title}),d?.playgroundLink&&(0,t.jsxs)(a.default,{href:d.playgroundLink,className:"btn-ultra-primary btn-sm",children:[(0,t.jsx)(g.Play,{size:14})," Try in Playground"]})]})]}),(0,t.jsx)("div",{className:"docs-prose",dangerouslySetInnerHTML:{__html:d?.content.replace(/```(\w+)\n([\s\S]*?)```/g,'<pre class="code-block"><code class="language-$1">$2</code></pre>').replace(/`([^`]+)`/g,'<code class="inline-code">$1</code>').replace(/## (.*)/g,"<h2>$1</h2>").replace(/### (.*)/g,"<h3>$1</h3>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n\n/g,"</p><p>").replace(/\| (.*) \|/g,e=>"<tr>"+e.split("|").filter(e=>e.trim()).map(e=>`<td>${e.trim()}</td>`).join("")+"</tr>")}})]})]})})}),(0,t.jsx)("footer",{className:"footer-ultra",children:(0,t.jsx)("div",{className:"container",children:(0,t.jsx)("div",{className:"footer-bottom",children:(0,t.jsx)("span",{children:"© 2026 CodeStreem. All rights reserved."})})})})]})}e.s(["default",()=>S])},15484,(e,t,i)=>{let a="/docs";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(82429)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})},48761,e=>{e.v(t=>Promise.all(["static/chunks/f4fe8aeb8343dcd3.js"].map(t=>e.l(t))).then(()=>t(93594)))},28805,e=>{e.v(t=>Promise.all(["static/chunks/3dcc93bb4829c1ba.js"].map(t=>e.l(t))).then(()=>t(79466)))}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.