OneAI Labs

开发者

基于 OneAI 商业 API 构建

用 /v1/generate 获得结构化任务智能,用 /v1/chat/completions 调用模型网关,用 /v1/models 发现模型目录。

开发者

两套 API,一个产品级 AI 系统。

用网关获得熟悉的模型访问方式;当产品需要稳定的业务输出而非松散的提示词响应时,用任务智能。

Core API 示例

结构化任务 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
      }
    }
  }'

模型网关

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
  }'
面向生产构建

你的 AI 不应该停在演示阶段。

用 OneAI Core 运营,用 OneForge 进化,用 TheOne 编排,并通过 OneAI Labs 能力技术栈进入真实世界。