星海智算开发文档

Create media

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

POST/v1/media/generations

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

Strongly recommended stable business key. Required for safe replay after an unknown result. Reusing a key with a different canonical request conflicts.

Request Body

application/json

Public video creation uses top-level fields, not the deployed application's params/mediaSpec envelope. H3 requires generationMode/resolutionTier/orientation/seconds, only 768p, 5..15 seconds, max 7000 characters. t2v has no inputs; i2v requires first image; first_last_frame_video requires first+last; universal requires typed references. Per-model required/conditional fields remain in mediaSpecContract. Do not send H3 fps, frames, width/height, steps or runtime settings.

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

application/json

{  "id": "job_example",  "jobId": "job_example",  "jobUrl": "https://api.example.test/v1/jobs/job_example?model=minimax-h3",  "model": "minimax-h3",  "requestId": "req_example",  "serviceKind": "video_generation",  "stage": "queued",  "status": "queued"}