All Products
Search
Document Center

Platform For AI:Debug a service online

Last Updated:Apr 01, 2026

After deploying a service on Elastic Algorithm Service (EAS), use the online debugging feature in the PAI console to send test requests and inspect responses without writing any code.

Not all services support online debugging. For ComfyUI and SDWebUI, only the Standard Edition supports this feature. If your service type does not support online debugging, use the service endpoint directly with a REST client. See Service invocation methods for details.

Prerequisites

Before you begin, make sure that you have:

Send a test request

  1. Log on to the PAI console and select a region.

  2. Select a workspace, then click Elastic Algorithm Service (EAS).

  3. On the Inference Service tab, find your service and click image > Online Debugging in the Actions column.

  4. On the online debugging page, configure the following request parameters:

    ParameterDescription
    MethodThe HTTP method. Usually POST or GET.
    URI of the request (URL)The base URL is auto-populated. Append the specific API operation path required by your model (for example, /v1/chat/completions). An incorrect path returns a 404 Not Found error.
    Request header (Headers)The Authorization token is auto-populated. No changes are needed in most cases.
    Request body (Body)The request payload. Must match the format required by your model's API. An incorrect format returns a 400 Bad Request or 500 Internal Server Error error.
    Important

    The URL path and request body format depend on the model you deployed. Refer to the model's API documentation to construct them correctly.

  5. Send the request. A successful response displays the model output. If the request fails, check the HTTP status code and error message in the response — the most common causes are an incorrect URL path or a malformed request body.

Example: test a vLLM-deployed model

The following example tests the chat completions API for a Qwen2.5-7B-Instruct model service deployed with vLLM.

Request configuration:

ParameterValue
MethodPOST
URI of the request (URL)http://***********/v1/chat/completions (append /v1/chat/completions to the auto-populated base URL)

Request body:

{
    "model": "Qwen2.5-7B-Instruct",
    "messages": [
        {
            "role": "user",
            "content": "What is the capital of Canada?"
        }
    ]
}

Result:

image

FAQ

How do I find the correct URL path and request body format?

The correct URL path and request body depend on the model you deployed. See Construct requests for typical scenarios for model-specific examples.

Next steps