---
title: "Invoke model with streaming (Bedrock format)"
method: POST
path: "/bedrock/model/{modelId}/invoke-with-response-stream"
tags: ["Bedrock Integration"]
---

# Invoke model with streaming (Bedrock format)

`POST /bedrock/model/{modelId}/invoke-with-response-stream`

Invokes a model with streaming using AWS Bedrock InvokeModelWithResponseStream API format.

## Path parameters

- `modelId` string, required

## Request body

- BedrockInvokeRequest — Raw model invocation request. The body format depends on the model provider. For Anthropic models, use Anthropic format. For other models, use their native format.
  - `prompt` string — Text prompt to complete
  - `max_tokens` integer
  - `max_tokens_to_sample` integer — Anthropic-style max tokens
  - `temperature` number
  - `top_p` number
  - `top_k` integer
  - `stop` string[]
  - `stop_sequences` string[] — Anthropic-style stop sequences
  - `messages` object[] — For Claude 3 models
  - `system` union — System prompt (string or array of strings)
    - string
    - string[]
  - `anthropic_version` string

## Response `200`

Successful streaming response

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
