Metadata-Version: 2.4
Name: runapi-midjourney
Version: 0.1.0
Summary: RunAPI Midjourney SDK for image generation, editing, image-to-video, and image helper workflows in JavaScript, Python, Ruby, Go, Java, and PHP
Project-URL: Homepage, https://runapi.ai/models/midjourney
Project-URL: Documentation, https://runapi.ai/docs#sdk-midjourney
Project-URL: Source, https://github.com/runapi-ai/midjourney-sdk
Project-URL: Issues, https://github.com/runapi-ai/midjourney-sdk/issues
Author-email: RunAPI <contact@runapi.ai>
License-Expression: Apache-2.0
Keywords: api,golang,gradle,image-generation,java,maven,midjourney,midjourney-api,python,ruby,runapi,runapi-ai,sdk,typescript,video-generation
Requires-Python: >=3.9
Requires-Dist: runapi-core>=0.1.5
Description-Content-Type: text/markdown

# Midjourney Python SDK for RunAPI

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

## Install

```bash
pip install runapi-midjourney
```

## Quick Start

```python
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`, and `image_to_video`. Use `run` directly for `image_to_prompt` and `get_seed`. Generated media URLs are temporary and should be stored in durable storage.

## Links

- Model page: https://runapi.ai/models/midjourney
- Product docs: https://runapi.ai/docs#midjourney
- SDK docs: https://runapi.ai/docs#sdk-midjourney
- V8.1 details: https://runapi.ai/models/midjourney/v8.1
- Image editing details: https://runapi.ai/models/midjourney/edit-image
- Image-to-video details: https://runapi.ai/models/midjourney/image-to-video
- Repository: https://github.com/runapi-ai/midjourney-sdk

Licensed under the Apache License, Version 2.0.
