🔥 Black Friday AI API deals are live· 🎬 Seedance 2.5 — 20% off, up to 42% below market, until Nov 30Ends in--d --:--:--See deals →

Midjourney V7 API: AI इमेज जेनरेशन

Muapi REST API के माध्यम से Midjourney V7 का उपयोग करके छवियां उत्पन्न करें। प्रति-उपयोग भुगतान — कोई सदस्यता आवश्यक नहीं।

इंटरैक्टिव मॉडल नियंत्रण

मॉडल midjourney-v7, लचीली पे-एज-यू-गो बिलिंग और उच्च समवर्तीता के साथ MuAPI पर उपलब्ध है।

Midjourney V7 API संदर्भ

Endpoint

POST https://api.muapi.ai/api/v1/midjourney-v7

x-api-key हेडर में अपनी Muapi API कुंजी के साथ एक कार्य सबमिट करें, फिर मतदान करें https://api.muapi.ai/api/v1/predictions/{request_id}/result until status is completed.

Parameters

Nameप्रकारRequiredविवरण
promptstringYesछवि.
image_urlstringNoOptional reference image URL. Influences the style and content of the generation.
aspect_ratiostringNoआउटपुटइमेजस्पेक्ट्रैटियो.विकल्प: 1:1, 16:9, 9:16, 3:4, 4:3, 21:9डिफ़ॉल्ट: "1:1"
stylizeintNo. : 0-1000. तत्पर, ।डिफ़ॉल्ट: 100
chaosintNo4 छवि. : 0-100. .डिफ़ॉल्ट: 0
weirdintNo. : 0-3000.डिफ़ॉल्ट: 0
negative_promptstringNoछवि, "पाठ, वॉटरमार्क"।
seedintNo. : 0–4294967295। तत्पर।डिफ़ॉल्ट: 0

cURL example

REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/midjourney-v7 \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"<prompt>"}' | jq -r .request_id)

curl -s https://api.muapi.ai/api/v1/predictions/$REQUEST_ID/result -H "x-api-key: $MUAPI_API_KEY"

Python example

import os, time, requests

API = "https://api.muapi.ai/api/v1"
headers = {"x-api-key": os.environ["MUAPI_API_KEY"]}

r = requests.post(f"{API}/midjourney-v7", headers=headers, json={"prompt":"<prompt>"})
request_id = r.json()["request_id"]

while True:
    res = requests.get(f"{API}/predictions/{request_id}/result", headers=headers).json()
    if res["status"] == "completed":
        print(res["outputs"]); break
    if res["status"] == "failed":
        raise RuntimeError(res.get("error"))
    time.sleep(3)

Full docs and agent/MCP integration: llms.txt. Get an API key at muapi.ai/access-keys.