# Legnext AI > Unofficial Midjourney REST API for image and video generation — production-ready, no Discord or Midjourney account required. Base URL: `https://api.legnext.ai/api` Auth: `x-api-key` header (get your key at https://legnext.ai/dashboard) Free tier: 200 one-time credits, no credit card required Pro plan: $30/month for 33,000 credits — https://legnext.ai/#pricing ## Getting Started - [Overview](https://docs.legnext.ai/getting-started/overview): Legnext AI Midjourney API features for image and video generation - [Quickstart](https://docs.legnext.ai/getting-started/quickstart): Get started with Legnext AI API - [Important Information](https://docs.legnext.ai/getting-started/notice): API requirements, limitations, and supported models - [Model Information](https://docs.legnext.ai/getting-started/models): Complete guide to Midjourney model versions including v6, v6.1, v7, and niji 6 - features, capabilities, and parameter support for each version - [Image Parameters](https://docs.legnext.ai/getting-started/image-parameters): Comprehensive reference for image generation parameters including aspect ratio, style, quality, chaos, and version control for Midjourney API - [Video Parameters](https://docs.legnext.ai/getting-started/video-parameters): Video generation parameters reference - [Output Storage](https://docs.legnext.ai/getting-started/output-storage): Image storage duration and operation validity periods ## API Reference - [Text to Image](https://docs.legnext.ai/api-reference/image-generation/diffusion): Generate images from text prompts - [Variation](https://docs.legnext.ai/api-reference/image-generation/variation): Create variations of existing images - [Upscale](https://docs.legnext.ai/api-reference/image-generation/upscale): Enhance image resolution and quality - [Reroll](https://docs.legnext.ai/api-reference/image-generation/reroll): Re-execute tasks with same parameters - [Blend](https://docs.legnext.ai/api-reference/image-generation/blend): Seamlessly combine 2-5 images into a single unique creation with AI-powered blending technology - [Describe](https://docs.legnext.ai/api-reference/image-generation/describe): Generate text descriptions from images - [Shorten](https://docs.legnext.ai/api-reference/image-generation/shorten): Simplify prompts to essential elements - [Pan](https://docs.legnext.ai/api-reference/image-generation/pan): Extend images in specified direction - [Outpaint](https://docs.legnext.ai/api-reference/image-generation/outpaint): Expand images in all directions - [Inpaint](https://docs.legnext.ai/api-reference/image-generation/inpaint): Edit specific regions with masks - [Remix](https://docs.legnext.ai/api-reference/image-generation/remix): Transform images with new prompts - [Edit](https://docs.legnext.ai/api-reference/image-generation/edit): Edit and repaint image areas - [Upload paint](https://docs.legnext.ai/api-reference/image-generation/upload-paint): Advanced editing with custom uploads - [Retexture](https://docs.legnext.ai/api-reference/image-generation/retexture): Transform image materials and textures - [Remove Background](https://docs.legnext.ai/api-reference/image-generation/remove-background): Remove backgrounds from images - [Enhance](https://docs.legnext.ai/api-reference/image-generation/enhance): Improve image quality and detail - [Video Diffusion](https://docs.legnext.ai/api-reference/video-generation/video-diffusion): Generate videos from text or images - [Extend Video](https://docs.legnext.ai/api-reference/video-generation/extend-video): Extend video duration with new frames - [Video Upscale](https://docs.legnext.ai/api-reference/video-generation/video-upscale): Enhance video resolution and quality - [Topaz Upscale Image](https://docs.legnext.ai/api-reference/enhancement/topaz-upscale): Upscale images to ultra-high resolutions up to 12K - [Get Task](https://docs.legnext.ai/api-reference/task-management/get-task): Retrieve job status and results - [Get Account Balance](https://docs.legnext.ai/api-reference/account-management/get-balance): Check account balance and credits ## SDKs - [SDK Overview](https://docs.legnext.ai/sdk/overview): Explore Legnext SDKs for easy API integration ### Python SDK - [Installation](https://docs.legnext.ai/sdk/python/installation): Install the Legnext Python SDK - [Authentication](https://docs.legnext.ai/sdk/python/authentication): Set up authentication for the Legnext Python SDK - [Quick Start](https://docs.legnext.ai/sdk/python/quickstart): Get started with the Legnext Python SDK in 5 minutes - [Image Generation](https://docs.legnext.ai/sdk/python/image-generation): Image generation API reference - [Video Generation](https://docs.legnext.ai/sdk/python/video-generation): Video generation API reference - [Task Management](https://docs.legnext.ai/sdk/python/task-management): Task status, async/await, and error handling ### JavaScript/Node.js SDK - [Installation](https://docs.legnext.ai/sdk/javascript/installation): Install the Legnext JavaScript/Node.js SDK - [Authentication](https://docs.legnext.ai/sdk/javascript/authentication): Set up authentication for the Legnext JavaScript SDK - [Quick Start](https://docs.legnext.ai/sdk/javascript/quickstart): Get started with the Legnext JavaScript/Node.js SDK - [Image Generation](https://docs.legnext.ai/sdk/javascript/image-generation): Image generation API reference for JavaScript SDK - [Video Generation](https://docs.legnext.ai/sdk/javascript/video-generation): Video generation API reference for JavaScript SDK - [Task Management](https://docs.legnext.ai/sdk/javascript/task-management): Task status, polling, and error handling for JavaScript SDK ### Go SDK - [Installation](https://docs.legnext.ai/sdk/go/installation): Install the Legnext Go SDK - [Authentication](https://docs.legnext.ai/sdk/go/authentication): Set up API authentication for Go SDK - [Quick Start](https://docs.legnext.ai/sdk/go/quickstart): Get started with the Legnext Go SDK - [Image Generation](https://docs.legnext.ai/sdk/go/image-generation): Image generation API reference for Go SDK - [Video Generation](https://docs.legnext.ai/sdk/go/video-generation): Video generation API reference for Go SDK - [Task Management](https://docs.legnext.ai/sdk/go/task-management): Task status, polling, and error handling for Go SDK ### Java SDK - [Installation](https://docs.legnext.ai/sdk/java/installation): Install the Legnext Java SDK - [Authentication](https://docs.legnext.ai/sdk/java/authentication): Set up authentication for the Legnext Java SDK - [Quick Start](https://docs.legnext.ai/sdk/java/quickstart): Get started with the Legnext Java SDK - [Image Generation](https://docs.legnext.ai/sdk/java/image-generation): Image generation API reference for Java SDK - [Video Generation](https://docs.legnext.ai/sdk/java/video-generation): Video generation API reference for Java SDK - [Task Management](https://docs.legnext.ai/sdk/java/task-management): Task status, polling, and error handling for Java SDK ### PHP SDK - [Installation](https://docs.legnext.ai/sdk/php/installation): Install the Legnext PHP SDK - [Authentication](https://docs.legnext.ai/sdk/php/authentication): Set up API authentication for PHP SDK - [Quick Start](https://docs.legnext.ai/sdk/php/quickstart): Get started with the Legnext PHP SDK - [Image Generation](https://docs.legnext.ai/sdk/php/image-generation): Image generation API reference for PHP SDK - [Video Generation](https://docs.legnext.ai/sdk/php/video-generation): Video generation API reference for PHP SDK - [Task Management](https://docs.legnext.ai/sdk/php/task-management): Task status, polling, and error handling for PHP SDK ### Ruby SDK - [Installation](https://docs.legnext.ai/sdk/ruby/installation): Install the Legnext Ruby SDK - [Authentication](https://docs.legnext.ai/sdk/ruby/authentication): Set up API authentication for Ruby SDK - [Quick Start](https://docs.legnext.ai/sdk/ruby/quickstart): Get started with the Legnext Ruby SDK - [Image Generation](https://docs.legnext.ai/sdk/ruby/image-generation): Image generation API reference for Ruby SDK - [Video Generation](https://docs.legnext.ai/sdk/ruby/video-generation): Video generation API reference for Ruby SDK - [Task Management](https://docs.legnext.ai/sdk/ruby/task-management): Task status, polling, and error handling for Ruby SDK ### C#/.NET SDK - [Installation](https://docs.legnext.ai/sdk/csharp/installation): Install the Legnext C#/.NET SDK - [Authentication](https://docs.legnext.ai/sdk/csharp/authentication): Set up API authentication for C#/.NET SDK - [Quick Start](https://docs.legnext.ai/sdk/csharp/quickstart): Get started with the Legnext C#/.NET SDK - [Image Generation](https://docs.legnext.ai/sdk/csharp/image-generation): Generate and manipulate images using C#/.NET SDK - [Video Generation](https://docs.legnext.ai/sdk/csharp/video-generation): Generate and manipulate videos using C#/.NET SDK - [Task Management](https://docs.legnext.ai/sdk/csharp/task-management): Handle async tasks and job status in C#/.NET SDK ### Rust SDK - [Installation](https://docs.legnext.ai/sdk/rust/installation): Install the Legnext Rust SDK - [Authentication](https://docs.legnext.ai/sdk/rust/authentication): Set up authentication for the Legnext Rust SDK - [Quick Start](https://docs.legnext.ai/sdk/rust/quickstart): Get started with the Legnext Rust SDK - [Image Generation](https://docs.legnext.ai/sdk/rust/image-generation): Image generation API reference for Rust SDK - [Video Generation](https://docs.legnext.ai/sdk/rust/video-generation): Video generation API reference for Rust SDK - [Task Management](https://docs.legnext.ai/sdk/rust/task-management): Task status, polling, and error handling for Rust SDK ## Integrations - [Integrations Overview](https://docs.legnext.ai/integrations/overview): Connect Legnext AI API with your favorite automation platforms - [n8n Integration](https://docs.legnext.ai/integrations/n8n): Connect Legnext AI API with n8n to build automated workflows - [Postman Collection](https://docs.legnext.ai/integrations/postman): Test and explore Legnext AI API using our official Postman collection - [Make Integration](https://docs.legnext.ai/integrations/make): Connect Legnext AI API with Make (formerly Integromat) to build visual automation workflows ## Changelog - [Changelog](https://docs.legnext.ai/changelog): Track updates, new features, and improvements to the Legnext AI API ## Optional - [OpenAPI Spec (YAML)](https://raw.githubusercontent.com/leggiemint/legnext-docs/main/openapi.yaml): Machine-readable API spec - [Pricing](https://legnext.ai/#pricing): Free tier (200 credits) + Pro $30/month (33,000 credits) - [Dashboard](https://legnext.ai/dashboard): Manage API keys and billing - [Support](mailto:support@legnext.ai): Email us with questions or feedback