inferenceClient.batches.results()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

inferenceClient.batches.results(batchId: string, query?: Record<string, any>): Promise<any>
inferenceClient.files.content(batchId: string): Promise<Response>

Description

Returns short-lived presigned download URLs for the output (and optional error sidecar) of a completed batch job. If results are not yet ready, the response sets result_available: false or returns 412 Precondition Failed; in both cases, keep polling batch status and retry.

Download the artifacts soon after fetching, the URLs are short-lived. Result files themselves are retained for up to 30 days after the job completes, after which they are deleted.

Parameters

batch_id string required

Example: 0e9d1d35-3d1e-4d66-9a2f-8c7e0f6b3e21

The batch job identifier.

Request Sample

Show Request Sample
import { InferenceClient } from "@digitalocean/dots";

const inferenceClient = new InferenceClient({
    apiKey: process.env.MODEL_ACCESS_KEY!,
});

const response = await inferenceClient.batches.results("your_batch_id");

Response Example

Show Response Example
{
  "batch_id": "0e9d1d35-3d1e-4d66-9a2f-8c7e0f6b3e21",
  "result_available": true,
  "output_file_url": "https://batch-inference.nyc3.digitaloceanspaces.com/outputs/0e9d1d35-3d1e-4d66-9a2f-8c7e0f6b3e21.jsonl?X-Amz-Signature=...",
  "error_file_url": "string",
  "expires_at": "2026-04-24T20:19:19Z"
}

More Information

See /v1/batches/{batch_id}/results in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.