Skip to Content
Mika Scraper 1.1.1 is released πŸŽ‰
🌊 MIKA CLASSClass: GalaxyAI

Mika Scraper v1.1.2


Mika Scraper / GalaxyAI

Class: GalaxyAI

Defined in: src/_other-scraper/galaxyai.ts:72

The GalaxyAI SDK provides tools for text generation and manipulation via the translapp.info API.

Remarks

The SDK supports various operations including summarization, paraphrasing, text expansion, tone editing, grammar correction, translation, and reply generation.

Constructors

Constructor

new GalaxyAI(): GalaxyAI

Returns

An instance of GalaxyAI.

Properties

modules

readonly static modules: GalaxyModule[]

Defined in: src/_other-scraper/galaxyai.ts:73

Lists the available modules that can be used with the GalaxyAI SDK.


tones

readonly static tones: ToneType[]

Defined in: src/_other-scraper/galaxyai.ts:82

Provides a list of predefined tone types for text manipulation.


replies

readonly static replies: ReplyLength[]

Defined in: src/_other-scraper/galaxyai.ts:92

Enumerates the possible reply lengths that can be generated.

Methods

request()

static request(text, module, to, customTone): Promise<GalaxyResult>

Makes a request to the GalaxyAI API for processing text.

Parameters

text

string

The input text that needs transformation.

module

GalaxyModule

Specifies the operation to be performed using one of the supported GalaxyModule types.

to

string = ''

An optional parameter that could represent a tone type or target language.

customTone

string = ''

An optional parameter allowing the specification of a custom tone name when the tone is set to β€˜Other’.

Returns

Promise<GalaxyResult>

A promise that resolves to a structured result object containing the outcome of the request.

Example

const result = await GalaxyAI.request("I need this translated.", "TRANSLATE", "French"); if (result.success) { console.log(result.result.output); }
Last updated on