any way to use anthropic's models via google verte...
# ask-ai
c
any way to use anthropic's models via google vertex, azure or aws bedrock? in the python api docs, i can only see support for the official anthropic api.
t
Thanks for reaching out, Pushkar. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — quick answer: • You can use Anthropic’s Claude models via AWS Bedrock using LiveKit’s AWS plugin (example:
aws.LLM(model="anthropic.claude-3-5-sonnet-20240620-v1:0")
). • Anthropic models are not available via Google Vertex AI or Azure in LiveKit. Google/Vertex supports Gemini and Azure supports Azure OpenAI only. Would you like a short example of the plugin setup in Python or help picking the right Claude model ID for Bedrock? Sources: Amazon Bedrock LLM plugin guide | LiveKit Docs | Google AI and LiveKit | LiveKit Docs | Azure AI Services and LiveKit | LiveKit Docs | AWS AI and LiveKit | LiveKit Docs
c
Would you like a short example of the plugin setup in Python or help picking the right Claude model ID for Bedrock?
Sure, I'd like to use the claude-haiku-4-5-20251001 model
t
Thanks — I'll show a concise Python example using the AWS Bedrock plugin and explain where to put your Claude Haiku model ID. 1) Install the plugin
Copy code
uv add "livekit-agents[aws]~=1.2"
2) Set AWS credentials in your environment (or
.env
)
Copy code
AWS_ACCESS_KEY_ID=<your-aws-access-key-id>
AWS_SECRET_ACCESS_KEY=<your-aws-secret-access-key>
AWS_REGION=<your-aws-region>
3) Minimal Python example using a Bedrock Claude model
Copy code
from livekit.plugins import aws
from livekit.agents import AgentSession

session = AgentSession(
    llm=aws.LLM(
        model="anthropic.claude-haiku-4-5-20251001:0",  # replace with exact Bedrock model id if different
        temperature=0.7,
        max_tokens=1024,
    ),
    # add tts, stt, turn_detection, etc. as needed
)

# use session.run(...) or your existing agent flow to invoke the model
Note: Bedrock model IDs typically follow the pattern used in the example above (provider prefix + model name + version). Please confirm the exact model identifier shown in your AWS Bedrock console for "claude-haiku-4-5-20251001" and replace the
model
value if AWS lists a different string. Would you like me to provide a short example that sends a prompt and prints the response using
session.run(...)
? Sources: AWS AI and LiveKit | LiveKit Docs | Amazon Bedrock LLM plugin guide | LiveKit Docs