{"id":16401510,"url":"https://github.com/hawkkiller/midjourney_client","last_synced_at":"2026-01-11T04:37:49.747Z","repository":{"id":173631527,"uuid":"651040373","full_name":"hawkkiller/midjourney_client","owner":"hawkkiller","description":"Unofficial midjourney client that gives you possibility to generates images!","archived":false,"fork":false,"pushed_at":"2023-12-09T16:09:56.000Z","size":134,"stargazers_count":11,"open_issues_count":13,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-03T02:34:51.594Z","etag":null,"topics":["ai","dart","midjourney"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/midjourney_client","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hawkkiller.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-08T11:07:16.000Z","updated_at":"2025-05-09T08:59:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"d86010c4-fdd3-4d10-aa9c-fef59d04e292","html_url":"https://github.com/hawkkiller/midjourney_client","commit_stats":null,"previous_names":["hawkkiller/midjourney-client"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/hawkkiller/midjourney_client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hawkkiller%2Fmidjourney_client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hawkkiller%2Fmidjourney_client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hawkkiller%2Fmidjourney_client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hawkkiller%2Fmidjourney_client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hawkkiller","download_url":"https://codeload.github.com/hawkkiller/midjourney_client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hawkkiller%2Fmidjourney_client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28284964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T03:48:11.750Z","status":"ssl_error","status_checked_at":"2026-01-11T03:48:02.765Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","dart","midjourney"],"created_at":"2024-10-11T05:43:19.951Z","updated_at":"2026-01-11T04:37:49.728Z","avatar_url":"https://github.com/hawkkiller.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unofficial Midjourney Client\n\nEnhance your creative workflows with the Unofficial Midjourney Client, designed to integrate seamlessly with Discord's Midjourney Bot. Discover the potential of this library, whether you're crafting digital art or exploring new AI-driven frontiers.\n\n## Quick Navigation\n\n- [Installation Instructions](#installation)\n- [Getting Started](#getting-started)\n- [Configuration Steps](#configuration)\n- [Practical Examples](#examples)\n\n## Installation\n\n### Flutter Projects\n\n```shell\nflutter pub add midjourney_client\n```\n\n### Dart Projects\n\n```shell\ndart pub add midjourney_client\n```\n\n\u003e This command incorporates the `midjourney_client` package along with necessary dependencies into your project.\n\n## Getting Started\n\n```dart\nimport 'dart:async';\nimport 'package:midjourney_client/midjourney_client.dart';\n\nFuture\u003cvoid\u003e main() async {\n  var client = MidjourneyClient();\n  \n  // Initialization with environment variables\n  await client.initialize(\n    channelId: Env.channelId,\n    serverId: Env.serverId,\n    token: Env.token,\n  );\n\n  // Example: Imagining an Elephant on a tree\n  var imaginationStream = client.imagine('Elephant on a tree');\n  imaginationStream.listen(print);\n\n  // Retrieving and printing the last item from the stream\n  var finalImagination = await imaginationStream.last;\n  print(finalImagination);\n}\n```\n\n## Configuration\n\n### Prerequisites\n\n- [Discord Account](https://discord.com/register)\n- [Discord Server Setup Guide](https://support.discord.com/hc/en-us/articles/204849977)\n\n### Acquiring Server \u0026 Channel IDs\n\n1. Navigate to your Discord server.\n2. Right-click on the desired channel.\n3. Select 'Copy ID' for both server and channel.\n\n### Obtaining Your Token\n\n1. Log into the Discord Web App.\n2. Open the developer console (Network tab).\n3. Send a message or refresh the page.\n4. Look for the 'Authorization' header in request headers.\n5. Copy the token value.\n\n\u003e **Note:** The token is sensitive information. Do not share it with anyone.\n\n## Examples\n\n### Imagine\n\nExecute the `/imagine` command and showcase the results.\n\n```shell\ndart run --define=SERVER_ID=\"\" --define=CHANNEL_ID=\"\" --define=TOKEN=\"\" example/imagine.dart\n```\n\n```dart\nfinal client = midjourney_client.Midjourney();\n\nawait client.initialize(\n  channelId: Env.channelId,\n  serverId: Env.serverId,\n  token: Env.token,\n);\n\nfinal imagine = client.imagine('Cat in a hat');\n\nfinal result = await imagine.finished;\n```\n\n### Variation\n\nCreate a variation on a theme with the Midjourney Bot.\n\n```shell\ndart run --define=SERVER_ID=\"\" --define=CHANNEL_ID=\"\" --define=TOKEN=\"\" example/variations.dart\n```\n\n```dart\nawait client.initialize(\n  channelId: Env.channelId,\n  serverId: Env.serverId,\n  token: Env.token,\n);\n\nfinal imagine = client.imagine('Cat with sword');\n\nfinal imagineResult = await imagine.finished;\n\nfinal variation = client.variation(imagineResult,1);\n\nfinal result = await variation.finished\n```\n\n### Upscale\n\nUpscale an image for enhanced detail and clarity.\n\n```shell\ndart run --define=SERVER_ID=\"\" --define=CHANNEL_ID=\"\" --define=TOKEN=\"\" example/upscale.dart\n```\n\n```dart\nfinal client = midjourney_client.Midjourney();\n\nawait client.initialize(\n  channelId: Env.channelId,\n  serverId: Env.serverId,\n  token: Env.token,\n);\n\nfinal imagine = client.imagine('Cat with asword');\n\nfinal imagineResult = await imagine.finished;\n\nfinal upscaled = client.upscale(imagineResult, 1);\n\nfinal result = await upscaled.finished;\n```\n\n\u003e **Note:** All examples code are located in the `example` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhawkkiller%2Fmidjourney_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhawkkiller%2Fmidjourney_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhawkkiller%2Fmidjourney_client/lists"}