1A
OneAI Labs

开发者

基于 OneAI 商业 API 构建

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

开发者

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

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

任务智能

/v1/generate

模型网关

/v1/chat/completions

Core API 示例

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

模型网关

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

在 OneAI Labs 商业 AI 技术栈上构建。

从 OneAI Core 的基础设施开始,叠加 Agent OS 的工作流,发布客户愿意使用、信任并付费的产品。