Versions in this module Expand all Collapse all v0 v0.1.0 Jun 22, 2026 Changes in this version + const DefaultBaseURL + var Haircuts = []string + type Client struct + func New(apiKey string, opts ...Option) (*Client, error) + func (c *Client) GetCredits(ctx context.Context) (*Credits, error) + func (c *Client) GetStatus(ctx context.Context, jobID string) (*Status, error) + func (c *Client) TryOnClothes(ctx context.Context, p ClothesParams) (string, error) + func (c *Client) TryOnHairstyle(ctx context.Context, p HairstyleParams) (string, error) + func (c *Client) TryOnTattoo(ctx context.Context, p TattooParams) (string, error) + func (c *Client) WaitForResult(ctx context.Context, jobID string, pollInterval time.Duration) ([]string, error) + type ClothesParams struct + Category string + GarmentImage string + GarmentPhotoType string + Mode string + ModelImage string + ModerationLevel string + NumSamples int + OutputFormat string + Seed int + SegmentationFree *bool + Subcategory string + type Credits struct + OnDemand int + Purchased int + Reserved int + Subscription int + type Error struct + Message string + Name string + Status int + func (e *Error) Error() string + type HairstyleParams struct + FaceImage string + HairColor string + Haircut string + type JobError struct + Message string + Name string + type Option func(*Client) + func WithBaseURL(u string) Option + func WithHTTPClient(h *http.Client) Option + type Status struct + Error *JobError + Output []string + Status string + type TattooParams struct + BodyImage string + DesignImage string + Placement string