AI API's
AI & ML utilities including prompt generation, token estimation, injection detection, MCP server tools/resources, gateway routing, and ML model analysis.
AI API's endpoints
| Method | Endpoint | Description |
|---|---|---|
| Ai | ||
| POST |
Chunk Text /market/api/ai/chunk-text |
Splits long text into RAG-ready chunks with metadata using paragraph, character, or word strategies. |
| POST |
Estimate Tokens /market/api/ai/estimate-tokens |
Estimates input tokens, optional output tokens, and approximate model cost before provider execution. |
| POST |
Generate System Prompt /trending/api/ai/generate-system-prompt |
Builds production-ready system prompts from role, audience, tone, tasks, constraints, output format, and variables. |
| POST |
AI Gateway Route /ai/ai/gateway/route |
Returns an advisory routing plan for AI workloads based on request type, cost, latency, streaming, and quality preferences. |
| POST |
Detect Prompt Injection /market/api/ai/detect-prompt-injection |
Scores prompt injection risk using security indicators such as override, role hijack, exfiltration, tool abuse, and jailbreak patterns. |
| Ml | ||
| POST |
Model Comparison /core/ml/model-comparison |
Compares ML models with weighted accuracy, precision, recall, and F1 score, then returns ranking, best model, score gap, and production decision notes. |
| POST |
Feature Importance /core/ml/feature-importance |
Ranks feature importance, calculates percentage contribution, cumulative importance milestones, distribution buckets, and feature selection guidance. |
| Mcp | ||
| POST |
MCP Tools Call /ai/mcp/server/tools/call |
Executes supported MCP-style utility tools over built-in knowledge documents or user-provided data for search, fetch, analytics, insight generation, and summarization. |
AI API's pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | 5 / second |
|
| PRO | $15 / month | 10 / second |
|
| ULTRA Recommended | $50 / month | 25 / second |
|
| MEGA | $100 / month | 50 / second |
|