# Midjourney V7

> Midjourney V7 on the Kinovi API — text-to-image or single-image restyling returning 4 images per run, with stylize, chaos, weird, quality, and raw style flags.

Source: https://kinovi.ai/docs/models/midjourney-v7

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

## 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-v7",
  "inputs": {
    "prompt": "A photorealistic close-up of a steaming ceramic cup of espresso on weathered oak, soft morning window light, shallow depth of field",
    "aspectRatio": "1:1"
  }
}
```

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

```json
{
  "taskId": "task_01j9examplemjv70001"
}
```

#### Error responses

| HTTP | Body | When |
|:--|:--|:--|
| `400` | `{ "message": "Invalid inputs for model", "errors": [ … ] }` | More than 1 image in `imageUrls`, `quality` outside `0.25` / `0.5` / `1`, `style` other than `"raw"`, or `stylize` / `chaos` / `weird` / `seed` out of range. 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 5–10 seconds until `status` is `success` or `fail`. Most tasks finish in 30–60 seconds.

| `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.

Reference media fields take any publicly reachable URL — host the file yourself, or upload it to Kinovi first with `POST /api/v1/uploads` and pass the returned `url` (see [Uploading Assets](https://kinovi.ai/docs/uploads)).

| Field | Type | Default | Description |
|:--|:--|:--|:--|
| `model` | `string` | **required** | Must be `"midjourney-v7"`. |
| `inputs.prompt` | `string` | **required** | What to generate, or how to restyle the reference image. Inline Midjourney `--flags` are honored; prompts longer than 6,000 characters are trimmed. |
| `inputs.imageUrls` | `string[]` | – | Optional, **at most 1** publicly reachable reference image URL (`uploadedUrls` accepted as an alias). Omit for pure text-to-image. 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 Midjourney aesthetic 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 unconventional aesthetic elements. |
| `inputs.quality` | `number` | `1` | `0.25` · `0.5` · `1` (`--q`). Any other value is rejected with `400`. |
| `inputs.style` | `string` | – | Set `"raw"` (`--style raw`) for more literal, less stylized output. Any other value is rejected with `400`. |
| `inputs.no` | `string` | – | Comma-separated elements to exclude (`--no`), e.g. `"text, watermark"`. |
| `inputs.seed` | `integer` | random | `0`–`4294967295` (`--seed`). |
| `autoFix` | `boolean` | `true` | Automatically rewrites prompts rejected by Midjourney's filter so more tasks succeed. Set `false` to receive the rejection as `fail` instead. |
| `callBackUrl` | `string` | – | Optional webhook called when the task finishes. |

### Full request

```json
{
  "model": "midjourney-v7",
  "inputs": {
    "prompt": "Minimalist Scandinavian reading room overlooking a snowy fjord, warm timber, crisp architectural photography",
    "imageUrls": [
      "https://static.kinovi.ai/generated-images/task_ff01ii3zvib7ndbx8negnh6q-0.png"
    ],
    "aspectRatio": "16:9",
    "stylize": 200,
    "chaos": 10,
    "weird": 0,
    "quality": 1,
    "style": "raw",
    "no": "text, watermark",
    "seed": 123456
  },
  "autoFix": true,
  "callBackUrl": "https://example.com/hooks/kinovi"
}
```

## Pricing

Flat rate **per run of 4 images**. Optional flags (`stylize`, `chaos`, `quality`, `style`) and reference images do not change the price. Live prices: [kinovi.ai/models/midjourney-v7](https://kinovi.ai/models/midjourney-v7).

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

Charged at submit (`12` credits); failed tasks are refunded in full.

## Response

### Result fields

**JSON**

```json
{
  "taskId": "task_01j9examplemjv70001",
  "model": "midjourney-v7",
  "status": "success",
  "creditsUsed": 12,
  "output": [
    { "url": "https://static.kinovi.ai/generated-images/mj_v7_0.png", "width": 1024, "height": 1024, "mediaType": "image/png" },
    { "url": "https://static.kinovi.ai/generated-images/mj_v7_1.png", "width": 1024, "height": 1024, "mediaType": "image/png" },
    { "url": "https://static.kinovi.ai/generated-images/mj_v7_2.png", "width": 1024, "height": 1024, "mediaType": "image/png" },
    { "url": "https://static.kinovi.ai/generated-images/mj_v7_3.png", "width": 1024, "height": 1024, "mediaType": "image/png" }
  ],
  "error": null,
  "createTime": 1790090613532,
  "completeTime": 1790090655800
}
```

**Table**

| Field | Type | Description |
|:--|:--|:--|
| `taskId` | `string` | The task id returned by `createTask`. |
| `model` | `string` | `"midjourney-v7"`. |
| `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

### Text to image

**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-v7",
    "inputs": {
      "prompt": "Editorial studio portrait of a watchmaker inspecting a brass tourbillon under warm tungsten lamp light, 85mm lens",
      "aspectRatio": "4:5",
      "stylize": 150,
      "quality": 1
    }
  }'
```

**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-v7",
    inputs: {
      prompt: "Editorial studio portrait of a watchmaker inspecting a brass tourbillon under warm tungsten lamp light, 85mm lens",
      aspectRatio: "4:5",
      stylize: 150,
      quality: 1,
    },
  }),
}).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, 5000));
}
```

**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-v7",
    "inputs": {
        "prompt": "Editorial studio portrait of a watchmaker inspecting a brass tourbillon under warm tungsten lamp light, 85mm lens",
        "aspectRatio": "4:5",
        "stylize": 150,
        "quality": 1,
    },
}

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(5)
```

## FAQ

### How many images does `midjourney-v7` return per request?

**4 images** per call, returned as four entries in `output[]` for `$0.0565`.

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

Both return 4 images at `$0.0565` and share the same structured parameters (`stylize`, `chaos`, `weird`, `quality`, `style`, `no`, `seed`). `midjourney-v7` keeps Midjourney's V7 aesthetic and allows longer prompts (up to 6,000 chars vs 1,024 chars on V8).

### Does `midjourney-v7` support `quality`?

Yes — unlike the Niji models, `midjourney-v7` supports `inputs.quality` (`0.25`, `0.5`, or `1`).

## Related models

- [Midjourney V8](https://kinovi.ai/docs/models/midjourney-v8): Midjourney's latest general-purpose V8 model returning 4 images per run.
- [Midjourney Niji V7](https://kinovi.ai/docs/models/midjourney-v7-niji): Anime and illustration-focused Niji V7 returning 4 images per run.
- [Midjourney Niji V8](https://kinovi.ai/docs/models/midjourney-v8-niji): Latest anime and illustration-focused Niji V8 returning 4 images per run.
