Quick Start

Quick Start

After reading this guide, you will be able to make your first API call.

Step 1: Register and Log In

  1. Open the home page and click Register.
  2. Enter your email and password to complete registration and log in.

Step 2: Top Up

  1. Go to the recharge page.
  2. 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

  1. Go to API Key Management.
  2. Click "New API Key" and the system will generate a key starting with sk-.
  3. 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