Skip to content

API Docs Browser

Overview

The API Docs Browser provides in-console access to the complete API documentation for the Wuliang AI platform. It features a three-panel layout that lets you browse API interfaces, read detailed documentation, and reference error codes without leaving the console. This is especially useful during development when you need quick access to parameter definitions and response formats.

API Docs Browser overview

Prerequisites

  • A registered Wuliang AI account
  • Logged in to the console

Access the API Docs Browser

  1. In the console sidebar, navigate to Development > API Docs.

    Navigate to API Docs

  2. The API Docs Browser loads with the three-panel layout.

    API Docs loaded

Interface Layout

The API Docs Browser uses a three-panel layout:

PanelPositionContent
Interface TreeLeftGrouped list of all API interfaces
Content PanelsRightOverview, Error Codes, or Interface Detail

Three-panel layout

Interface Tree

The left panel displays a hierarchical tree of all available API interfaces, organized by capability group:

  • Chat - Chat Completions, Messages (Anthropic Compatible)
  • Search - Search Completions
  • Images - Images Generations
  • Embeddings - Embeddings
  • Audio - Text-to-Speech, Speech-to-Text

Interface tree

  1. Click a group header to expand or collapse the group.

    Expand group

  2. Click an interface name to open its detailed documentation in the right panel.

    Select interface

Overview Panel

The Overview panel provides a high-level summary of all API capabilities available on the platform.

  1. Click the Overview tab in the right panel area.

    Click Overview tab

  2. Review the summary of each API capability, including brief descriptions and links to detailed documentation.

    Overview content

The overview includes:

SectionDescription
Chat CompletionsText generation with multi-turn conversation support
MessagesAnthropic-compatible text generation endpoint
Search CompletionsWeb search-augmented text generation
Images GenerationsText-to-image generation
EmbeddingsText embedding generation for vector representations
AudioSpeech synthesis and transcription

Error Codes Panel

The Error Codes panel lists all global error codes used across the API, organized by HTTP status code.

  1. Click the Error Codes tab in the right panel area.

    Click Error Codes tab

  2. Browse the error codes table:

    HTTP StatusCodeDescription
    400INVALID_PARAMSInvalid request parameters
    401UNAUTHORIZEDInvalid or expired API Key
    403FORBIDDENAccess denied
    404MODEL_NOT_FOUNDModel not found or offline
    429RATE_LIMITRate limit exceeded
    500INTERNAL_ERRORInternal server error
    502UPSTREAM_ERRORUpstream model service error
    504GATEWAY_TIMEOUTRequest timeout

    Error codes table

  3. Each error code entry includes the error response format and troubleshooting suggestions.

    Error code detail

Interface Detail Panel

The Interface Detail panel shows the full documentation for a specific API interface.

  1. Select an interface from the left panel tree.

    Select interface from tree

  2. The right panel displays the complete documentation for the selected interface:

    Interface detail panel

Documentation Sections

Each interface detail includes the following sections:

Endpoint Information

  • HTTP method and URL path
  • Brief description of the endpoint

Endpoint information

Request Parameters

A table of all request parameters with their type, required status, and description:

ColumnDescription
ParameterThe parameter name
TypeData type (string, integer, boolean, array, object)
RequiredWhether the parameter is required
DescriptionDetailed explanation of the parameter

Request parameters table

Request Body

Example request body in JSON format:

Request body example

Response Format

Example response body in JSON format with field descriptions:

Response format example

Interface-Specific Error Codes

Error codes specific to this interface, in addition to the global error codes:

Interface error codes

Notes

  • The API Docs Browser is always accessible within the console, no separate browser tab needed.
  • Documentation is updated in real time as new API features are released.
  • Use the search functionality in the interface tree to quickly find specific endpoints.
  • All code examples can be copied directly from the documentation panels.