Before You Start
Get started with LaoZhang API in just 5 minutes. This guide shows how to:- Access 200+ AI models through a single unified API
- Use existing OpenAI SDK with minimal code changes
- Integrate with flexible payment options
Step 1: Create Account and Add Credits
Create Account
Sign Up
Visit LaoZhang API to create your accountNew accounts receive $0.05 test credits for API connectivity verification
Verify Email
- Enter your email address
- Create a secure password (8+ characters)
- Verify your email via the confirmation link
Access Console
Log in to your console dashboardYou’ll see:
- Account balance with test credits
- Usage statistics and history
- API key management
Add Credits
- Online Payment
- Cryptocurrency (USDT)
- Enterprise
- Navigate to billing page
- Select your preferred amount
- Complete payment
- Credits available instantly
Credit Information:
- Test credits for connectivity verification
- Instant credit delivery after payment
- Enterprise inquiries: support@laozhang.ai
Step 2: Get Your API Key
Generate Your API Key
- Use Default Key (Quickest)
- Create Custom Key
- Navigate to Token Management
- Locate your Default Token
- Click Copy to clipboard
Step 3: Make Your First API Call
Test Your Integration
- Online Playground (Recommended)
- cURL Command
Test instantly in the API Playground:
- Select a model (e.g.,
gpt-4o-mini) - Enter a test prompt: “Hello, introduce yourself”
- Click Send
Integration Configuration
Remember These Three Things
Complete Examples in Different Languages
- Python (Most Common)
- Node.js / TypeScript
- Curl / Command Line
Next Steps
Congratulations! You’ve successfully integrated LaoZhang API. Next you can:View API Documentation
Learn about complete API interface documentation
Explore Model List
View all supported AI models
Integrate into Apps
Integrate LaoZhang API into various tools
View Usage Statistics
Monitor usage in console
Common Questions Quick Reference
How to tell if integration is successful?
How to tell if integration is successful?
Three signs:
- API call returns normal results (no errors)
- Response time under 1 second
- Can see call records in console
How to choose the right model?
How to choose the right model?
Choose by scenario:Programming Development:
- First choice:
claude-sonnet-4-20250514 - Alternative:
deepseek-coder-v3
- First choice:
gpt-4o - Alternative:
claude-3.5-sonnet
- First choice:
gpt-4.1-mini - Alternative:
gemini-2.5-flash
- First choice:
deepseek-v3 - Alternative:
qwen-max
What if my API key is leaked?
What if my API key is leaked?
Immediate actions:
- Go to Token Management
- Revoke the compromised key immediately
- Generate a new API key
- Update the key in all your applications
- Always use environment variables
- Never hardcode keys in source code
- Set spending limits per key
- Rotate keys every 90 days
What happens when credits run out?
What happens when credits run out?
Options available:
- Add credits to your account via the billing page
- Switch to more cost-effective models (e.g.,
gpt-4o-mini,gemini-flash) - Optimize your usage with
max_tokenslimits
- Monitor usage in the console dashboard
- Set budget alerts
- Use streaming for better user experience
What payment methods are supported?
What payment methods are supported?
Payment options:
- Credit/debit cards
- Cryptocurrency (USDT on TRC20, Solana)
- Wire transfer for enterprise accounts
Tip: Save your API key properly and check usage logs in the console regularly. Every request has message history for reasonable cost optimization.