Apiframe API Documentation
  • Pro Midjourney API
    • What's the Pro API?
    • API Endpoints
      • Imagine
      • Vary Strong and Subtle
      • Upscale Subtle and Creative
      • Variations
  • ORIGINAL API
    • Can I still use the Original API?
  • Get Started
  • My Account
    • Image credits
    • Generation modes
    • Delete My Account
  • Clients
    • Node.js Library
    • Python Client
    • Go Client
  • MEDIA UPLOAD APIS
    • Upload Image
    • Upload Audio
  • MIDJOURNEY
    • Authentication
    • Imagine
    • Reroll
    • Upscales
      • Upscale 1x
      • Upscale: Creative and Subtle
      • Upscale: 2x and 4x
    • Variations
    • Faceswap
    • Inpaint (Vary Region)
    • Outpaint (Zoom Out)
    • Pan
    • Shorten
    • Describe
    • Blend
    • Seed
    • Fetch
    • Fetch Many
    • Account Info
    • Statuses
    • Postman Collection
  • AI Photos
    • Upload and Prepare
    • Train
    • Generate
    • Best Input Images
  • IDEOGRAM
    • Imagine
    • Remix
    • Upscale
    • Describe
  • FLUX
    • Imagine
  • LUMA AI API
    • IMAGINE
    • EXTEND
  • SUNO AI API
    • IMAGINE
    • UPLOAD
    • EXTEND
    • LYRICS
  • UDIO AI API
    • IMAGINE
  • RUNWAY ML API
    • IMAGINE
  • KLING AI API
    • IMAGINE
    • VIRTUAL TRY ON
  • SORA AI API
  • Webhooks
  • MJ Banned Words
  • Help Me With Integration
  • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. Pro Midjourney API
  2. API Endpoints

Variations

Generate four (4) new images from a previous generation task: Imagine, Upscale, Vary, or Variations.

PreviousUpscale Subtle and CreativeNextCan I still use the Original API?

Last updated 14 days ago

Was this helpful?

POST https://api.apiframe.ai/pro/variations

Headers

Name
Value

Content-Type

application/json

Authorization*

Your APIFRAME API Key

Body

Name
Type
Description

parent_task_id*

string

The task ID of the original task

index *

string

Can be 1, 2, 3, or 4

webhook_url

string

Task updates will be posted at this URL

webhook_secret

string

Will be passed as x-webhook-secret in the webhook call headers for authentication.

Response

// Success
{
  "task_id": "29e983ca-7e86-4017-a9e3-ef6fe9cd5f2a"
}
// Bad request
{
  "errors": [{ msg: "Invalid request" }]
}
// Unauthorized

This endpoint doesn't generate images instantly; You can use the endpoint to fetch the result or .

Fetch
webhooks