TokenLX

TokenLx Developer Docs

TokenLx is a unified AI gateway with OpenAI-style API compatibility. It supports text, image, video, and embedding capabilities across multiple models.

Overview

  • Base URL: https://api.tokenlx.ai/v1
  • Protocol: HTTPS + JSON (OpenAI-compatible)
  • Auth: Bearer API Key (create in console)
  • Response format: OpenAI-compatible

Quick Start

1) Create an API Key

Create and manage your API key in the console "API Keys" page. The key is only shown once at creation — save it securely.

2) Make Your First Request

curl https://api.tokenlx.ai/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen-plus",
    "messages": [{"role": "user", "content": "Hello"}],
    "stream": false
  }'