Use AWS Bedrock
Attach Amazon Bedrock permissions to a user or role
-
Select Users or Roles and then select your user or role.
-
In the Permissions tab, choose Add permissions and then choose Add AWS managed policy. Choose the AmazonBedrockLimitedAccess AWS managed policy.
References:
- https://docs.aws.amazon.com/bedrock/latest/userguide/getting-started-api.html#gs-api-br-permissions
- https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AmazonBedrockLimitedAccess.html
Bedrock Model pricing details
Anthropic
Ireland (eu-west-1)
Geo and In-region Cross-region Inference
| Anthropic models | Price per 1,000 input tokens | Price per 1,000 output tokens |
|---|---|---|
| Claude Sonnet 4 | $0.003 | $0.015 |
| Claude 3.7 Sonnet | $0.003 |
$0.015 |
| Claude 3.5 Sonnet | $0.003 |
$0.015 |
A typical RoostGPT Token Usage range across different test-types (as observed with sample tests)
| Test Type | Input Tokens | Output/Completion Tokens | Price per test |
| Unit (per Java method) | 2500-10000 | 5000-20000 | $0.08 - $0.33 |
| API Test (Swagger) - Rest Assured | 2000-5000 | 5000-10000 | $0.081 - $0.165 |
| API Test (Swagger) - Postman | 2000-5000 | 5000-10000 | $0.081 - $0.165 |
| Functional Test | 15000-50000 | 10000-20000 | $0.195 - $0.45 |
Note:
- RoostGPT Hosted Stack (with DB) caches the AI response and avoids repeat calls to AI model, under identical circumstances
- RoostGPT CLI and VSCode Extension, however do not avail any cache benefit
- Usage of AWS Knowledge Base can incur additional costs
References: