Class ClientV1

Api

public

Classdesc

An API client for Craiyon.

Hierarchy

  • ClientV1

Constructors

Properties

GENERATE_IMAGES_URL: string = '/generate'
VERSION: number = 1

Methods

  • A builder function that sets the base URL of the Craiyon backend instance.

    Returns

    The modified client instance.

    Parameters

    • baseUrl: string

      The base URL to use. Must not include the /generate endpoint.

    Returns ClientV1

  • A builder function that sets the maximum number of retries to attempt.

    Returns

    The modified client instance.

    Parameters

    • maxRetries: number

      The maximum number of retries to attempt.

    Returns ClientV1

Generated using TypeDoc