Get API Key Get API
Docs

Reroll

Regenerate 4 images from the source task's prompt (🔄). The whole grid is re-rolled, no index needed

Request example

curl --request POST \
  --url https://api.openveer.com/v1/midjourney/generations/reroll \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "task_id": "task_01KQVZAPBW13W63DQNQZT7FCQK",
    "speed": "fast"
  }'

Response example

{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01KV52C0TEJSYZMCG0NCS4YWKK"
    }
  ]
}

Regenerate 4 images from the source task's prompt (equivalent to the 🔄 button). The whole grid is re-rolled, so no index is needed.

Item Value
action REROLL
Billing midjourney@reroll[-speed]
Required task_id, or task_id + custom_id
Optional speed, metadata

Parameters

Field Description
task_id Original task ID returned by this platform
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
custom_id Optional; button ID for the corresponding reroll action
speed relax / fast / turbo
metadata Optional custom metadata

Auto matching

The service finds a reroll-related button from the source task buttons that contains ::reroll::, or matches reroll emoji.

Request example

{
  "task_id": "task_01KQVZAPBW13W63DQNQZT7FCQK",
  "speed": "fast"
}

Error responses

HTTP code description
400 4 task_id is required for reroll
400 4 task ... is not in SUCCESS state
404 3 task ... not found
502 9 Service rejected

Response

On success you receive a new local task_id. Poll GET /v1/tasks/{task_id}; on SUCCESS you get a fresh 2x2 grid with the same prompt.

The source task's prompt / version / niji / structured fields are inherited automatically (the seed may differ, so results differ). To price by speed, configure midjourney@reroll-fast / midjourney@reroll-turbo.

Notes

  • You can only reroll an imagine grid or a grid produced by reroll itself; you cannot reroll a task that already went through upscale / variation / pan, etc.
  • The parent task must be in SUCCESS state.

This documentation is built and hosted on Mintlify, a developer documentation platform.