Nano Banana Photo Packs API: AI Image Editing

Edit images with Nano Banana Photo Packs via the Muapi REST API. Pay per generation — no subscription needed.

Nano Banana Photo Packs API Reference

Endpoint

POST https://api.muapi.ai/api/v1/photo-pack

Submit a job with your MuApi API key in the x-api-key header, then poll https://api.muapi.ai/api/v1/predictions/{request_id}/result until status is completed.

Parameters

NameTypeRequiredDescription
image_urlstringYesURL of the reference face image.
categorystringNoThe category/style of the photo pack.Options: LinkedIn, Tinder, Bumble, OldMoney, Cyberpunk, CEO, CleanGirl, DarkAcademia, Anime, Doctor, Lawyer, MobWife, Bali, 90s, Fitness, Christmas, Halloween, EuropeanElegance, ChampionSportsMoment, JobSwapDaydream, TravelTheWorld, DatingPack, FlashPosePerfection, CapAndGown, CorporateBoss, RocknRollLuxury, TheBigWeddingDay, RusticCharm, DressedToImpress, IdentificationPhoto, DontMissYourProm, GoddessOfNature, BlackAndWhiteMagic, HomelyComforts, BalloonsBalloonsBalloons, BeautyBlooms, SuperheroAdventure, BoldFashionStatements, FantasyOutfits, OnTheCatwalk, HalloweenHorror, CosplayGalore, Ghibli, Pixar, SpiderVerseDefault: "LinkedIn"
aspect_ratiostringNoOutput image aspect ratio.Options: 1:1, 3:4, 4:3, 9:16, 16:9Default: "1:1"
model_namestringNoThe underlying model to use.Options: nano-banana-edit, nano-banana-2-edit, nano-banana-pro-editDefault: "nano-banana-2-edit"

cURL example

REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/photo-pack \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image_url":"https://example.com/your-image_url"}' | 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}/photo-pack", headers=headers, json={"image_url":"https://example.com/your-image_url"})
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.