Playground Chat

Playground chat completion

Creates a chat completion in the playground. Requires ai.operate or ai.manage permission. Uses the same request/response format as the API key chat completion endpoint.

post/api/v1/{workspaceID}/playground/chat/completions

Request

  • Base URL
    https://ai.liara.ir
  • URL
    https://ai.liara.ir/api/v1/{workspaceID}/playground/chat/completions
  • Auth
    API key in header Authorization

Path parameters

workspaceIDstring required

The workspace ID

Request body

modelstring required

Model ID

streamboolean
temperaturenumber
max_tokensinteger
toolsobject[]

Response

Successful response (non-streaming)

object required

Changes

No recorded changes to this operation across all 4 revisions of this API.