BYOKSBYOKS Docs

提供者

定价策略

作为 Provider,你可以自由设置价格。本指南帮助你制定有竞争力的定价策略。

定价模型

BYOKS 使用按 Token 计费的模型,与官方 Provider 一致。

基础定价

{
  "pricing": {
    "gpt-4o": {
      "inputPer1M": 2.50,
      "outputPer1M": 10.00
    },
    "claude-3-5-sonnet-20241022": {
      "inputPer1M": 3.00,
      "outputPer1M": 15.00
    }
  }
}
参数说明
inputPer1M每 100 万输入 Token 的价格(美元)
outputPer1M每 100 万输出 Token 的价格(美元)

官方价格参考

模型官方输入价格官方输出价格
gpt-4o$2.50/1M$10.00/1M
gpt-4-turbo$10.00/1M$30.00/1M
claude-3-5-sonnet$3.00/1M$15.00/1M
claude-3-opus$15.00/1M$75.00/1M
gemini-1.5-pro$1.25/1M$5.00/1M

定价策略选择

策略 1:平价

与官方价格相同,主要靠服务质量吸引用户:

{
  "pricingStrategy": "official",
  "markup": 0
}

适合:

  • 刚开始做 Provider
  • 主要目的是消耗闲置额度

策略 2:折扣

低于官方价格,吸引价格敏感用户:

{
  "pricingStrategy": "discount",
  "discount": 0.1  // 9折
}

适合:

  • 有批量折扣优势
  • 想快速积累用户

策略 3:溢价

高于官方价格,强调服务质量:

{
  "pricingStrategy": "premium",
  "markup": 0.2  // 加价 20%
}

适合:

  • 提供额外服务(如更高 SLA)
  • 针对特定企业客户

高级定价选项

最低消费

设置单次请求的最低收费:

{
  "minCharge": 0.001  // 最低 $0.001
}

避免大量微小请求带来的计费开销。

分时定价

不同时段不同价格:

{
  "timePricing": {
    "peak": {
      "hours": [9, 10, 11, 14, 15, 16, 17],
      "markup": 0.2
    },
    "offPeak": {
      "hours": [0, 1, 2, 3, 4, 5, 6],
      "discount": 0.3
    }
  }
}

用量阶梯

根据用量给予折扣:

{
  "volumeDiscount": [
    { "threshold": 100000, "discount": 0.05 },
    { "threshold": 1000000, "discount": 0.10 },
    { "threshold": 10000000, "discount": 0.15 }
  ]
}
月用量 (Token)折扣
< 10 万0%
10 万 - 100 万5%
100 万 - 1000 万10%
> 1000 万15%

定价建议

新 Provider

{
  "pricingStrategy": "discount",
  "discount": 0.05,
  "minCharge": 0.0001
}
  • 小幅折扣吸引用户
  • 设置最低消费保护

成熟 Provider

{
  "pricingStrategy": "official",
  "volumeDiscount": [
    { "threshold": 1000000, "discount": 0.10 }
  ]
}
  • 官方价格保证收益
  • 大客户给予折扣

企业级 Provider

{
  "pricingStrategy": "premium",
  "markup": 0.15,
  "sla": {
    "uptime": 99.9,
    "responseTime": "1h"
  }
}
  • 溢价但提供 SLA 保证
  • 面向企业客户

修改价格

你可以随时修改价格,但需要注意:

  • 价格变更立即生效
  • 已进行的请求按原价计费
  • 频繁改价可能影响用户信任

下一步