Versions in this module Expand all Collapse all v0 v0.1.0 Aug 3, 2026 Changes in this version + const StatusCanceled + const StatusFailed + const StatusPending + const StatusProcessing + const StatusSuccess + type APIError struct + Code int + Message string + StatusCode int + func (e *APIError) Error() string + type Client struct + func NewClient(apiKey string, options ...Option) (*Client, error) + func (c *Client) CreateVideo(ctx context.Context, request CreateRequest) (*CreateResponse, error) + func (c *Client) GetTask(ctx context.Context, taskID string) (*Task, error) + func (c *Client) Wait(ctx context.Context, taskID string) (*Task, error) + type CreateRequest struct + AspectRatio string + AudioURL string + Duration int + GenerateAudio *bool + Model string + Prompt string + Resolution string + Source ImageSource + TailImageURL string + type CreateResponse struct + RequestID string + Status string + TaskID string + type ImageSource []string + func (source ImageSource) MarshalJSON() ([]byte, error) + type Option func(*Client) error + func WithBaseURL(rawURL string) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithPollInterval(interval time.Duration) Option + type Task struct + Result *TaskInfo + Status string + TaskID string + URL string + Videos []Video + func (task Task) Done() bool + type TaskInfo struct + ErrorCode string + ErrorMessage string + Status string + Videos []Video + type Video struct + Duration float64 + ThumbnailURL string + VideoURL string