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 | ➖ | N/A | |
endpoint | models.Endpoint | ✅ | N/A | |
model | string | ✅ | N/A | |
provider | models.BatchProviderPreferences | ➖ | Batch provider routing preferences. Only provider.only and provider.allow_fallbacks are supported. | { “only”: [ “google-vertex” ] } |
requests | models.RequestT[] | ✅ | N/A |