Skip to content

Add Midjourney image generator adapter #2

@adelaidasofia

Description

@adelaidasofia

The midjourney adapter is stubbed in image_generators/midjourney.py but not implemented. Contributions welcome.

What's needed:

  • Implement MidjourneyAdapter.generate(spec) using the Midjourney API (or an unofficial wrapper)
  • Honor api_key, aspect_ratio, and output_dir from config.json under image_generator.midjourney
  • Poll for completion, download the final image, save to spec["output_path"]
  • Follow the ImageGenerator ABC in image_generators/base.py

Spec the adapter receives:

{
  "pillar": "P1" | "P2" | "P3",
  "quote": str,
  "handle": str,
  "figure_path": str | None,
  "output_path": str,
}

See image_generators/pillow_local.py for a complete reference implementation and image_generators/canva.py for an API-driven example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions