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://api.oneai.network/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://api.oneai.network/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 for production
Your AI should not stop at a demo.
Operate it with OneAI Core. Evolve it with OneForge. Orchestrate it with TheOne. Bring it into the real world with the OneAI Labs capability stack.