跳到正文
@OpenRouter· @OpenRouter · X·· 15 天前AI 评分22
AI 导读

6/ 轮询 GET /api/v1/batches/:id 直到 status 为 completed。结果会在同一个响应中内联返回,以你的 custom_id 为键,并带有整个批次的 usage.cost。 整个交互就是这两次调用上的纯 JSON。

正文

6/ Poll GET /api/v1/batches/:id until status is completed. Results come back inline in that same response, keyed by your custom_id, with usage.cost for the whole batch.

The whole exchange is plain JSON over those two calls.

来源:@OpenRouter · x.com