View Source AWS.BedrockRuntime (aws-elixir v1.0.0)

Describes the API operations for running inference using Bedrock models.

Summary

Functions

Invokes the specified Bedrock model to run inference using the input provided in the request body.

Invoke the specified Bedrock model to run inference using the input provided.

Functions

Link to this function

invoke_model(client, model_id, input, options \\ [])

View Source

Invokes the specified Bedrock model to run inference using the input provided in the request body.

You use InvokeModel to run inference for text models, image models, and embedding models.

For more information, see Run inference in the Bedrock User Guide.

For example requests, see Examples (after the Errors section).

Link to this function

invoke_model_with_response_stream(client, model_id, input, options \\ [])

View Source

Invoke the specified Bedrock model to run inference using the input provided.

Return the response in a stream.

For more information, see Run inference in the Bedrock User Guide.

For an example request and response, see Examples (after the Errors section).