Versions in this module Expand all Collapse all v0 v0.2.0 Sep 13, 2026 Changes in this version + var ErrAuth = errors.New("kavel: invalid API key") type Options + APIKey string + Model string v0.1.0 Sep 7, 2026 Changes in this version + const AnonGrant + const CostEdit + const CostTextToImage + const IPDailyCeiling + const ModelEdit + const ModelGenerate + var BaseURL = "https://www.kavel.ai" + var ErrQuota = errors.New("kavel: free allowance spent") + var ErrRejected = errors.New("kavel: prompt refused") + var ErrSignIn = errors.New("kavel: this needs a signed-in account") + func Credits(ctx context.Context, clientID string, httpClient *http.Client) (remaining, grant int, err error) + type Image struct + URL string + Watermarked bool + func Edit(ctx context.Context, sourceURL, instruction string, opts Options) (Image, error) + func Generate(ctx context.Context, prompt string, opts Options) (Image, error) + type Options struct + AspectRatio string + HTTPClient *http.Client + PollEvery time.Duration + Timeout time.Duration