OpenAI/createProjectSpendAlert

暂不支持在线调用 · 原因见下方

OpenAIOpenAI API

POST/organization/projects/{project_id}/spend_alerts

管理create Project Spend Alert。

OpenAI API 中用于 create Project Spend Alert 的保留合约 POST Endpoint。模型与资源相关值由调用方在运行时提供。

覆盖固定 MIT 许可官方 revision 中全部 288 个 OpenAI Platform REST Endpoint(含类型化 SSE 流式与 Realtime 调用管理)。Hub 提供文档与独立 SDK/CLI,但不代理模型、账户或用量数据;调用方通过本地 API key 直连。

请求

operationId
createProjectSpendAlert
服务器
https://api.openai.com/v1
认证
ApiKeyAuth, AdminApiKeyAuth

请求参数

project_id

pathstring必填

OpenAI API 合约中的 project id 值。

Body 参数

CreateSpendAlertBody必填

Content-Type: application/json

字段: currencyintervalnotification_channelthreshold_amount

响应

200

ProjectSpendAlertapplication/json

供应商成功响应。

字段: currencyidintervalnotification_channelobjectthreshold_amount

{
  "currency": "USD",
  "interval": "month",
  "notification_channel": {
    "recipients": [],
    "type": "email"
  },
  "object": "project.spend_alert",
  "threshold_amount": 0
}