Getting Started as an Inference Provider
This guide walks you through setting up your organization as an Inference Provider in 15 minutes.
Prerequisites
Before starting:
- A LangMart account (sign up at https://langmart.ai)
- At least one provider API key (OpenAI, Anthropic, Groq, etc.)
- Understanding of your billing model (org-pays vs member-pays)
Quick Start Overview
| Step | Time | Description |
|---|---|---|
| 1. Create Organization | 2 min | Set up your provider organization |
| 2. Add Connections | 5 min | Configure provider API keys |
| 3. Configure Billing | 3 min | Set up payment model |
| 4. Invite Members | 3 min | Add your first users |
| 5. Test Access | 2 min | Verify everything works |
Step 1: Create Your Organization
Via Web Interface
- Log in to your LangMart account
- Navigate to Organizations in the sidebar
- Click Create Organization
- Fill in the details:
| Field | Example | Notes |
|---|---|---|
| Name | Acme AI Services | Visible to members |
| Description | AI model access for Acme teams | Optional |
| Billing Email | [email protected] | For invoices |
| Website | https://acme.com | Optional |
- Click Create
Via API
curl -X POST https://api.langmart.ai/api/organizations \
-H "Authorization: Bearer <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme AI Services",
"description": "AI model access for Acme teams",
"billing_email": "[email protected]"
}'Step 2: Add Provider Connections
Connections define how your organization accesses AI model providers.
Adding Your First Connection
- Go to Connections page
- Click Add Connection
- Select provider (e.g., OpenAI)
- Configure:
| Field | Value | Description |
|---|---|---|
| Name | Team OpenAI | Descriptive name |
| Provider | OpenAI | Model provider |
| API Key | sk-... | Your provider API key |
| Scope | Organization | Share with all members |
| Billing Mode | Org Pays | Organization covers costs |
- Click Test Connection to verify
- Click Save
Recommended Connections
For a full-featured provider setup, add connections for:
| Provider | Models | Use Case |
|---|---|---|
| OpenAI | GPT-4o, GPT-4-turbo | General purpose, coding |
| Anthropic | Claude 3.5 Sonnet | Long context, analysis |
| Groq | Llama 3.3-70B | Fast inference, cost-effective |
Via API
curl -X POST https://api.langmart.ai/api/connections \
-H "Authorization: Bearer <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"name": "Team OpenAI",
"provider_id": "openai",
"endpoint_url": "https://api.openai.com/v1",
"api_key": "sk-your-openai-key",
"scope": "organization",
"billing_mode": "org_pays"
}'Step 3: Configure Billing
Add Organization Credits
For org-pays connections, you need credits:
- Go to Organization > Billing
- Click Add Credits
- Enter amount (e.g., $100)
- Complete payment
Set Spending Limits
Prevent runaway costs:
# Set organization monthly limit
curl -X PUT https://api.langmart.ai/api/organizations/<org_id> \
-H "Authorization: Bearer <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"spending_limit_monthly": 1000.00
}'Configure Default Member Limits
New members automatically get these limits:
| Limit Type | Recommended Start | Adjust Based On |
|---|---|---|
| Daily | $5 | Member's typical usage |
| Monthly | $50 | Department budget |
Step 4: Invite Members
Enable Join Requests (Recommended)
Allow users to request access:
- Go to Organization > Settings
- Enable Allow Join Requests
- Optionally enable Auto-Approve for trusted domains
Direct Invitations
Invite specific users:
- Go to Organization > Members
- Click Invite Member
- Enter email address
- Select role:
| Role | Permissions |
|---|---|
| Member | Use models, view own usage |
| Admin | Manage members, view all usage |
| Owner | Full control, billing access |
- Click Send Invitation
Via API
curl -X POST https://api.langmart.ai/api/organizations/<org_id>/members/invite \
-H "Authorization: Bearer <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"role": "member"
}'Step 5: Test Member Access
Test as Admin
Verify models are accessible:
# Using your admin API key
curl -X POST https://api.langmart.ai/v1/chat/completions \
-H "Authorization: Bearer <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4o",
"messages": [{"role": "user", "content": "Hello, testing!"}]
}'Test as Member
- Have a member log in
- Go to Chat interface
- Select an organization model
- Send a test message
Verify Usage Tracking
After tests, check:
- Organization > Usage - See aggregate usage
- Analytics > Request Logs - View individual requests
Configuration Summary
After completing setup, you should have:
| Component | Status | Notes |
|---|---|---|
| Organization | Created | With name and billing email |
| Connections | 1+ added | At least one org-scoped connection |
| Credits | Funded | For org-pays connections |
| Limits | Set | Organization and member limits |
| Members | Invited | At least one test member |
Next Steps
Expand Your Service
- Add more connections: Support additional providers
- Create connection pools: High availability setup
- Configure PII detection: Enable data protection
Manage at Scale
- Bulk invitations: Import member lists
- Usage reports: Export for billing/compliance
- Alerts: Set up spending notifications
Advanced Configuration
- Organization Setup - Advanced settings
- Billing Models - Detailed billing configuration
- Connection Pools - Load balancing and failover
- Usage Analytics - Monitoring and reporting
Troubleshooting
Connection Test Failed
| Issue | Solution |
|---|---|
| Invalid API key | Verify key is correct and has permissions |
| Rate limited | Wait and retry, or check provider limits |
| Network error | Check endpoint URL is correct |
Member Can't Access Models
| Issue | Solution |
|---|---|
| No organization models | Verify connection scope is "organization" |
| Exceeded limit | Check and increase member limits |
| Not approved | Approve the member's join request |
Credits Not Deducted
| Issue | Solution |
|---|---|
| Using personal credits | Check connection billing mode is "org_pays" |
| Member billing mode | Some connections may be member-pays |
Support
Need help? Contact us:
- Email: [email protected]
- Documentation: Full Provider Guide
- Troubleshooting: Common Issues