
    +j}                         S SK Jr  S SKJr  S SKJrJr   " S S\5      r " S S\5      r " S S	\5      r	 " S
 S\
\5      r " S S\
\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      rg)    )Enum)Optional)	BaseModelFieldc                   F    \ rS rSr% \" SSS9r\\S'   \" SSS9r\	\S'   Sr
g	)
MinimaxBaseResponse   .z?Status code. 0 indicates success, other values indicate errors.descriptionstatus_codez*Specific error details or success message.
status_msg N)__name__
__module____qualname____firstlineno__r   r   int__annotations__r   str__static_attributes__r       </home/wildlama/comfy/ComfyUI/comfy_api_nodes/apis/minimax.pyr   r      s2    UK  EJ r   r   c                       \ rS rSr% \" SSS9r\\   \S'   \" SSS9r	\\   \S'   \" SSS9r
\\   \S	'   \" SS
S9r\\   \S'   \" SSS9r\\   \S'   \" SSS9r\\   \S'   \" SSS9r\\   \S'   Srg)File   NzFile size in bytesr
   bytesz4Unix timestamp when the file was created, in seconds
created_atzThe URL to download the videodownload_urlz$The backup URL to download the videobackup_download_urlzUnique identifier for the filefile_idzThe name of the filefilenamezThe purpose of using the filepurposer   )r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r   r   r   r   r   r      s     3GHE8C=H %P!J  #(9#L(3-  */@*#  #45UVGXc]V#D6LMHhsmM"45TUGXc]Ur   r   c                   *    \ rS rSr% \\S'   \\S'   Srg)MinimaxFileRetrieveResponse"   	base_respfiler   N)r   r   r   r   r   r   r   r   r   r   r   r$   r$   "   s    ""
Jr   r$   c                   0    \ rS rSrSrSrSrSrSrSr	Sr
S	rg
)MiniMaxModel'   zT2V-01-DirectorzI2V-01-DirectorzS2V-01zI2V-01zI2V-01-livezT2V-01zMiniMax-Hailuo-02r   N)r   r   r   r   T2V_01_DirectorI2V_01_DirectorS2V_01I2V_01I2V_01_liveT2V_01	Hailuo_02r   r   r   r   r)   r)   '   s%    'O'OFFKF#Ir   r)   c                   (    \ rS rSrSrSrSrSrSrSr	g)	Status61   Queueing	Preparing
ProcessingSuccessFailr   N)
r   r   r   r   r5   r6   r7   r8   r9   r   r   r   r   r3   r3   1   s    HIJGDr   r3   c                   n    \ rS rSr% \\S'   \" SSS9r\\	   \S'   \" SSS9r
\\S	'   \" SS
S9r\	\S'   Srg)MinimaxTaskResultResponse9   r&   NznAfter the task status changes to Success, this field returns the file ID corresponding to the generated video.r
   r    .zTask status: 'Queueing' (in queue), 'Preparing' (task is preparing), 'Processing' (generating), 'Success' (task completed successfully), or 'Fail' (task failed).statuszThe task ID being queried.task_idr   )r   r   r   r   r   r   r   r    r   r   r=   r3   r>   r   r   r   r   r;   r;   9   sV    """ EGXc]   xFG  *FGGSGr   r;   c                   R    \ rS rSr% \" SSS9r\\   \S'   \" SSS9r	\\   \S'   Sr
g)	SubjectReferenceItemF   Nz6URL or base64 encoding of the subject reference image.r
   imagezCURL or base64 encoding of the mask for the subject reference image.maskr   )r   r   r   r   r   rB   r   r   r   rC   r   r   r   r   r@   r@   F   s:     RE8C=   YD(3- r   r@   c                      \ rS rSr% \" SSS9r\\   \S'   \" SSS9r	\\   \S'   \" SS	S9r
\\S
'   \" SSSS9r\\   \S'   \" SSS9r\\   \S'   \" SSS9r\\\      \S'   \" SSS9r\\   \S'   \" SSS9r\\   \S'   Srg)MinimaxVideoGenerationRequestP   NzROptional. URL to receive real-time status updates about the video generation task.r
   callback_urlzpURL or base64 encoding of the first frame image. Required when model is I2V-01, I2V-01-Director, or I2V-01-live.first_frame_image.zeRequired. ID of model. Options: T2V-01-Director, I2V-01-Director, S2V-01, I2V-01, I2V-01-live, T2V-01modelzsDescription of the video. Should be less than 2000 characters. Supports camera movement instructions in [brackets].i  )r   
max_lengthpromptTzkIf true (default), the model will automatically optimize the prompt. Set to false for more precise control.prompt_optimizerzzOnly available when model is S2V-01. The model will generate a video based on the subject uploaded through this parameter.subject_referencez*The length of the output video in seconds.durationztThe dimensions of the video display. 1080p corresponds to 1920 x 1080 pixels, 768p corresponds to 1366 x 768 pixels.
resolutionr   )r   r   r   r   r   rG   r   r   r   rH   rI   r)   rK   rL   boolrM   listr@   rN   r   rO   r   r   r   r   rE   rE   P   s   "'h#L(3-  (- G(x}   {E<  " JFHSM 
 (- B(htn  ?D Q?x%9 :;  $@Hhsm  !& K!J r   rE   c                   8    \ rS rSr% \\S'   \" SSS9r\\S'   Sr	g)	MinimaxVideoGenerationResponset   r&   .z7The task ID for the asynchronous video generation task.r
   r>   r   N)
r   r   r   r   r   r   r   r>   r   r   r   r   r   rS   rS   t   s    ""RGS r   rS   N)enumr   typingr   pydanticr   r   r   r   r$   r   r)   r3   r;   r@   rE   rS   r   r   r   <module>rX      s      %) V9 V") 
$3 $c4 
H	 
H9 !I !HY r   