Class ClientV2

Api

public

Classdesc

An API client for Craiyon.

Hierarchy

  • ClientV2

Constructors

Properties

GENERATE_IMAGES_URL: string = '/draw'
VERSION: number = 2

Methods

  • A builder function that sets the model version.

    Returns

    The modified client instance.

    Parameters

    • apiToken: string

    Returns ClientV2

  • 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 /draw endpoint.

    Returns ClientV2

  • 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 ClientV2

  • A builder function that sets the model version.

    Returns

    The modified client instance.

    Parameters

    • modelVersion: string

      The craiyon model to use.

    Returns ClientV2

Generated using TypeDoc