curl --request POST \
--url https://api.mage.space/v1/photoshoot/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Wearing the same gold watch in every photo",
"aspect_ratio": "4:5",
"image": "https://example.com/input.jpg",
"vibe": "oldMoney",
"count": 8
}
'import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('photoshoot', {
prompt: 'Wearing the same gold watch in every photo',
aspect_ratio: '4:5',
image: 'https://example.com/input.jpg',
vibe: 'oldMoney',
count: 8,
});
console.log(request.result.url);from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("photoshoot", {
"prompt": "Wearing the same gold watch in every photo",
"aspect_ratio": "4:5",
"image": "https://example.com/input.jpg",
"vibe": "oldMoney",
"count": 8,
})
print(request["result"]["url"])const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'Wearing the same gold watch in every photo',
aspect_ratio: '4:5',
image: 'https://example.com/input.jpg',
vibe: 'oldMoney',
count: 8
})
};
fetch('https://api.mage.space/v1/photoshoot/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff",
"status": "in_progress",
"architecture": "photoshoot",
"model_id": "photoshoot",
"created_at": "2026-09-17T14:52:48.000Z",
"updated_at": "2026-09-17T14:52:49.000Z",
"billing": {
"mode": "gems",
"gems_charged": 760
},
"result": null,
"results": [],
"error": null,
"status_url": "https://api.mage.space/v1/requests/d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff/status",
"cancel_url": "https://api.mage.space/v1/requests/d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff/cancel"
}{
"error": {
"code": "invalid_config",
"message": "`resolution` must be one of: 768P, 2K."
}
}{
"error": {
"code": "unauthorized",
"message": "The API key is invalid or has been revoked."
}
}{
"error": {
"code": "insufficient_gems",
"message": "This generation costs 40 gems and the account balance is too low.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff",
"gems_required": 40
}
}{
"error": {
"code": "content_blocked",
"message": "The request was blocked by Mage's content policy.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff"
}
}{
"error": {
"code": "architecture_retired",
"message": "This architecture has been retired.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff"
}
}{
"error": {
"code": "too_many_requests",
"message": "At most 20 generations may be in flight at once for this account; 20 are running now."
}
}{
"error": {
"code": "content_blocked",
"message": "The request was blocked by an external content restriction.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff"
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong on our side. Retry, and contact support if it persists."
}
}Photoshoot
Generate images with Photoshoot through the Mage API: the fields of POST /v1/photoshoot/generate, its options by model, the rules it enforces, and its gem price.
curl --request POST \
--url https://api.mage.space/v1/photoshoot/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Wearing the same gold watch in every photo",
"aspect_ratio": "4:5",
"image": "https://example.com/input.jpg",
"vibe": "oldMoney",
"count": 8
}
'import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('photoshoot', {
prompt: 'Wearing the same gold watch in every photo',
aspect_ratio: '4:5',
image: 'https://example.com/input.jpg',
vibe: 'oldMoney',
count: 8,
});
console.log(request.result.url);from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("photoshoot", {
"prompt": "Wearing the same gold watch in every photo",
"aspect_ratio": "4:5",
"image": "https://example.com/input.jpg",
"vibe": "oldMoney",
"count": 8,
})
print(request["result"]["url"])const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'Wearing the same gold watch in every photo',
aspect_ratio: '4:5',
image: 'https://example.com/input.jpg',
vibe: 'oldMoney',
count: 8
})
};
fetch('https://api.mage.space/v1/photoshoot/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff",
"status": "in_progress",
"architecture": "photoshoot",
"model_id": "photoshoot",
"created_at": "2026-09-17T14:52:48.000Z",
"updated_at": "2026-09-17T14:52:49.000Z",
"billing": {
"mode": "gems",
"gems_charged": 760
},
"result": null,
"results": [],
"error": null,
"status_url": "https://api.mage.space/v1/requests/d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff/status",
"cancel_url": "https://api.mage.space/v1/requests/d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff/cancel"
}{
"error": {
"code": "invalid_config",
"message": "`resolution` must be one of: 768P, 2K."
}
}{
"error": {
"code": "unauthorized",
"message": "The API key is invalid or has been revoked."
}
}{
"error": {
"code": "insufficient_gems",
"message": "This generation costs 40 gems and the account balance is too low.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff",
"gems_required": 40
}
}{
"error": {
"code": "content_blocked",
"message": "The request was blocked by Mage's content policy.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff"
}
}{
"error": {
"code": "architecture_retired",
"message": "This architecture has been retired.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff"
}
}{
"error": {
"code": "too_many_requests",
"message": "At most 20 generations may be in flight at once for this account; 20 are running now."
}
}{
"error": {
"code": "content_blocked",
"message": "The request was blocked by an external content restriction.",
"request_id": "d7e6c0f3-6699-4f6c-bb45-2ad7fd9158ff"
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong on our side. Retry, and contact support if it persists."
}
}| Detail | |
|---|---|
| Type | Image |
| Models | photoshoot (Photoshoot, default), photoshoot-ultra (Photoshoot Ultra), photoshoot-plus (Photoshoot Plus), photoshoot-lite (Photoshoot Lite) |
| Image inputs | image (reference image), additional_images (additional reference images), companion_images (photos of a second person or pet in every photo), look_images (photos a custom vibe takes its look from) |
| Video inputs | None |
| Gems | One fixed price per shoot, set by the tier, the number of photos and the resolution, and refunded if the shoot cannot finish |
| Model page | Photoshoot |
| On mage.space | Photoshoot on Mage |
Options by model
The tokens each variant accepts. A field left out inherits the architecture default, clamped to the variant’s first listed token when the variant does not offer it.| Model | resolution |
|---|---|
photoshoot | 2K, 4K |
photoshoot-ultra | 2K |
photoshoot-plus | 2K, 4K |
photoshoot-lite | 2K, 4K |
Mentions
This model takes no@handle mentions: saved characters, references, and audio references are not available on it. See Characters and references.
Rules
A request that breaks one of these is refused with400 invalid_config before any gems are charged.
imageis required.countis 4, 8, 12, 16; the request completes when the whole set is ready, usually in a few minutes, andresultslists every photo with the cover first.- Send up to 4 photos of the subject across
imageandadditional_images, up to 2companion_imagesof a second person or pet who appears in every photo, and, for thecustomvibe, up to 2look_imageswhose light, color and mood the shoot takes. vibeisautomatic(the shoot picks one),custom(promptdescribes the vibe) or a library vibe; with a library vibe,promptholds what every photo must keep, up to 1000 characters.model_idpicks the tier:photoshoot(the default, up to 4K),photoshoot-ultra(the closest likeness and the best shoots of two, 2K only),photoshoot-plus(a close likeness, up to 4K) orphotoshoot-lite(the lowest price, best with one person).- Every photo is checked for its subjects and retaken when it misses them; a shoot whose first photos are refused by the image model stops and is refunded.
billing.gems_charged, and the balance at GET /v1/account.Authorizations
Create a key in API → API Keys: select Create API key, name it in the popup, then select Create key. Copy the one-time key and send it as Authorization: Bearer mage_sk_…. Keys are for server-side code only.
Headers
A key of your choosing, 1 to 255 characters, scoped to your API key. A retried submit with the same key returns the original request with 200 instead of charging again. The key identifies the first submission made with it; later bodies are not compared. A refusal recorded under the key (its envelope carries request_id) replays the same way, so a new attempt needs a new key.
1 - 255Body
A partial config for Photoshoot.
One of the listed tokens.
automatic, custom, auraFarming, nightOutFlash, oldMoney, digicam, mirrorSelfie, goldenHour, gymAesthetic, bedAnywhere, underwaterDream, profilePics, fairyTale, sciFi, autumnWalk, moviePosters, fantasyEpic, lakeHouse, anime, aroundTheWorld, magazineCovers, yacht, storeListing, holidayCard, socialFeed, cherryBlossom, stormySea, editorial, iceland, snowDay, poolside, moods, eighties, tropical, giantAndTiny, forest, stickerPack, everyArtStyle, filmStill, alternateLives, blackAndWhite, perfumeAd, flowerField, tokyoNight, desertRoadTrip, adCampaign, desertDunes, slowMorning, blackTie, countryside, kyotoGarden, rainyWindow, santorini, renaissance, westernFilm, moonlight, vacationAlbum, hotelLobby, alpineCabin, privateJet, parisMorning, decades, blueHour, marrakech, londonFog, lisbon, farmersMarket, rooftopSunset, skiTrip, albumCovers Response
The request was accepted; poll status_url for the result. A retried submit whose Idempotency-Key was used before answers 200 with the same shape, the original request, and charges nothing.

