Class CraiyonOutput

Api

public

Classdesc

Represents a Craiyon response.

Hierarchy

  • CraiyonOutput

Constructors

Accessors

Methods

Constructors

Accessors

  • get version(): string
  • Getter for the version of the Craiyon model used to generate the images.

    Returns

    The version of the Craiyon model.

    Returns string

Methods

  • Will return the base64 representation of the images in the output.

    Returns

    An array of base64-encoded images.

    Returns string[]

  • Will return an array of buffers containing the images in the output.

    Returns

    An array of buffers containing the image data.

    Returns Buffer[]

  • A factory function that will create a CraiyonOutput instance from the given JSON response.

    Returns

    The parsed CraiyonOutput instance.

    Parameters

    • json: any

      The JSON response to parse.

    Returns CraiyonOutput

Generated using TypeDoc