Midjourney

mj_edits

MidjourneyPer Request
Create API Key

Midjourney 编辑图像的指定区域或扩展画布。

textimage
Starting price
Per Request
Context
—
Maximum input window
Modalities
→

Pricing by Supplier

标准按次
图片音频视频等多模态按次计费
Price$0.05/ request

Capabilities / Supported modalities

Function callingToolsJSON modeStructured outputVision
Input
Output

Provider & data privacy

Provider
Unknown
Tokenizer
BPE (vendor-specific)
License
Provider-specificUnknown
Data retention69 daysNot used for upstream training by default

Performance

About mj_edits

Midjourney 编辑图像的指定区域或扩展画布。

Use cases and prompting

Starting points for evaluation; supported inputs and options are listed in API access.

Use cases to explore

  • Explore product visuals, campaign concepts and illustration drafts.
  • Compare composition and visual style across several prompt variations.

Practical tips

Specify the subject, composition, lighting and style. Only include reference images or editing parameters when the endpoint supports them.

Example prompt

A minimalist product photograph of a ceramic cup on pale stone, soft window light, ample empty space on the right, warm neutral colors.

API access

Code samples

RequestPOST/v1/chat/completions
Example request
Parameters
ParameterTypeDefault / rangeDescription
temperature
number
=10 ~ 2
Sampling temperature; lower is more deterministic
top_p
number
=10 ~ 1
Nucleus sampling probability mass
max_tokens
integer>= 1Maximum number of tokens in the response
frequency_penalty
number
=0-2 ~ 2
Penalises repetition of frequent tokens
presence_penalty
number
=0-2 ~ 2
Encourages introducing new topics
stop
array—Up to 4 strings that stop generation
seed
integer—Deterministic sampling seed (best-effort)
n
integer
=1>= 1
Number of completions to generate
stream
boolean
=false
Stream tokens via Server-Sent Events
response_format
object—Force JSON object or schema-conforming output
tools
array—Tool / function declarations the model may call
tool_choice
string
autononerequired
Tool-choice policy or specific tool name
logprobs
boolean
=false
Return per-token log probabilities
top_logprobs
integer0 ~ 20Number of top log probabilities returned per token
logit_bias
object—Per-token logit bias map
user
string—End-user identifier for abuse monitoring

Replace <YOUR_API_KEY> with the API key from your token settings.

Authentication

All requests must include Authorization: Bearer <TOKEN> header. Anthropic-formatted endpoints accept the x-api-key header instead.

Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.

Supported parameters

Generation parameters
ParameterTypeDefault / rangeDescription
temperature
number
=10 ~ 2
Sampling temperature; lower is more deterministic
top_p
number
=10 ~ 1
Nucleus sampling probability mass
max_tokens
integer>= 1Maximum number of tokens in the response
frequency_penalty
number
=0-2 ~ 2
Penalises repetition of frequent tokens
presence_penalty
number
=0-2 ~ 2
Encourages introducing new topics
stop
array—Up to 4 strings that stop generation
seed
integer—Deterministic sampling seed (best-effort)
n
integer
=1>= 1
Number of completions to generate
stream
boolean
=false
Stream tokens via Server-Sent Events
response_format
object—Force JSON object or schema-conforming output
tools
array—Tool / function declarations the model may call
tool_choice
string
autononerequired
Tool-choice policy or specific tool name
logprobs
boolean
=false
Return per-token log probabilities
top_logprobs
integer0 ~ 20Number of top log probabilities returned per token
logit_bias
object—Per-token logit bias map
user
string—End-user identifier for abuse monitoring

Rate limits

SupplierRPMTPMRPD
标准按次610245K12K

RPM = requests per minute, TPM = tokens per minute, RPD = requests per day. Limits apply per token group.

Frequently asked questions about mj_edits

What is mj_edits?

Midjourney 编辑图像的指定区域或扩展画布。

How do I call mj_edits?

Create an API key with access to mj_edits, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.

How is mj_edits priced?

Pricing depends on the selected provider group and the model billing unit. The current input, output, request, or media prices are shown on this page before sign-up.

How should I evaluate mj_edits for my project?

Specify the subject, composition, lighting and style. Only include reference images or editing parameters when the endpoint supports them.