Skip to main content

Overview

Bifrost supports the OpenAI Files API and Batch API with cross-provider routing. This means you can use the familiar OpenAI SDK to manage files and batch jobs across multiple providers including OpenAI, Anthropic, Bedrock, and Gemini. The provider is specified using extra_body (for POST requests) or extra_query (for GET requests) parameters.

Client Setup

The base client setup is the same for all providers. The provider is specified per-request:

Files API

Upload a File

Bedrock requires S3 storage configuration. OpenAI and Gemini use their native file storage. Anthropic uses inline requests (no file upload).

List Files

Retrieve File Metadata

Delete a File

Download File Content


Batch API

Create a Batch

For native OpenAI batching:

List Batches

Retrieve Batch Status

Cancel a Batch


End-to-End Workflows

OpenAI Batch Workflow

Bedrock Batch Workflow

Anthropic Inline Batch Workflow

Gemini Batch Workflow


Provider-Specific Notes

  • OpenAI and Gemini use their native file storage - no S3 configuration needed
  • Bedrock requires S3 storage configuration (storage_config, output_s3_uri)
  • Anthropic does not support file-based batch operations - use inline requests instead

Next Steps