Skip to main content

Invoke Large Model Service

POST 

/v1/ai/:model/:path

When additional path segments are required to call a model, append the path parameter, for example v1/chat/completions. Refer to the documentation for each model for the exact path definitions.

Streaming Output (server-sent events)

When streaming output is enabled, explicitly set Accept: text/event-stream in the request header; otherwise the request will time out after 60 seconds.

Request

Path Parameters

    model anyrequired

    The code of the model to invoke. You can use any model group provided by the following platforms:
    hunyuan-exp: Hunyuan trial edition
    deepseek: Trial edition

    You can also specify any custom model group configured in the console.

    path stringrequired

    The request path defined by the model provider, for example v1/chat/completions

Body

required

Refer to the documentation of each model for the parameters required in the request body.

    object

Responses

Returned when the model call succeeds (the business result may still indicate an error)

Response Headers
  • X-Request-Id string

    Request ID

Schema
    property name* any
Loading...