Use the Anthropic SDK
Keep your Messages request. Change the base URL, API key, and model ID.
Use anthropic for Python or @anthropic-ai/sdk for Node. The same client can send your existing Messages requests to Gradiated.
Install
Messages
Choose an exact ID from models and pricing. This example uses the default service tier.
Stream output
Streaming returns text while the model is still generating it.
Call tools
Send tool definitions with the request. Your application validates the input and runs the selected tool.
Return each result in a tool_result block before you continue the conversation.
Check service tiers, model parameters, and retry behavior before deploying to production.