Skip to main content
Methods: client.CreateBatch(), client.GetBatch().

Example

var client = new Client(apiKey);

var batch = client.CreateBatch(new BatchRequest(
    endpoint: "responses",
    input_file_id: "file_123",
    completion_window: "24h"
));

var status = client.GetBatch(batch.Id);

Key parameters

  • endpoint (required): Target endpoint for batch items (e.g., responses).
  • input_file_id (required): File id uploaded via /files.
  • completion_window: e.g., 24h.
  • metadata: Optional object stored with the batch.

Returns

BatchResponse