> For the complete documentation index, see [llms.txt](https://erictik.gitbook.io/midjourney-client-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://erictik.gitbook.io/midjourney-client-doc/getting-started/quickstart.md).

# Quickstart

> #### **Step1: Get your Discord Token**[Join the Beta](https://discord.com/invite/GavuGHQbV4)

{% content-ref url="/spaces/YumBFrLMEjCHcnd9iK5O/pages/5RjMkivCg9gy4rYNxZzZ" %}
[Broken mention](broken://spaces/YumBFrLMEjCHcnd9iK5O/pages/5RjMkivCg9gy4rYNxZzZ)
{% endcontent-ref %}

> #### **Step2: Join Discord Server**

{% content-ref url="/spaces/YumBFrLMEjCHcnd9iK5O/pages/qEsjqgxHxZkXwxnH7UXK" %}
[Broken mention](broken://spaces/YumBFrLMEjCHcnd9iK5O/pages/qEsjqgxHxZkXwxnH7UXK)
{% endcontent-ref %}

> #### **Step3: Install** midjourney

{% content-ref url="/pages/yhQ8rp7tBNa7iDOVY5RQ" %}
[Install](/midjourney-client-doc/getting-started/install.md)
{% endcontent-ref %}

> #### **Step3:** Use the imagine api

{% tabs %}
{% tab title="Typescirpt" %}
{% code overflow="wrap" lineNumbers="true" %}

```typescript
import { Midjourney } from "midjourney";

const client = new Midjourney({
  ServerId: "1082500871478329374",
  ChannelId: "1094892992281718894",
  SalaiToken: "your discord token",
  Debug: true,
});

const msg = await client.Imagine(
  "A little white elephant",
  (uri: string, progress: string) => {
    console.log("loading:", uri, "progress:", progress);
  }
);
console.log({ msg });
```

{% endcode %}
{% endtab %}

{% tab title="Javascirpt" %}
{% code overflow="wrap" lineNumbers="true" %}

```javascript
const { Midjourney } = require("midjourney");

  const client = new Midjourney({
    ServerId: "1082500871478329374",
    ChannelId: "1094892992281718894",
    SalaiToken: "your discord token",
    Debug: true,
    Ws:true,
  });
  const msg = await client.Imagine("A little pink elephant", (uri, progress) => {
    console.log("loading:", uri, "progress:", progress);
  });
  console.log({ msg });


```

{% endcode %}
{% endtab %}
{% endtabs %}
