1A
OneAI Labs

Developers

Build on the OneAI commercial API

Use /v1/generate for structured task intelligence, /v1/chat/completions for model gateway calls, and /v1/models for catalog discovery.

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
  }'

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.