How to get started with Midjourney API

GoAPI
25 Jan 202404:26

TLDRThis tutorial introduces the Midjourney API, a tool created by enthusiasts to assist with incorporating Midjourney features into existing workflows. The API offers various endpoints and processing modes, such as relax, fast, and turbo. The video demonstrates how to access the API through goapi.ai, sign up for a dashboard using GitHub, and obtain free credits. It guides viewers through using Postman to make a POST request to the 'Imagine' endpoint, inputting an API key and prompt to receive a task ID. Subsequently, a fetch request is made using the task ID to retrieve the generated images. The tutorial also highlights the attractive pricing and a referral program for additional credits. The presenter encourages viewers to like, subscribe, and explore more API-related content.

Takeaways

  • 🌟 This tutorial is provided by go API, a group of enthusiasts passionate about Midjourney, offering a non-official API for those interested in incorporating it into their workflow.
  • πŸ’» Visit goapi.ai to access the Midjourney API and other AI APIs like GPT and stable diffusion.
  • πŸ“š Click on the 'documentation' button to find the latest version of the Midjourney API and its endpoints.
  • βš™οΈ The API offers different processing modes: relax, fast, and turbo, corresponding to their Midjourney equivalents.
  • πŸ’° Pricing for the Midjourney API is based on the processing mode used, with each 'imagine' call having a varying cost.
  • πŸ‘₯ Sign up for the dashboard using GitHub to receive free credits and participate in a referral program for more credits.
  • πŸ”‘ Safely store your API key, which can be found and copied from the dashboard.
  • πŸ“§ Postman is the API platform used for developers to test and make requests to the API endpoints.
  • πŸ“ In Postman, change the request type to POST, paste the endpoint, and add the API key in the header.
  • πŸ“‘ Follow the example request provided in the documentation to create a POST request with the necessary code and prompt.
  • πŸ”„ After a successful 'imagine' request, create a new POST request for the 'fetch' endpoint using the task ID obtained from the previous step.
  • πŸ–ΌοΈ Once the fetch request is successful, you can view your images using either of the provided URLs.
  • πŸ“ˆ Like and subscribe to the channel for more API-related content and stay updated with the latest tutorials.

Q & A

  • What is the purpose of the tutorial?

    -The tutorial is designed to show users how to get started with the Midjourney API, which is a non-official API created by enthusiasts to help incorporate into existing workflows.

  • What is the name of the website where users can start using the Midjourney API?

    -The website is called goapi.ai.

  • What are the different processing modes available for the Midjourney API?

    -The different processing modes are relax, fast, and turbo mode.

  • How can users sign up for the dashboard on goapi.ai?

    -Users can sign up for the dashboard using their GitHub account, which also provides them with free credits to try out the service.

  • What is the referral program mentioned in the tutorial?

    -The referral program allows users to share the service with friends, and both the referrer and the referred will receive additional free credits.

  • How can users store their API key safely?

    -Users should copy their API key and store it in a secure location to prevent unauthorized access.

  • What is Postman and how is it used in this tutorial?

    -Postman is an API platform for developers. In the tutorial, it is used to create HTTP requests to the Midjourney API endpoints.

  • What type of request is required for the Imagine endpoint?

    -A POST request is required for the Imagine endpoint.

  • How do you specify the API key in Postman?

    -In Postman, you specify the API key by clicking on 'Header', typing in 'x-api-key', and then entering the API key in the value field.

  • What is the purpose of the Fetch endpoint?

    -The Fetch endpoint is used to retrieve the results of a previously submitted task from the Imagine endpoint.

  • How can users view the images generated by the Midjourney API?

    -Users can view the generated images by copying one of the provided URLs and pasting it into a new browser tab.

  • What is the cost for each Imagine call in the Midjourney API?

    -The cost for each Imagine call varies depending on the processing mode used.

Outlines

00:00

πŸš€ Introduction to Mid Journey API

The video introduces the go API team and their tutorial on getting started with the Mid Journey API. It clarifies that this is not an official API but a creation by enthusiasts to help others. The video guides viewers to their website, goapi.ai, to explore the API and other AI services offered. It emphasizes the focus on the Mid Journey API for the tutorial and provides a brief overview of the available endpoints and processing modes, including relax, fast, and turbo. The Imagine endpoint is highlighted for the tutorial's purpose, and a sample workflow is explained. The pricing plan is briefly mentioned, emphasizing the cost-effectiveness of the service. The video then instructs viewers on how to sign up for the dashboard using GitHub, benefit from the referral program, and how to copy their API key for use.

Mindmap

Keywords

πŸ’‘Midjourney API

Midjourney API is a tool created by enthusiasts of the Midjourney software, which is not an official API but designed to enhance the user experience with additional functionalities. In the video, it is used to demonstrate how to integrate this custom API into existing workflows to improve efficiency.

πŸ’‘API

API stands for Application Programming Interface, which is a set of rules and protocols that allows software applications to communicate and interact with each other. In the context of the video, the Midjourney API is the focus, showing how it can be used to fetch and process data.

πŸ’‘Documentation

Documentation refers to the written materials that provide information on how to use a particular system or software. In the video, the documentation for the Midjourney API is mentioned as a resource for understanding the different endpoints and processing modes available.

πŸ’‘Endpoints

Endpoints in the context of an API are specific URLs that can be used to interact with the API. They define a location where a specific type of information can be accessed or a specific type of action can be performed. The video lists endpoints such as 'Imagine' and 'Fetch' for the Midjourney API.

πŸ’‘Processing Modes

Processing modes refer to the different operational settings that can be chosen to control the speed or quality of data processing. In the video, the Midjourney API offers 'relax', 'fast', and 'turbo' modes, which correspond to different levels of performance.

πŸ’‘Pricing Plan

A pricing plan outlines the costs associated with using a service. In the video, the pricing plan for the Midjourney API is discussed, indicating that the cost varies depending on the processing mode selected for each 'Imagine' call.

πŸ’‘GitHub

GitHub is a web-based platform for version control and collaboration that is used by developers to manage and contribute to projects. In the video, it is mentioned as a platform through which users can sign up for the service and receive free credits.

πŸ’‘Postman

Postman is an API platform for developers to test, document, and develop APIs. The video demonstrates the use of Postman to create a new HTTP request, change it to a POST method, and interact with the Midjourney API endpoints.

πŸ’‘API Key

An API key is a unique identifier used in the context of software and API interactions to authenticate the caller and control access to the API. In the video, it is shown how to obtain an API key from the dashboard and use it in Postman to authenticate requests to the API.

πŸ’‘Task ID

A task ID is a unique identifier assigned to a particular job or process. In the context of the video, after a successful 'Imagine' endpoint call, a task ID is returned which is then used in subsequent 'Fetch' endpoint calls to retrieve the results of the initial task.

πŸ’‘Referral Program

A referral program is a type of marketing strategy where customers are incentivized to refer new customers to a service. The video mentions a referral program associated with the Midjourney API, where sharing the service with friends can result in additional free credits for both parties.

Highlights

Introduction to a tutorial on getting started with Midjourney API by go API, a group of enthusiasts.

Midjourney API is not an official API but a creation by enthusiasts to help others.

The tutorial focuses on incorporating the API into existing workflows.

Visit goapi.ai to access the Midjourney API and other AI APIs.

Documentation for the latest version of the Midjourney API is available on the website.

Different processing modes are offered: relax, fast, and turbo mode.

A sample workflow explanation is provided for clarity.

The Imagine endpoint is used for the tutorial to perform a fetch on the task submitted.

Pricing plans for the Midjourney API vary depending on the processing mode used.

Signing up through GitHub provides free credits to try out the service.

A referral program is available, offering more free credits for sharing the service.

API keys should be stored safely after being copied from the dashboard.

Postman is an API platform used for developers to interact with the API.

The request type should be changed to POST and the endpoint should be pasted in Postman.

The API key is required in the header section of the request in Postman.

Example request codes in Python, Node, and curl are provided for convenience.

After sending the request, a successful status is returned along with a task ID.

A new POST request is created for the fetch endpoint using the obtained task ID.

Two URLs for the images are provided, both leading to the same content.

The process of getting started with Midjourney API takes just a few minutes with go API.

The tutorial concludes with an invitation to like and subscribe for more API related content.