Guide
Midjourney Niji 8 Getting Started Guide: Text-to-Image, Eight Parameters, and Task Polling
Developer-oriented integration notes for midjourney/niji: image selection, input parameters, POST /v1/tasks, and per-call billing
On this page
What Midjourney Niji 8 is and who it is for
Midjourney Niji 8 is displayed on HiAPI.ai as Midjourney Niji 8, and its model name is midjourney/niji. It follows the text-to-image route, with optional reference-image guidance, and each task delivers one static image. The input prompt is a required string of 1–2000 characters; the output is an image.
The style leans toward Japanese anime-style illustrations, suitable for game character or scene concept art, manga storyboards, and light novel illustrations. The criterion is straightforward: the requirement can be expressed as a visual description, and the randomness of generated results is acceptable. If precise layout, strict brand reproduction, or accurate rendering of text within the image is required, a pure text-to-image route is not suitable for the core pipeline.

The eight input parameters
Requests uniformly use POST /v1/tasks, with the model name midjourney/niji and fields placed inside input. This route uses structured fields and avoids native prompt flags. The eight input parameters are as follows:
- prompt: required string, 1–2000 characters, describing the image subject, style, composition, and lighting in natural language.
- image_urls: optional; when provided, 1–4 accessible HTTPS image URLs, used only to guide the image.
- size: only
1:1(default),16:9, and9:16are provided. - version: choose
niji 8(default) orniji 7; the latter is a comparison option for continuing the art style of existing legacy projects. - speed: choose
relax(default, $0.0644 per call) orfast($0.0787 per call). This route does not provide turbo; Niji 8 turbo requests ultimately use the same speed tier as fast, so simply choose fast. - stylize: integer 0–1000.
- chaos: integer 0–100.
- weird: integer 0–3000.
stylize, chaos, and weird only accept values within the integer ranges above; this article does not infer the default values of the three. Fees are charged per call, not per number of images or pixels. Each task delivers one static image; this route does not provide outfit changes, inpainting, fixed characters, editing existing images, sketch mode, 24 images, outpainting, high definition, or upscaling. It also does not promise specific durations, queue order, or art style consistency.
Minimal request and task polling
The minimal request only needs the model name and prompt. Below is a curl example that can be directly adapted for use:
curl -X POST https://api.hiapi.ai/v1/tasks -H 'Authorization: Bearer $HIAPI_API_KEY' -H 'Content-Type: application/json' -d '{"model":"midjourney/niji","input":{"prompt":"Japanese anime-style illustration, game character concept art, a silver-haired swordsman standing in a ruined plaza in morning mist, half-body composition, cool-warm contrast lighting"}}'
After successful submission, the response returns a task ID. Image generation is not completed within the synchronous request; use the task ID to query status and results:
curl https://api.hiapi.ai/v1/tasks/{task_id} -H 'Authorization: Bearer $HIAPI_API_KEY'
Set polling intervals and timeouts according to business needs during polling, and do not keep user HTTP connections attached to generation requests. If the result URL needs to be used long term, it is recommended to transfer it to your own object storage. Keep the API Key on the server side only.

Image selection and business settings
Image selection: first determine size by delivery placement. Use 1:1 for square avatars or cards; 16:9 for horizontal banners, article headers, and video covers; 9:16 for vertical posters, mobile full-screen illustrations, and light novel cover directions. In the prompt, clearly describe the subject, style, composition, lighting, and aspect-ratio use; do not use parameters as style words.
Reference images: image_urls is only used to guide the image. When needed, provide 1–4 accessible HTTPS addresses, and verify accessibility and content compliance on the business side; do not use it to carry expectations such as outfit changes, inpainting, fixed characters, editing existing images, or sketch mode.
Version and speed: new projects default to niji 8; when existing legacy projects need to continue their art style, niji 7 can be used as a comparison option. Speed defaults to relax; choose fast when delivery cadence matters, at $0.0787 per call. There is no need to look for a turbo option.
Style values: stylize, chaos, and weird are structured numeric fields, limited to 0–1000, 0–100, and 0–3000 respectively. Do not infer default values from this article; before launch, run small-batch comparisons with fixed prompts and record each value and image result.
Business-side settings: make size, version, and speed configuration items rather than scattering them in code; apply templates and length validation to prompts; apply domain whitelisting and accessibility checks to image_urls; save request parameters by task ID for quality checks and issue diagnosis.
Pricing, image count, and quality checks
Fees are charged per call, not per number of images or pixels. There are two price tiers:
relax: default speed, $0.0644 per call.fast: $0.0787 per call.
Each task delivers one static image. Monthly costs can be estimated as "monthly call count × corresponding speed unit price"; retries, duplicate clicks, and integration-test calls all count toward call volume, so the business side should implement idempotency and throttling. Real-time prices are subject to the site's pricing panel.

Quality check list:
- prompt is 1–2000 characters, with clear descriptions of subject, style, composition, lighting, and use.
- If image_urls is filled in, it contains 1–4 accessible HTTPS addresses, used only to guide the image.
- size uses only
1:1,16:9, and9:16, and matches the display placement. - version uses
niji 8; useniji 7only for art style comparison with legacy projects. - speed uses
relaxorfast, and no turbo expectation is submitted. - stylize, chaos, and weird are integers within range, with no inferred default values.
- Requests go through
POST /v1/tasks, with model namemidjourney/niji, and fields located insideinput. - Poll by task ID and save results; do not rely on temporary URLs being available long term.
For API details, enter from the model page; during integration, first get the minimal request working, then add size, version, speed, and style values item by item, and finally accept according to the quality check list.
Related articles
View all articles →-
Guide
GLM 5.4 API Guide: Capabilities, First Request and Pricing
1M context and always-on thinking, from your first request to a cost estimate
4 min read -
Guide
HeyGen Avatar 6 Turbo image-to-video: Capabilities, Pricing and Integration
From a portrait to a talking clip: input shapes, parameters and per-second cost
8 min read -
Guide
HeyGen Avatar 6 Turbo identity-to-video: Capabilities, Pricing and Integration
From scripts and recordings to talking-head video: capability boundaries, API details and cost estimation
7 min read