模型管理

复制模型配置。name 与源模型一致,凭证从已存记录复制,不接受客户端重传。

post/models/{id}/copy

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/models/{id}/copy
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

源模型ID

Request body

display_namestring required

Display name of the new copy; the upstream model identifier stays unchanged.

Response

复制的模型

successboolean

Example response

{
  "success": true
}

Changes