星海智算开发文档

Optimize a media prompt

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

POST/v1/media/prompt-optimizations

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Header Parameters

X-Client-Request-Id?string

Optional visible ASCII client correlation value, at most 512 bytes. It never replaces the server requestId.

Lengthlength <= 512
Idempotency-Key*string

Must exactly equal clientRequestId. Replay the same body with the same key after an uncertain network result.

Length8 <= length <= 128

Request Body

application/json

Response Body

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"}