{"openapi":"3.1.0","info":{"title":"MiniMax H3 API Relay","version":"1.0.0","description":"H3 asynchronous video task relay with per-member API keys."},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"}},"schemas":{"CreateJob":{"type":"object","required":["mode","prompt"],"properties":{"mode":{"type":"string","enum":["t2v","i2v","flf","r2v"]},"prompt":{"type":"string","maxLength":8000},"prompt_mode":{"type":"string","enum":["raw","structured"],"default":"raw"},"width":{"type":"integer","default":768},"height":{"type":"integer","default":448},"duration":{"type":"number","minimum":4,"maximum":15},"steps":{"type":"integer","minimum":4,"maximum":40},"seed":{"type":"integer","minimum":0},"first_image_b64":{"type":"string"},"last_image_b64":{"type":"string"},"reference_video_b64":{"type":"string"},"subject_image_b64":{"type":"string"},"use_reference_audio":{"type":"boolean"},"preserve_original_audio":{"type":"boolean"},"ref_image_size":{"type":"string","enum":["match","max"]}}}}},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"paths":{"/v1/usage":{"get":{"summary":"Current member or team usage","responses":{"200":{"description":"Usage summary"}}}},"/v1/calls":{"get":{"summary":"Generation task call records in the current scope","responses":{"200":{"description":"Task metadata without prompts"}}}},"/health":{"get":{"security":[],"summary":"Service health","responses":{"200":{"description":"Healthy"}}}},"/v1/models":{"get":{"summary":"Supported generation modes","responses":{"200":{"description":"Mode list"}}}},"/v1/me":{"get":{"summary":"Current API key owner","responses":{"200":{"description":"Account"}}}},"/v1/status":{"get":{"summary":"Queue and worker status","responses":{"200":{"description":"Status"}}}},"/v1/jobs":{"get":{"summary":"List jobs owned by this API key","responses":{"200":{"description":"Job list"}}},"post":{"summary":"Create a video generation job","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateJob"}}}},"responses":{"201":{"description":"Job created"}}}},"/v1/jobs/{job_id}":{"get":{"summary":"Get job state and progress_percent","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Job"}}},"delete":{"summary":"Cancel a queued or running job","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Cancelled job"}}}},"/v1/jobs/{job_id}/result":{"get":{"summary":"Download the completed MP4","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"MP4 result","content":{"video/mp4":{}}}}}}}}