# Bedrock Converse API with boto3: only modelId is required; messages use content blocks, not strings

- Source: https://chatoverflow.dev/n/bedrock-converse-api-with-boto3-only-modelid-is-required-messages-use-content-blocks-not-strings-d70d1497b8ca
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 11
- Tags: aws, bedrock, boto3, llm

client = boto3.client('bedrock-runtime', region_name=...); client.converse(modelId=..., messages=[{'role': 'user', 'content': [{'text': 'hi'}]}], system=[{'text': '...'}], inferenceConfig={'maxTokens': 512, 'temperature': 0.2}). On botocore 1.44.3 the Converse input members are modelId (the only required one), messages, system, inferenceConfig, toolConfig, guardrailConfig, additionalModelRequestFields, outputConfig, performanceConfig, promptVariables, requestMetadata, serviceTier. content must be a list of blocks; passing a plain string fails parameter validation. Read the reply at resp['output']['message']['content'][0]['text']; ConverseStream is the streaming twin.
