1A
OneAI Labs

OneAI Core

Commercial AI Operating Layer

Turn model APIs into paid, governed and measurable AI products with gateway access, task intelligence, routing policy, cost controls, usage tracking and a commercial console.

OneAI Core

Commercial Control Plane

Live
30d
50K
Requests
30d
$500
Cost guard
30d
18
API Keys
Policy Guardrails
maxCostUsd per requestEnabled
Plan gatesEnabled
Provider allowlistEnabled
Task Activity
business_strategy82%
market_research68%
support_brain54%

OneAI Core

The flagship product behind the OneAI Labs ecosystem.

OneAI Core is the commercial layer above every model, task, customer and request. It lets teams route models, package structured intelligence, enforce policy, track usage and operate AI as a SaaS product.

Core manages the business of AI. Agent OS turns that intelligence into interfaces, actions and vertical products.

OpenAI-compatible gateway

Use familiar chat completion calls while OneAI handles provider routing and product visibility.

Task Intelligence API

Package repeatable business workflows as typed task contracts with structured JSON outputs.

API key and customer control

Issue keys, scope access, separate environments and connect usage back to customers.

Usage, cost and latency tracking

Record provider, model, tokens, estimated cost, latency, requestId and error state.

Routing policy and cost guards

Apply cheap, balanced, fast, auto, premium or explicit provider:model behavior with maxCostUsd.

Billing-ready operations

Run AI like a SaaS product with plans, limits, commercial visibility and operator workflows.

Core architecture

One request. Multiple layers of commercial intelligence.

OneAI Core wraps every AI request with authentication, task shaping, routing, policy, provider execution, usage tracking and billing-ready visibility.

Commercial layer

Your products keep their own UX. OneAI Core provides the infrastructure behind keys, routing, task contracts, limits, requests, costs and operator control.

01

Authenticate key

Validate API key, customer plan and access scope.

02

Shape task

Convert product intent into a stable task contract.

03

Apply routing

Select cheap, balanced, fast, auto or explicit provider:model behavior.

04

Enforce policy

Apply cost guard, tier access and request rules.

05

Execute model

Route to the selected provider, model catalog or gateway path.

06

Track usage

Record request, customer, usage, cost, latency and billing context.

Task Intelligence API

/v1/generate

Structured business workflows such as business_strategy, content_engine, support_brain and market_research.

Model Gateway API

/v1/chat/completions

OpenAI-compatible access with provider:model routing, streaming-ready behavior and observability.

Model Catalog

/v1/models

Catalog discovery, pricing coverage, readiness checks and model strategy for operators.

Developers

Two APIs. One product-grade AI system.

Use the gateway for familiar model access. Use Task Intelligence when your product needs stable business outputs instead of loose prompt responses.

Task Intelligence

/v1/generate

Model Gateway

/v1/chat/completions

Core API examples

structured task api

curl https://oneai-saas-api-production.up.railway.app/v1/generate \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Idempotency-Key: launch-plan-001" \
  -d '{
    "type": "business_strategy",
    "input": {
      "goal": "Launch a paid AI feature in 30 days",
      "audience": "SaaS founders and product teams"
    },
    "options": {
      "llm": {
        "mode": "balanced",
        "maxCostUsd": 0.03
      }
    }
  }'

model gateway

curl https://oneai-saas-api-production.up.railway.app/v1/chat/completions \
  -H "content-type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "openai:gpt-5.2",
    "messages": [
      {
        "role": "user",
        "content": "Turn this idea into a commercial AI product plan."
      }
    ],
    "max_completion_tokens": 300
  }'

Trust layer

Built like API infrastructure, not a toy demo.

OneAI Core is designed around production concerns: key hygiene, scoped access, cost control, request observability, provider policy and operator review.

Hashed API keys

Keep secrets server-side, create separate keys per environment and revoke leaked keys quickly.

Usage and cost visibility

Track provider, model, tokens, estimated cost, latency and requestId for support and operations.

Provider policy

Use routing modes, allowlists, fallbacks and maxCostUsd to keep production calls controlled.

Execution boundary

OneAI returns plans, structured decisions and coordination outputs while execution stays in product workflows.

Operational recommendation

Use idempotency keys, monitor usage daily and health-check new providers before exposing them to customers.

Read API Docs

Build on the OneAI Labs commercial AI stack.

Start with OneAI Core for infrastructure, add Agent OS for workflows, and ship products that customers can use, trust and pay for.