results is always null in list responses.
Example Usage
import { BatchListItem } from "@openrouter/sdk/models";
let value: BatchListItem = {
completionWindow: "24h",
createdAt: 818782,
endpoint: "<value>",
error: {
message: "<value>",
},
finalizedAt: 579660,
id: "<id>",
model: "Durango",
object: "batch",
requestCounts: {
completed: 311945,
failed: 214442,
total: 609620,
},
results: "<value>",
status: "in_progress",
usage: {
completionTokens: 20018,
promptTokens: 657059,
totalTokens: 490076,
},
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
completionWindow | models.BatchListItemCompletionWindow | :heavy_check_mark: | N/A |
createdAt | number | :heavy_check_mark: | N/A |
endpoint | string | :heavy_check_mark: | N/A |
error | models.BatchListItemError | :heavy_check_mark: | N/A |
finalizedAt | number | :heavy_check_mark: | N/A |
id | string | :heavy_check_mark: | N/A |
model | string | :heavy_check_mark: | N/A |
object | models.BatchListItemObject | :heavy_check_mark: | N/A |
requestCounts | models.BatchListItemRequestCounts | :heavy_check_mark: | N/A |
results | any | :heavy_check_mark: | Always null: retrieve the batch with GET /batches/{id} to access its results. |
status | models.BatchListItemStatus | :heavy_check_mark: | N/A |
usage | models.BatchListItemUsage | :heavy_check_mark: | N/A |