Skip to main content
GET
Get batch request result

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

batch_id
string
required

The ID of the batch.

custom_id
string
required

The custom_id of the request within the batch.

Response

The response object for the given request.

id
string
required
object
enum<string>
required
Available options:
response
created_at
integer
required
status
enum<string>
required
Available options:
queued,
in_progress,
failed,
completed,
incomplete,
cancelled
model
string
required
usage
object | null
required
metadata
object
required

Response metadata. A completed response includes supercached_input_tokens and supercache_write_input_tokens as decimal strings when Supercache accounting data is available. Both fields are included when their value is zero.

input

Text input, plus image input (input_image) on multimodal models and inline PDF input (input_file) on every model. Audio, files referenced by file_id or file_url, and item references are not currently supported.

Minimum string length: 1
output
error
object | null
incomplete_details
object | null
max_output_tokens
integer | null
reasoning
object
text
object
store
boolean
temperature
number
top_p
number
parallel_tool_calls
boolean
tool_choice
tools
object[]
truncation
user
string | null
service_tier
enum<string>

The service tier Sail selected for this request, including when no tier was requested. The legacy request value standard is reported as balanced. Older stored responses may omit this field.

Available options:
asap,
balanced,
flex