midjourney_client 0.4.0 copy "midjourney_client: ^0.4.0" to clipboard
midjourney_client: ^0.4.0 copied to clipboard

Unofficial midjourney client that gives you possibility to generates images! Now, it utilizes the Discord API to communicate with the bot.

example/main.dart

// ignore_for_file: avoid_print

import 'dart:async';
import 'dart:io';

import 'package:midjourney_client/midjourney_client.dart' as midjourney_client;

import 'env.dart';

Future<void> main(List<Object> arguments) async {
  final client = midjourney_client.Midjourney();

  await client.initialize(
    channelId: Env.channelId,
    serverId: Env.serverId,
    token: Env.token,
    logLevel: midjourney_client.MLoggerLevel.verbose,
  );

  final imagine = client.imagine('Elephant on a tree')..listen(print);

  final imagineResult = await imagine.finished;

  final upscaled = client.upscale(imagineResult, 1)..listen(print);
  final upscaleResult = await upscaled.finished;

  print(upscaleResult);
  exit(0);
}
10
likes
150
pub points
43%
popularity

Publisher

verified publisherlazebny.io

Unofficial midjourney client that gives you possibility to generates images! Now, it utilizes the Discord API to communicate with the bot.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http, meta, path, snowflaker, ws

More

Packages that depend on midjourney_client