# Midjourney Niji V8

> Midjourney Niji V8 on the Kinovi API — anime and illustration-focused generation returning 4 images per run from a prompt and optional reference image, at $0.0565 / 4 images.

Source: https://kinovi.ai/docs/models/midjourney-v8-niji

- Model ID: `midjourney-v8-niji`
- Type: Image
- Provider: Midjourney
- From: $0.0565 / 4 images
- Model page: https://kinovi.ai/models/midjourney-v8-niji
- Playground: https://kinovi.ai/app/gallery?model=midjourney-v8-niji

## Quickstart

Two calls: submit a task with `createTask`, then poll `recordInfo` with the returned `taskId` until `status` is `success` or `fail`. Each run returns **4 images** (`output` has 4 entries).

Every request carries `Authorization: Bearer <yourApiKey>`. Create and manage keys at [kinovi.ai/api-keys](https://kinovi.ai/api-keys); see the [API reference](https://kinovi.ai/docs/api) for rate limits and error codes.

### Submit a task

`POST https://kinovi.ai/api/v1/jobs/createTask`

```json
{
  "model": "midjourney-v8-niji",
  "inputs": {
    "prompt": "A silver-haired courier standing on a rain-slicked Neo-Tokyo rooftop at dusk, glowing paper lanterns, crisp anime key visual",
    "aspectRatio": "16:9",
    "stylize": 250
  }
}
```

Response `200 OK` — the task is queued and credits are reserved. Use `taskId` to poll for the result.

```json
{
  "taskId": "task_01j9examplemjniji001"
}
```

#### Error responses

| HTTP | Body | When |
|:--|:--|:--|
| `400` | `{ "message": "Invalid inputs for model", "errors": [ … ] }` | More than 1 image in `imageUrls`, unsupported `aspectRatio`, `stylize` / `chaos` / `weird` out of range, or final prompt + appended flags over 1,024 chars. Nothing is charged. |
| `401` | `{ "message": "Invalid API Key" }` | Missing or wrong `Authorization` header. |
| `402` | `{ "message": "Insufficient credits", "required": 12, "available": 0 }` | Not enough credits (`12` credits per run of 4 images). |
| `429` | `{ "message": "Concurrency limit reached (…)", "limit": 5, "current": 5 }` | Too many tasks in progress; wait for one to finish. |

### Query the result

`GET https://kinovi.ai/api/v1/jobs/recordInfo?taskId=task_…`

Poll every few seconds until `status` is `success` or `fail`.

| `status` | Meaning |
|:--|:--|
| `waiting` | Queued, not started yet |
| `generating` | Running |
| `success` | Done — read all 4 URLs in `output[]` |
| `fail` | Failed — see `error.code` / `error.message`; credits are refunded |

## Parameters

Send these inside the `createTask` body. `model` and `inputs.prompt` are required; everything else falls back to the default shown.

Kinovi converts structured fields into Midjourney flags automatically — keep the total prompt plus appended flags under **1,024 characters**.

| Field | Type | Default | Description |
|:--|:--|:--|:--|
| `model` | `string` | **required** | Must be `"midjourney-v8-niji"`. |
| `inputs.prompt` | `string` | **required** | Description of the illustration or scene. |
| `inputs.imageUrls` | `string[]` | – | Optional, **at most 1** reference image URL (`uploadedUrls` accepted as an alias). Your own hosted URL or [Kinovi uploads](https://kinovi.ai/docs/uploads). |
| `inputs.aspectRatio` | `string` | `1:1` | `1:1` · `3:2` · `2:3` · `4:3` · `3:4` · `4:5` · `5:4` · `16:9` · `9:16` · `21:9`. |
| `inputs.stylize` | `integer` | `100` | `0`–`1000` (`--s`). Higher values apply stronger Niji artistic stylization. |
| `inputs.chaos` | `integer` | `0` | `0`–`100` (`--c`). Higher values increase variation across the 4 returned images. |
| `inputs.weird` | `integer` | `0` | `0`–`3000` (`--w`). Adds unusual / offbeat aesthetic elements. |
| `inputs.style` | `string` | – | Set `"raw"` (`--style raw`) for less opinionated default styling. |
| `inputs.no` | `string` | – | Comma-separated elements to exclude (`--no`), e.g. `"text, watermark"`. |
| `inputs.seed` | `integer` | random | `0`–`4294967295` (`--seed`). |
| `inputs.quality` | `string` | – | Accepted (`"0.25"`, `"0.5"`, `"1"`) for schema compatibility, no-op on Niji. |
| `autoFix` | `boolean` | `true` | Top-level flag. Rewrites terms that would trigger Midjourney's prompt filter; pass `false` to disable. |
| `callBackUrl` | `string` | – | Optional webhook called when the task finishes. |

### Full request

```json
{
  "model": "midjourney-v8-niji",
  "inputs": {
    "prompt": "Cozy seaside train station in summer, pastel clouds, Studio-inspired cel shading, crisp linework",
    "imageUrls": [
      "https://static.kinovi.ai/generated-images/task_ff01ii3zvib7ndbx8negnh6q-0.png"
    ],
    "aspectRatio": "16:9",
    "stylize": 300,
    "chaos": 10,
    "weird": 0,
    "style": "raw",
    "no": "text, signature",
    "seed": 123456
  },
  "autoFix": true,
  "callBackUrl": "https://example.com/hooks/kinovi"
}
```

## Pricing

Flat rate **per run of 4 images**. Optional flags and reference images do not change the price. Live prices: [kinovi.ai/models/midjourney-v8-niji](https://kinovi.ai/models/midjourney-v8-niji).

| | Price per run |
|:--|--:|
| **4 images** | $0.0565 / 4 images |

Charged at submit; failed tasks are refunded in full.

## Response

### Result fields

**JSON**

```json
{
  "taskId": "task_01j9examplemjniji001",
  "model": "midjourney-v8-niji",
  "status": "success",
  "creditsUsed": 12,
  "output": [
    { "url": "https://static.kinovi.ai/generated-images/mj_niji_0.png", "width": 1456, "height": 816, "mediaType": "image/png" },
    { "url": "https://static.kinovi.ai/generated-images/mj_niji_1.png", "width": 1456, "height": 816, "mediaType": "image/png" },
    { "url": "https://static.kinovi.ai/generated-images/mj_niji_2.png", "width": 1456, "height": 816, "mediaType": "image/png" },
    { "url": "https://static.kinovi.ai/generated-images/mj_niji_3.png", "width": 1456, "height": 816, "mediaType": "image/png" }
  ],
  "error": null,
  "createTime": 1790090613532,
  "completeTime": 1790090654200
}
```

**Table**

| Field | Type | Description |
|:--|:--|:--|
| `taskId` | `string` | The task id returned by `createTask`. |
| `model` | `string` | `"midjourney-v8-niji"`. |
| `status` | `string` | `waiting` · `generating` · `success` · `fail`. Stop polling on `success` or `fail`. |
| `creditsUsed` | `number` | Credits charged (`12`). Refunded automatically when `status` is `fail`. |
| `output` | `object[]` | Array of **4** generated images; empty until `success`. Stored by Kinovi for 7 days after generation. |
| `output[i].url` | `string` | Download URL of each generated image. |
| `output[i].width` | `integer` | Pixel width. |
| `output[i].height` | `integer` | Pixel height. |
| `output[i].mediaType` | `string` | `image/png`. |
| `error` | `object \| null` | `{ code, message }` when the task failed, otherwise `null`. |
| `createTime` | `number` | Unix epoch milliseconds when the task was accepted. |
| `completeTime` | `number \| null` | Unix epoch milliseconds when the task reached a terminal status. |

## Examples

### Anime key visual

**cURL**

```bash
curl -sS -X POST "https://kinovi.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $KINOVI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "midjourney-v8-niji",
    "inputs": {
      "prompt": "A magical clockwork conservatory floating above clouds, anime illustration, golden hour light",
      "aspectRatio": "16:9",
      "stylize": 250
    }
  }'
```

**Node.js**

```ts
const API_BASE = "https://kinovi.ai/api/v1";
const headers = {
  Authorization: `Bearer ${process.env.KINOVI_API_KEY}`,
  "Content-Type": "application/json",
};

const { taskId } = await fetch(`${API_BASE}/jobs/createTask`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    model: "midjourney-v8-niji",
    inputs: {
      prompt: "A magical clockwork conservatory floating above clouds, anime illustration, golden hour light",
      aspectRatio: "16:9",
      stylize: 250,
    },
  }),
}).then((r) => r.json());

while (true) {
  const info = await fetch(`${API_BASE}/jobs/recordInfo?taskId=${encodeURIComponent(taskId)}`, { headers }).then((r) =>
    r.json(),
  );
  if (info.status === "success") {
    console.log(info.output.map((item: { url: string }) => item.url));
    break;
  }
  if (info.status === "fail") throw new Error(JSON.stringify(info.error));
  await new Promise((r) => setTimeout(r, 3000));
}
```

**Python**

```python
import json, os, time, urllib.request

API_BASE = "https://kinovi.ai/api/v1"
HEADERS = {
    "Authorization": f"Bearer {os.environ['KINOVI_API_KEY']}",
    "Content-Type": "application/json",
}

payload = {
    "model": "midjourney-v8-niji",
    "inputs": {
        "prompt": "A magical clockwork conservatory floating above clouds, anime illustration, golden hour light",
        "aspectRatio": "16:9",
        "stylize": 250,
    },
}

req = urllib.request.Request(f"{API_BASE}/jobs/createTask", data=json.dumps(payload).encode(), headers=HEADERS)
task_id = json.load(urllib.request.urlopen(req))["taskId"]

while True:
    info = json.load(urllib.request.urlopen(urllib.request.Request(f"{API_BASE}/jobs/recordInfo?taskId={task_id}", headers=HEADERS)))
    if info["status"] == "success":
        print([item["url"] for item in info["output"]])
        break
    if info["status"] == "fail":
        raise RuntimeError(info["error"])
    time.sleep(3)
```

## FAQ

### How many images does `midjourney-v8-niji` return per call?

**4 images** per request, returned as four separate URLs in `output[]` for `$0.0565`.

### How does Midjourney Niji V8 differ from Midjourney V8?

Niji V8 is tuned specifically for anime, manga, and expressive 2D illustration aesthetics, while [`midjourney-v8`](https://kinovi.ai/docs/models/midjourney-v8) is the general-purpose Midjourney V8 model.

## Related models

- [Midjourney V8](https://kinovi.ai/docs/models/midjourney-v8): General-purpose Midjourney V8 returning 4 images per run.
- [Midjourney Niji V7](https://kinovi.ai/docs/models/midjourney-v7-niji): Previous-generation Midjourney Niji V7 anime illustration model.
- [Seedream 5.5](https://kinovi.ai/docs/models/seedream-5.5): ByteDance's 1K–2K text-to-image and multi-image editing model.
