Quick Start
After reading this guide, you will be able to make your first API call.
Step 1: Register and Log In
- Open the home page and click Register.
- Enter your email and password to complete registration and log in.
Step 2: Top Up
- Go to the recharge page.
- Choose a payment method and complete the top-up. Your balance updates in real time — see the balance display in the top-right corner.
Step 3: Create an API Key
- Go to API Key Management.
- Click "New API Key" and the system will generate a key starting with
sk-. - Copy and store it safely. The full key is only shown once at creation.
Step 4: Make Your First Call
Endpoint (Base URL):
https://api.tvtapi.com/v1
Test with curl (replace the model name with one you picked from the model marketplace):
curl https://api.tvtapi.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model-name",
"messages": [{"role": "user", "content": "Hello"}]
}'
choices[0].message.content in the returned JSON is the model's reply.
Troubleshooting
- 401 error: the key is wrong or has been deleted. See Error Code Reference.
- Insufficient balance: please top up first.
- Model not found: the model name is misspelled. Copy the exact name from the model marketplace.