WOX AI

WOX API

Connect to and use the WOX AI API

WOX API Documentation

Guides for connecting to the WOX AI API, calling models, and configuring popular clients

WOX provides a unified AI API gateway for the text, image, audio, embedding, reranking, and other model capabilities currently available on the platform. Model availability, supported parameters, and pricing are determined by the current information on the Models and Pricing page and by API responses.

Get Started

  1. Sign in to WOX and create a key on the API Keys page.
  2. Select an available model ID on the Models and Pricing page.
  3. Select an available API route and send a request with Authorization: Bearer YOUR_API_KEY.
  4. Handle timeouts, upstream errors, 429 responses, and retries in production.

API Keys are sensitive credentials. Do not commit them to a repository, write them to public logs, or expose them in untrusted clients such as browser applications.

API Endpoints

All of the following endpoints use the OpenAI-compatible /v1 path:

RouteBase URL
Defaulthttps://api.wox.lol/v1
CN2https://api.cn2.wox.lol/v1
GIAhttps://api.gia.wox.lol/v1

Route availability and details may change. Refer to the current information on the WOX platform. The examples in this documentation use https://api.wox.lol/v1 by default.

Example Request

curl https://api.wox.lol/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL_ID",
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'

Replace YOUR_API_KEY and YOUR_MODEL_ID with the values from your account. Different models may use different endpoints or parameters; do not assume that every model supports the same capabilities.

Documentation Guide

Usage Requirements

When calling the WOX API, you must follow the User Agreement, the Privacy Policy, the applicable policies of the selected upstream provider, and local laws. Model output may be inaccurate or incomplete; validate it before using it in production.