API Setup Guide
Step-by-step instructions for OpenAI and Anthropic accounts
⚠️ Important: These Services Cost Money
Both OpenAI and Anthropic charge for API usage. You are responsible for all costs incurred. Always set spending limits and monitor your usage regularly.
OpenAI API Setup
Follow these steps to create an OpenAI account and set up payment with spending controls.
Step 1: Create an OpenAI Account
- Visit platform.openai.com/signup
- Sign up with your email address or Google/Microsoft account
- Verify your email address if prompted
- Complete any additional verification steps (may include phone verification)
Step 2: Set Up Billing
- Once logged in, click on your profile icon in the top right
- Navigate to Settings → Billing
- Click Add payment method
- Enter your credit/debit card details
- Choose your billing preferences (automatic recharge or manual)
Step 3: Set Spending Limits (CRITICAL)
- In the Billing section, look for Usage limits or Spending limits
- Click Set up usage limits
- Set a Hard limit – this is the maximum amount you can be charged per month
- Start conservatively (e.g., $10-20/month)
- Once API requests hit this limit, they will be rejected
- Optionally set a Soft limit to receive email warnings before hitting your hard limit
- Enable email notifications for usage alerts
Step 4: Generate an API Key
- In your OpenAI dashboard, navigate to API Keys (left sidebar)
- Click Create new secret key
- Give your key a descriptive name (e.g., "FreeITSM Production")
- Copy the key immediately – you won't be able to see it again
- Store the key securely (password manager recommended)
- Never commit API keys to version control or share them publicly
✓ FreeITSM stores your API keys securely
Good news: FreeITSM is designed with security in mind. Your API keys are encrypted using AES-256-GCM encryption and stored securely in the database – never in source code, never in configuration files, never in version control. You only need to enter your keys once during initial setup, and the system handles the rest securely.
Step 5: Monitor Your Usage
- Regularly check your usage dashboard at platform.openai.com/usage
- Review which models are consuming the most tokens
- Adjust your spending limits as needed based on actual usage patterns
Pricing Information: Visit openai.com/api/pricing for current pricing details. Different models (GPT-4, GPT-3.5, embeddings) have different costs per token.
Anthropic API Setup
Follow these steps to create an Anthropic account and configure billing with spending controls.
Step 1: Create an Anthropic Account
- Visit console.anthropic.com
- Click Sign Up or Get Started
- Sign up with your email address or Google account
- Verify your email address
- Complete the onboarding questionnaire if presented
Step 2: Set Up Billing
- In the Anthropic Console, navigate to Settings → Billing
- Click Add payment method or Set up billing
- Enter your credit/debit card information
- Confirm your billing details
Step 3: Configure Spending Limits (CRITICAL)
- In the Billing section, look for Budget or Spending limits
- Set a Monthly budget cap
- Start with a conservative amount (e.g., $10-20/month)
- Once this limit is reached, API requests will be rejected
- Configure Budget alerts to receive notifications at percentage thresholds (e.g., 50%, 75%, 90%)
- Enable email notifications for all budget alerts
Step 4: Generate an API Key
- In the Anthropic Console, navigate to API Keys (left sidebar or Settings)
- Click Create Key or Generate API Key
- Give your key a meaningful name (e.g., "FreeITSM Production")
- Copy the API key immediately – it won't be shown again
- Store the key securely in a password manager
- Never expose API keys in code repositories or public spaces
✓ FreeITSM stores your API keys securely
Good news: FreeITSM is designed with security in mind. Your API keys are encrypted using AES-256-GCM encryption and stored securely in the database – never in source code, never in configuration files, never in version control. You only need to enter your keys once during initial setup, and the system handles the rest securely.
Step 5: Monitor Your Usage
- Check your usage dashboard regularly in the Anthropic Console
- Review the Usage section to see API calls and token consumption
- Track which Claude models are being used most frequently
- Adjust budget limits based on your actual usage patterns
Pricing Information: Visit anthropic.com/pricing for current pricing details. Different Claude models (Claude 3.5 Sonnet, Opus, Haiku) have different costs per token.
Best Practices for API Cost Management
- Start Small: Begin with low spending limits ($10-20/month) and increase gradually
- Monitor Daily: Check your usage dashboards at least once per day during initial setup
- Set Multiple Alerts: Configure notifications at 50%, 75%, and 90% of your budget
- Test in Stages: Test with small workloads before deploying to production
- Rotate Keys: Periodically generate new API keys and revoke old ones
- Separate Keys: Use different API keys for development and production environments
- Review Regularly: Audit your API usage monthly to identify optimization opportunities
- Understand Token Costs: Learn how different models and operations consume tokens differently
Final Reminder
YOU are responsible for all costs incurred through API usage. Setting spending limits is not optional – it's essential. If you're uncomfortable with these responsibilities, do not proceed with using FreeITSM until you've consulted someone with API cost management experience.