Variation
Subtle variation (varySubtle, equivalent to V1–V4) on one tile of an Imagine grid
כל התיעודPOST
/v1/midjourney/generations/variation{
"error": {
"code": 502,
"message": "Bad gateway. The server is temporarily unavailable",
"type": "bad_gateway"
}
}Creates a subtle variation (varySubtle, equivalent to V1–V4) from one tile of an Imagine grid. For a strong variation see High Variation.
| Item | Value |
|---|---|
| action | VARIATION |
| Billing | midjourney@variation[-speed] |
| Required | task_id + index, or task_id + custom_id |
| Optional | speed, metadata |
דוגמאות לבקשות
curl --request POST \
--url https://api.apisea.ai/v1/midjourney/generations/variation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"task_id": "task_01KQVZAPBW13W63DQNQZT7FCQK",
"index": 3,
"speed": "turbo"
}'Parameters
| Field | Description |
|---|---|
task_id | Original task ID returned by this platform (must be SUCCESS) |
nsfw_check | boolean — Optional; defaults to false. Run content moderation before submitting a Midjourney task. • true: use omni-moderation-latest to review prompts and input images • false: skip moderation without adding moderation cost or latency |
index | 1–4, maps to V1–V4; one of index / custom_id |
custom_id | Button ID for the corresponding action; when set, index auto-matching is skipped |
speed | relax / fast / turbo |
metadata | Custom metadata |
Request example
{
"task_id": "task_01KQVZAPBW13W63DQNQZT7FCQK",
"index": 3,
"speed": "turbo"
}Response
Submission returns a new local task_id. Poll GET /v1/tasks/{task_id}; on SUCCESS the result includes a new grid grid_image_url plus four image_urls:
{
"id": "task_xxx",
"status": "SUCCESS",
"action": "VARIATION",
"grid_image_url": "...",
"image_urls": ["...", "...", "...", "..."]
}version / niji from the source task are inherited automatically (affects billing fallback). To price by speed, configure midjourney@variation-fast / midjourney@variation-turbo.
Notes
- The parent task must be in SUCCESS state, otherwise it returns
400(task is not in SUCCESS state). indexmust be1–4;custom_idandindexare mutually exclusive.- Defaults to
varySubtle(subtle variation); for a strong variation use High Variation; Low Variation is the same action with a different billing key and identical behavior.
תגובות
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01KV52C0TEJSYZMCG0NCS4YWKK"
}
]
}מצאתם בעיה בתיעוד? אפשר לשלוח אימייל לכתובת support@apisea.ai.