Skip to main content

RunAPI Midjourney SDK for image generation, editing, image-to-video, first-video extension, and image helper workflows in JavaScript, Python, Ruby, Go, Java, and PHP

Project description

Midjourney Python SDK for RunAPI

Use runapi-midjourney for Midjourney image generation, editing, image-to-video, first-video extension, image-to-prompt, prompt shortening, and seed lookup in Python applications and workers.

Install

pip install runapi-midjourney

Quick Start

from runapi.midjourney import MidjourneyClient

client = MidjourneyClient()
result = client.text_to_image.run(
    model="midjourney-v8.1",
    prompt="A cobalt blue ceramic vase on white marble",
)
print(result.images[0].url)

Use create, get, and run for text_to_image, edit_image, image_to_video, and extend_video. extend_video accepts the task ID of an account-owned completed direct image-to-video task and continues its first video; extension tasks cannot be chained. Use run directly for image_to_prompt, shorten_prompt, and get_seed. Generated media URLs are temporary and should be stored in durable storage.

Links

Licensed under the Apache License, Version 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

runapi_midjourney-0.3.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runapi_midjourney-0.3.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file runapi_midjourney-0.3.0.tar.gz.

File metadata

  • Download URL: runapi_midjourney-0.3.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for runapi_midjourney-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a8e2769319c6a8fddf57ac15f941f3c18a55c8bec7f284614550ab68ac5e3c6d
MD5 2741cd7c02e4df4309a705f9b893ea01
BLAKE2b-256 861d851ab940aa837778bf831ebffda9487e39624fe704e7b39d000f82b2e6a5

See more details on using hashes here.

File details

Details for the file runapi_midjourney-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: runapi_midjourney-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for runapi_midjourney-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb7a5d5789885d68b4cb4d8c0cdee7074f454b9b10e5357a3d17cbf0ef91f282
MD5 5d7864a7ecfcb6f87779f15998e38956
BLAKE2b-256 7e64ddaa845925f1b1e9d7430f616bd61e50ca031b4692dc2bd50ec2c145d762

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page