Step 1: Claim Your Free Trial
Go to the free trial page and enter your email address. You'll receive a 6-digit verification code. Enter it, and your API key will be displayed instantly — along with 100K free tokens.
No credit card. No Chinese phone number. No VPN.
Step 2: Install the OpenAI SDK
DeepSeek's API is compatible with the OpenAI SDK. Install it with one command:
pip install openaiFor Node.js:
npm install openaiStep 3: Make Your First API Call
Replace YOUR_API_KEY with the key from your free trial:
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.aicreditsapi.com/v1"
)
response = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{"role": "user", "content": "Explain quantum computing in one sentence."}]
)
print(response.choices[0].message.content)Step 4: Understanding Your Usage
Each API call consumes tokens. A typical chat completion uses 500-2000 tokens. With your 100K free tokens, you can make roughly 50-200 API calls. Check your balance anytime on the order lookup page.
Common Errors and Fixes
401 Unauthorized: Check that your API key is correct and hasn't expired.
429 Rate Limited: You're sending too many requests. Add a 1-second delay between calls, or upgrade to a paid plan with multi-key failover.
Connection Error: Ensure you're using the correct base_url: https://api.aicreditsapi.com/v1
Ready to Go Further?
Once you've tested the API with your free tokens, explore what you can build:
- AI Chatbot: Use the chat completions endpoint with system prompts
- Grammar Checker: Feed text with a "fix grammar" system prompt
- Code Assistant: Ask DeepSeek to explain, debug, or refactor code
- Content Generator: Generate blog posts, emails, or documentation
Need more tokens? Plans start at $9 for 4.5M credits — one of the best per-credit prices available.