星海智算开发文档

优化媒体提示词

接口参考来自当前平台公开协议。具体模型的模式和规格请在模型详情中确认。

POST/v1/media/prompt-optimizations

身份认证

bearerAuth
认证方式Bearer <token>

传入位置: header

请求头参数

X-Client-Request-Id?string

可选客户端关联值,只能包含可见 ASCII,最多 512 字节;不能替代服务端 requestId。

长度length <= 512
Idempotency-Key*string

必须与 clientRequestId 完全相同;网络结果未知时使用相同正文和相同键恢复。

长度8 <= length <= 128

请求正文

application/json

响应正文

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

{  "optimization": {    "createdAt": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z",    "generationMode": "string",    "noticeCodes": [      "string"    ],    "optimizationId": "string",    "optimizedPrompt": "string",    "originalPrompt": "string",    "outcome": "string",    "serviceKind": "string",    "status": "succeeded"  },  "requestId": "string"}