Path Parameters
The job_id returned when you submitted the batch inference job
Query Parameters
The format to download results in:
csv- CSV file (zipped for compression)parquet- Parquet filejson- JSON object
Whether to include the input prompts in the results
Whether to include the cumulative log probabilities in the results
Headers
Your Sutro API key using Key authentication scheme.Format:
Key YOUR_API_KEYExample: Authorization: Key sk_abc123...Response
Returns a downloadable file in the requested format.Parquet
- Returns a single Parquet file
- Recommended for large datasets
CSV
- Returns a ZIP file containing a CSV
- File is compressed for efficient transfer
- Column names:
inputs,{job_id}outputs,cumulative_logprobs(if requested)
JSON
- Returns a JSON object
- Best for smaller datasets
Structured Outputs
When using structured outputs (by providing ajson_schema when creating the job), the outputs will be JSON strings that conform to your specified schema.
Standard Models
For non-reasoning models, the output will be a JSON string following your schema:Reasoning Models
For reasoning models (like o1), the output includes both the structured content and the reasoning process:content: The structured output following your JSON schema (can be a text string or JSON string containing an object matching your schema)reasoning_content: The model’s step-by-step reasoning process (string)
json.loads or similar on each output JSON, ie json.loads(outputs[0]) to transform from a string to a dict (or equivalent in other languages).
Code Examples
Notes
- Results can only be retrieved for jobs that have completed successfully
- The order of results matches the order of the original inputs
- CSV format: outputs are in a column named after the job_id
- Parquet format uses zstd compression internally
- For very large datasets (>100MB), Parquet is recommended
- CSV files are automatically zipped to reduce download size