Skip to main content
The Prisma AIRS AI Gateway lets you run Bedrock batch jobs without any manual S3 wrangling—simply upload an OpenAI-format .jsonl file and the AI Gateway converts it on-the-fly to the Bedrock format. Supported batch endpoints:
  • Chat Completions (/v1/chat/completions)
  • Embeddings (/v1/embeddings)
This is the most efficient way to
  • Test your data with different foundation models
  • Perform A/B testing with different foundation models
  • Perform batch inference with different foundation models
The AI Gateway supports two modes on Bedrock:

Before You Start

  1. AI Gateway API key ($PORTKEY_API_KEY).
  2. Bedrock credentials — either an AI Gateway Provider from Model Catalog or explicit AWS keys (aws_access_key_id, aws_secret_access_key, aws_region, optional aws_session_token).
  3. S3 bucket with read/write access for inputs and outputs.
  4. IAM roles (see Permissions & IAM below).
  5. Optional: a AI Gateway File (input_file_id) — required only when you set completion_window:"immediate" (gateway-batch mode).

Using Bedrock Batch API through the AI Gateway

Create Batch Job

List Batch Jobs

Get Batch Job Details

Get Batch Output

List Batch Jobs

Cancel Batch Job

Information about Permissions and IAM Roles

These are the minimum permissions required to use the Bedrock Batch APIs. (Bedrock Docs](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-permissions.html))
These are the minimum permissions required to use the Bedrock Batch APIs.Trust relationship:
Permission Policy:

Defaults & Limits (Bedrock Native)

Portkey-Batch mode inherits the Gateway defaults (25 req / 5 s) and retries () per request.

Glossary


See Also

Last modified on September 15, 2026