Versions in this module Expand all Collapse all v0 v0.2.0 Nov 3, 2026 v0.1.0 Nov 3, 2026 Changes in this version + const DefaultBaseURL + const DefaultPollInterval + const DefaultWaitChunkSeconds + const Resolution1080p + const Resolution2K + const Resolution4K + const StatusCompleted + const StatusFailed + const StatusProcessing + const StatusQueued + type APIError struct + Code string + Message string + StatusCode int + func (e *APIError) Error() string + type Account struct + Credits float64 + CreditsPerSecond float64 + Plan string + type Client struct + func NewClient(apiKey string, opts ...Option) *Client + func (c *Client) GetAccount(ctx context.Context) (*Account, error) + func (c *Client) GetTask(ctx context.Context, taskID string, waitSeconds int) (*Task, error) + func (c *Client) ListTasks(ctx context.Context, page, limit int) (*TaskList, error) + func (c *Client) Upscale(ctx context.Context, req UpscaleRequest) (*Task, error) + func (c *Client) WaitForCompletion(ctx context.Context, taskID string) (*Task, error) + type Option func(*Client) + func WithBaseURL(baseURL string) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithPollInterval(d time.Duration) Option + func WithUserAgent(ua string) Option + func WithWaitChunkSeconds(seconds int) Option + type Task struct + CompletedAt string + CreatedAt string + CreditsUsed float64 + DurationSec float64 + Error string + ID string + IdempotencyKey string + Ops *UpscaleOps + OutputURL string + Resolution string + Status string + VideoURL string + func (t *Task) IsTerminal() bool + type TaskList struct + Limit int + Page int + Tasks []Task + Total int + type UpscaleOps struct + Deflicker bool + Deinterlace bool + Denoise float64 + Engine string + FPSMultiplier int + FaceRestore bool + HDR string + SlowMotion bool + Stabilize bool + type UpscaleRequest struct + IdempotencyKey string + Ops *UpscaleOps + Resolution string + VideoURL string + WebhookURL string