View Source AWS.BedrockRuntime (aws-elixir v0.14.0)

Describes the API operations for running inference using Bedrock models.

Link to this section 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.

Link to this section 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).