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>",
},
expiresAt: 579660,
finalizedAt: 311945,
id: "<id>",
model: "CX-9",
object: "batch",
provider: "<value>",
requestCounts: {
completed: 792652,
failed: 217575,
total: 502267,
},
results: null,
status: "expired",
usage: {
completionTokens: 601843,
promptTokens: 355617,
totalTokens: 566859,
},
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
completionWindow | models.BatchListItemCompletionWindow | ✔️ | N/A |
createdAt | number | ✔️ | N/A |
endpoint | string | ✔️ | N/A |
error | models.BatchListItemError | ✔️ | N/A |
expiresAt | number | ✔️ | Unix timestamp after which the assigned provider no longer completes unfinished requests. Derived from the provider’s documented batch window, so it can exceed created_at plus completion_window (Google Vertex can take up to 96 hours). null when the provider documents no hard expiry. |
finalizedAt | number | ✔️ | N/A |
id | string | ✔️ | N/A |
model | string | ✔️ | N/A |
object | models.BatchListItemObject | ✔️ | N/A |
provider | string | ✔️ | Provider OpenRouter assigned to run the batch, using the same name as the provider field of sync responses. |
requestCounts | models.BatchListItemRequestCounts | ✔️ | N/A |
results | any | ✔️ | Always null: retrieve the batch with GET /batches/{id} to access its results. |
status | models.BatchListItemStatus | ✔️ | N/A |
usage | models.BatchListItemUsage | ✔️ | N/A |