Example Usage
import { BatchSubmitBody } from "@openrouter/sdk/models";
let value: BatchSubmitBody = {
endpoint: "/v1/chat/completions",
model: "Fiesta",
requests: [],
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
completionWindow | models.BatchSubmitBodyCompletionWindow | :heavy_minus_sign: | N/A | |
endpoint | models.Endpoint | :heavy_check_mark: | N/A | |
model | string | :heavy_check_mark: | N/A | |
provider | models.BatchProviderPreferences | :heavy_minus_sign: | Batch provider routing preferences. Only provider.only is supported. | { “only”: [ “google-vertex” ] } |
requests | models.RequestT[] | :heavy_check_mark: | N/A |