madeAPI
Log in
Documentation

Made API

Every tool. One key.

Face swap a photo or a clip, recast a video, erase a person from it, cut out a background, relight a portrait, swap an outfit. Each is one call to the Made API, quoted in credits before it runs. The same key runs 31 tools and 147 image, video and audio models, on the same credits as the Made app.

One call runs each tool: POST /v1/tools/{id}/run

  • Face Swap face-swap
  • Video Face Swap video-face-swap
  • Recast Video recast-video
  • Video Object Remover video-object-remover
  • Background Remover background-remover
  • Relight relight
  • Outfit Swap style-snap

Quickstart

Create a key

Make one in Account → API keys. Its secret is shown once. Send it as a bearer token from your server, never from a browser. Keys belong to your account and can be revoked any time.

Authorization: Bearer made_sk_…

Check your credits

Every run spends credits from your Made balance. They come with a plan, roll over from month to month, and you can add more on Billing.

// Node 18+
const response = await fetch('https://www.made.app/api/v1/balance', {
  headers: { Authorization: `Bearer ${process.env.MADE_API_KEY}` },
});
const { balanceCredits } = await response.json();
console.log(`${balanceCredits} credits`);
import os
import requests

response = requests.get(
    "https://www.made.app/api/v1/balance",
    headers={"Authorization": f"Bearer {os.environ['MADE_API_KEY']}"},
)
print(response.json()["balanceCredits"], "credits")
curl https://www.made.app/api/v1/balance \
  -H "Authorization: Bearer $MADE_API_KEY"
# {"balanceCredits": 52, "balanceCents": 520, …}

Run something

Quote it, run it at that price, poll the job until it’s done. The base URL is https://www.made.app/api.

// Node 18+. Quote an image, make it, wait for it.
import { randomUUID } from 'node:crypto';

const base = 'https://www.made.app/api';
const headers = {
  Authorization: `Bearer ${process.env.MADE_API_KEY}`,
  'Content-Type': 'application/json',
};

async function api(path, body) {
  const response = await fetch(base + path, {
    method: body ? 'POST' : 'GET',
    headers,
    ...(body && { body: JSON.stringify(body) }),
  });
  const data = await response.json();
  if (!response.ok) throw new Error(data.error);
  return data;
}

const input = {
  model: 'nano_banana_2',
  prompt: 'A red kite over a wheat field at golden hour',
  aspect_ratio: '16:9',
};

// 1. Quote it. Free: no job, no charge.
const { cost } = await api('/v1/cost', input);
console.log(`Costs ${cost.credits} credits`);

// 2. Run it at that price. A retry with the same request_id gets the same job.
let job = await api('/v1/generations', {
  ...input,
  request_id: randomUUID(),
  max_cost_cents: cost.customerCostCents,
});

// 3. Poll until it's done.
while (!['succeeded', 'failed', 'canceled'].includes(job.status)) {
  await new Promise(resolve => setTimeout(resolve, 3000));
  job = await api(`/v1/generations/${job.id}`);
}
console.log(job.status === 'succeeded' ? job.result.assets[0].url : job.error);
# Quote an image, make it, wait for it.
import os
import time
import uuid

import requests

BASE = "https://www.made.app/api"
HEADERS = {"Authorization": f"Bearer {os.environ['MADE_API_KEY']}"}


def api(path, body=None):
    if body is None:
        response = requests.get(BASE + path, headers=HEADERS)
    else:
        response = requests.post(BASE + path, headers=HEADERS, json=body)
    data = response.json()
    if not response.ok:
        raise RuntimeError(data.get("error"))
    return data


payload = {
    "model": "nano_banana_2",
    "prompt": "A red kite over a wheat field at golden hour",
    "aspect_ratio": "16:9",
}

# 1. Quote it. Free: no job, no charge.
cost = api("/v1/cost", payload)["cost"]
print(f"Costs {cost['credits']} credits")

# 2. Run it at that price. A retry with the same request_id gets the same job.
job = api("/v1/generations", {
    **payload,
    "request_id": str(uuid.uuid4()),
    "max_cost_cents": cost["customerCostCents"],
})

# 3. Poll until it's done.
while job["status"] not in ("succeeded", "failed", "canceled"):
    time.sleep(3)
    job = api(f"/v1/generations/{job['id']}")
print(job["result"]["assets"][0]["url"] if job["status"] == "succeeded" else job.get("error"))
# bash, curl and jq. Quote an image, make it, wait for it.
base=https://www.made.app/api
auth="Authorization: Bearer $MADE_API_KEY"
input='{"model":"nano_banana_2","prompt":"A red kite over a wheat field at golden hour","aspect_ratio":"16:9"}'

# 1. Quote it. Free: no job, no charge.
quote=$(curl -sS --fail-with-body "$base/v1/cost" -H "$auth" \
  -H 'Content-Type: application/json' -d "$input")
echo "Costs $(echo "$quote" | jq .cost.credits) credits"

# 2. Run it at that price. A retry with the same request_id gets the same job.
body=$(echo "$input" | jq --arg id "$(uuidgen)" \
  --argjson cap "$(echo "$quote" | jq .cost.customerCostCents)" \
  '. + {request_id: $id, max_cost_cents: $cap}')
job=$(curl -sS --fail-with-body "$base/v1/generations" -H "$auth" \
  -H 'Content-Type: application/json' -d "$body")

# 3. Poll until it's done.
id=$(echo "$job" | jq -r .id)
until echo "$job" | jq -e '.status | IN("succeeded", "failed", "canceled")' > /dev/null; do
  sleep 3
  job=$(curl -sS --fail-with-body "$base/v1/generations/$id" -H "$auth")
done
echo "$job" | jq -r '.result.assets[0].url // .error'

Tools

A tool is a finished edit: you send the photos or clips, and Made picks the model and writes the prompt. GET /v1/tools lists every tool with its slots (the media it takes), its settings and the JSON schema of its body. No key needed to read it.

Video tools

  • Video Face Swap video-face-swap Put the face from a photo onto the person in a clip.
  • Recast Video recast-video Recast a whole clip as the person in a still. Recast step 3.
  • Video Object Remover video-object-remover Erase a person, a crowd or an object from a clip.
  • Video Object Replacement video-object-replacement Swap a product, outfit, character or setting in a clip.
  • Motion Transfer motion-transfer Make the person in a photo perform any clip’s moves.
  • Video Background Remover video-background-remover Remove a video’s background, or put a color behind it.
  • Extend Video video-extend Continue a clip from its last frame.
  • Transitions transitions A video that moves from a first frame to a last frame.
  • Effects effects Turn a photo into a short effect video.
  • Behind the Scenes behind-the-scenes A vertical video that pulls back to reveal a film set.

Photo tools

  • Face Swap face-swap Put the face from one photo on the person in another.
  • Background Remover background-remover A transparent PNG cut-out of the subject.
  • Relight relight Change a photo’s light: direction, softness, color, brightness.
  • Outfit Swap style-snap Dress the person in one photo in the outfit from another.
  • Object Remover object-remover Erase a named object or person from a photo.
  • Text Remover text-remover Erase captions, watermarks and signs from a photo.
  • Character Swap character-swap Put a character into another photo in place of its person.
  • Character character A new scene with the same person, from one photo.
  • Angles angles Re-photograph a subject from a new camera angle.
  • Zooms zooms Reframe a photo closer or wider.
  • AI Stylist ai-stylist Restyle a person with outfit, background and pose choices.
  • Style Reference image-reference Restyle a photo with another image’s look.
  • Skin Enhancer skin-enhancer Refine skin in a portrait, keeping texture and identity.
  • Unblur unblur Sharpen a blurry photo and restore faces.
  • Photo Colorizer photo-colorizer Colorize a black-and-white photo.
  • Image Resizer image-resizer Resize to exact pixels. Free, no AI.
  • Image Compressor image-compressor Compress to a file size. Free, no AI.
  • Image Converter image-converter Convert to JPG, PNG, WebP or AVIF. Free, no AI.
  • Video Frame video-frame Grab one frame of a clip as a JPEG. Free. Recast step 1.
  • Motion Still motion-still Put a person into the first frame of a move.
  • Recast Still recast-still Turn the person in a frame into someone else. Recast step 2.

Run one

Slots take media you uploaded (media_… ids), the output of an earlier job (job_… ids) or a saved character (ref_… ids), not URLs. So a run is four steps:

  • Upload each file: POST /v1/media with its content_type, PUT the bytes to upload.url with upload.headers, then POST /v1/media/{id}/confirm. JPEG, PNG, WebP, MP4, WebM, MOV, MP3 or WAV, up to 200 MB each.
  • Quote it with POST /v1/tools/{id}/quote and the body { media, settings }. Free.
  • Run it with POST /v1/tools/{id}/run: the same body plus request_id and max_cost_cents from the quote.
  • Poll GET /v1/generations/{id} until it succeeds. The files are in result.assets[].url.
// Node 18+. Face Swap: upload two photos, quote, run, wait.
import { readFile } from 'node:fs/promises';
import { randomUUID } from 'node:crypto';

const base = 'https://www.made.app/api';
const auth = { Authorization: `Bearer ${process.env.MADE_API_KEY}` };

async function api(path, body) {
  const response = await fetch(base + path, {
    method: body ? 'POST' : 'GET',
    headers: { ...auth, 'Content-Type': 'application/json' },
    ...(body && { body: JSON.stringify(body) }),
  });
  const data = await response.json();
  if (!response.ok) throw new Error(data.error);
  return data;
}

// 1. Upload each photo: reserve it, PUT the bytes, confirm.
async function upload(file, contentType) {
  const { media, upload } = await api('/v1/media', { content_type: contentType, filename: file });
  const put = await fetch(upload.url, { method: 'PUT', headers: upload.headers, body: await readFile(file) });
  if (!put.ok) throw new Error(`Upload failed: ${put.status}`);
  await api(`/v1/media/${media.id}/confirm`, {});
  return media.id;
}

const input = {
  media: {
    image: await upload('photo.jpg', 'image/jpeg'), // the photo
    face: await upload('face.jpg', 'image/jpeg'), // the face to put in it
  },
  settings: {},
};

// 2. Quote it for free, then run it at that price.
const quote = await api('/v1/tools/face-swap/quote', input);
console.log(`Costs ${quote.credits} credits`);
let job = await api('/v1/tools/face-swap/run', {
  ...input,
  request_id: randomUUID(),
  max_cost_cents: quote.costCents,
});

// 3. Poll until it's done.
while (!['succeeded', 'failed', 'canceled'].includes(job.status)) {
  await new Promise(resolve => setTimeout(resolve, 3000));
  job = await api(`/v1/generations/${job.id}`);
}
console.log(job.status === 'succeeded' ? job.result.assets[0].url : job.error);
# Face Swap: upload two photos, quote, run, wait.
import os
import time
import uuid

import requests

BASE = "https://www.made.app/api"
HEADERS = {"Authorization": f"Bearer {os.environ['MADE_API_KEY']}"}


def api(path, body=None):
    if body is None:
        response = requests.get(BASE + path, headers=HEADERS)
    else:
        response = requests.post(BASE + path, headers=HEADERS, json=body)
    data = response.json()
    if not response.ok:
        raise RuntimeError(data.get("error"))
    return data


# 1. Upload each photo: reserve it, PUT the bytes, confirm.
def upload(path, content_type):
    reserved = api("/v1/media", {"content_type": content_type, "filename": path})
    with open(path, "rb") as file:
        put = requests.put(reserved["upload"]["url"], headers=reserved["upload"]["headers"], data=file)
    put.raise_for_status()
    api(f"/v1/media/{reserved['media']['id']}/confirm", {})
    return reserved["media"]["id"]


payload = {
    "media": {
        "image": upload("photo.jpg", "image/jpeg"),  # the photo
        "face": upload("face.jpg", "image/jpeg"),  # the face to put in it
    },
    "settings": {},
}

# 2. Quote it for free, then run it at that price.
quote = api("/v1/tools/face-swap/quote", payload)
print(f"Costs {quote['credits']} credits")
job = api("/v1/tools/face-swap/run", {
    **payload,
    "request_id": str(uuid.uuid4()),
    "max_cost_cents": quote["costCents"],
})

# 3. Poll until it's done.
while job["status"] not in ("succeeded", "failed", "canceled"):
    time.sleep(3)
    job = api(f"/v1/generations/{job['id']}")
print(job["result"]["assets"][0]["url"] if job["status"] == "succeeded" else job.get("error"))
# bash, curl and jq. Face Swap: upload image.jpg (the photo) and
# face.jpg (the face to put in it), quote, run, wait.
base=https://www.made.app/api
auth="Authorization: Bearer $MADE_API_KEY"

# 1. Upload each photo: reserve it, PUT the bytes, confirm.
media='{}'
for slot in image face; do
  reserved=$(curl -sS --fail-with-body "$base/v1/media" -H "$auth" \
    -H 'Content-Type: application/json' \
    -d "{\"content_type\":\"image/jpeg\",\"filename\":\"$slot.jpg\"}")
  headers=()
  while IFS= read -r header; do headers+=(-H "$header"); done \
    < <(echo "$reserved" | jq -r '.upload.headers | to_entries[] | "\(.key): \(.value)"')
  curl -sS --fail -X PUT "$(echo "$reserved" | jq -r .upload.url)" "${headers[@]}" \
    --data-binary "@$slot.jpg"
  id=$(echo "$reserved" | jq -r .media.id)
  curl -sS --fail-with-body -X POST "$base/v1/media/$id/confirm" -H "$auth" > /dev/null
  media=$(echo "$media" | jq --arg slot "$slot" --arg id "$id" '. + {($slot): $id}')
done
input=$(jq -n --argjson media "$media" '{media: $media, settings: {}}')

# 2. Quote it for free, then run it at that price.
quote=$(curl -sS --fail-with-body "$base/v1/tools/face-swap/quote" -H "$auth" \
  -H 'Content-Type: application/json' -d "$input")
echo "Costs $(echo "$quote" | jq .credits) credits"
body=$(echo "$input" | jq --arg id "$(uuidgen)" \
  --argjson cap "$(echo "$quote" | jq .costCents)" \
  '. + {request_id: $id, max_cost_cents: $cap}')
job=$(curl -sS --fail-with-body "$base/v1/tools/face-swap/run" -H "$auth" \
  -H 'Content-Type: application/json' -d "$body")

# 3. Poll until it's done.
id=$(echo "$job" | jq -r .id)
until echo "$job" | jq -e '.status | IN("succeeded", "failed", "canceled")' > /dev/null; do
  sleep 3
  job=$(curl -sS --fail-with-body "$base/v1/generations/$id" -H "$auth")
done
echo "$job" | jq -r '.result.assets[0].url // .error'

Recast is three tools in a row. video-frame takes the clip’s first frame, recast-still turns the person in it into someone else, and recast-video recasts the whole clip as that person. Pass each job’s id to the next one’s slot.

Models

The API runs 147 models: 87 video, 51 image and 9 audio. GET /v1/models lists each with what it takes (durations, aspect ratios, sizes, resolutions, media roles) and its price. No key needed. Try any of them in the playground; its API tab writes the request for your settings.

A model run is the quickstart’s third step: POST /v1/cost for the price, POST /v1/generations to start it (202 with a job), then GET /v1/generations/{id} until the status is succeeded, failed or canceled. Model ids are snake_case, like nano_banana_2 or kling_3_pro. Anything in a model’s allowedParams goes in params.

Reference media

Image-to-video, edit and reference models take medias: an array of { value, role }. The value is an https URL, an uploaded media_… id, a job_… id or a saved ref_… id. A model’s mediaRoles lists the roles it takes and requiredMedia the ones it needs.

{
  "model": "kling_3_pro_i2v",
  "prompt": "slow push-in, soft morning light",
  "duration": 5,
  "medias": [{ "value": "https://example.com/product.jpg", "role": "start_image" }]
}

Resolution and audio tiers

Where a model is billed by output resolution, its catalog entry carries costPerSecondByResolution and the request takes resolution with that exact tier name. Models that price sound carry audioPricing and take audio: true|false. Leave either out for the default tier. An undeclared tier is refused with 400, never re-priced, and /v1/cost quotes the tier you asked for.

{ "model": "wan_3", "prompt": "…", "duration": 5, "resolution": "480p" }
{ "model": "kling_3_pro", "prompt": "…", "duration": 5, "audio": false }

Characters

Star up to three saved characters with characters: ["ref_…"] on any model that takes reference images: their pictures go first, and the prompt keeps each one as they look. Characters are made and saved in Made, in the AI Influencer tool or over MCP. GET /v1/creators lists yours with their ref_… ids.

{
  "model": "nano_banana_2",
  "prompt": "She toasts the camera at a rooftop party, flash photo",
  "characters": ["ref_…"]
}

Safe retries and spending caps

Send both with every run. Tools require them.

  • request_id is your own id for this submission: 8 to 128 letters, digits, _ or -. If a response is lost, send the same body with the same id again and you get the same job back, charged once. The same id with a different body is refused with 409. A run that was refused with 400 or 402 made nothing, so its id is free to send again once you’ve fixed it.
  • max_cost_cents is the price you approved, in cents: the quote’s customerCostCents, or costCents for a tool. It holds the provider the job was quoted on: if that price moved past it, the API answers 409 before any credits move. Quote again. If the provider the job was quoted on fails, Made moves it to the next compatible provider and charges that provider’s price, which can be more than max_cost_cents; your balance has to cover it. To have the job fail and be refunded instead, send the header X-MADE-Backup-Pricing: cap.
{
  "model": "kling_3_pro",
  "prompt": "a red kite over a wheat field",
  "duration": 5,
  "request_id": "order-1042-take-1",
  "max_cost_cents": 60
}

OpenAI-compatible images

POST /v1/images/generations takes OpenAI’s Images request (model, prompt, n, size, quality, background, output_format) and answers right away with base64 images plus a made receipt. Point an existing OpenAI client at https://www.made.app/api/v1 with your Made key. gpt-image-2.5-flare and gpt-image-2.5-sunburst run OpenAI’s original models, unbatched, at the sizes the catalog prices (auto means 1024x1024, and quality auto means medium). For the cheapest drafts, gpt_image_2_5_fast on /v1/generations is Made’s batched version.

// Node 18+. OpenAI's own SDK works too: baseURL 'https://www.made.app/api/v1'.
const response = await fetch('https://www.made.app/api/v1/images/generations', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.MADE_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'gpt-image-2.5-flare',
    prompt: 'A red kite over a wheat field at golden hour',
    size: '1024x1024',
    quality: 'medium',
  }),
});
const result = await response.json();
// result.data[0].b64_json is the image; result.made is the receipt.
# OpenAI's own SDK works too: base_url="https://www.made.app/api/v1".
import os

import requests

response = requests.post(
    "https://www.made.app/api/v1/images/generations",
    headers={"Authorization": f"Bearer {os.environ['MADE_API_KEY']}"},
    json={
        "model": "gpt-image-2.5-flare",
        "prompt": "A red kite over a wheat field at golden hour",
        "size": "1024x1024",
        "quality": "medium",
    },
)
result = response.json()
# result["data"][0]["b64_json"] is the image; result["made"] is the receipt.
curl https://www.made.app/api/v1/images/generations \
  -H "Authorization: Bearer $MADE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"model":"gpt-image-2.5-flare","prompt":"A red kite over a wheat field at golden hour","size":"1024x1024","quality":"medium"}'

Errors

Every error is JSON with an error message. The OpenAI-compatible route answers in OpenAI’s error shape instead.

StatusWhat happened
400The request has a value the model or tool doesn’t take, like an undeclared resolution or a missing required reference. The message names it.
401The key is missing, wrong or revoked.
402Not enough credits. The body says what the run costs and what you have (below). Nothing was made, so send the same request again once you’ve added credits.
404No such job, tool or upload on this account.
409The price moved past max_cost_cents (quote again), or the request_id already belongs to a different request.
429Too many failed runs in the last few minutes (each one was refunded), or the daily upload limit. Wait, then try again.
5xxSomething failed on Made’s side. Retry with the same request_id: if the first try made a job, you get that job back instead of a second charge.

A 402 carries code: "insufficient_credits", what the run costs and your balance in credits, and where to add credits:

HTTP/1.1 402 Payment Required

{
  "error": "Insufficient credits: this costs 6 credits and your balance is 0.",
  "code": "insufficient_credits",
  "cost_credits": 6,
  "balance_credits": 0,
  "add_credits_url": "https://www.made.app/billing"
}

Credits, in plain terms

  • A credit is ten cents. Every run costs a whole number of credits, quoted before it starts. Free tools cost 0.
  • Fields named in credits count credits: cost.credits, a tool quote’s credits, balanceCredits, and a 402’s cost_credits and balance_credits.
  • Fields named in cents count cents, so 60 is 6 credits: customerCostCents, costCents, max_cost_cents and balanceCents.
  • Two older names don’t follow that. The numeric credit fields inside a model’s pricing (like creditsAtDefaultDuration) count cents, and the credits field of GET /v1/balance counts dollars. Read balanceCredits, read pricing.display for a summary, and quote with /v1/cost for the exact number.
  • Credits are taken when a job is accepted and come back on their own if it fails or is canceled.
  • Every model’s price is on the price sheet. Credits come with a plan, unused credits roll over, and Billing adds more.

Endpoints

All of them under https://www.made.app/api, described in full in the OpenAPI spec.

Catalog

No key needed.

MethodPathWhat it does
GET/v1/modelsEvery model with what it takes and its price. Filter with ?kind=image|video|audio or ?query=
GET/v1/toolsEvery tool with its slots, settings and the JSON schema of its body.
GET/v1/tools/{id}One tool.
GET/v1/openapi.jsonThis API as OpenAPI 3.1.

Quotes

Free: no job, no charge.

MethodPathWhat it does
POST/v1/costThe price of a generation request, in credits (cost.credits) and cents.
POST/v1/tools/{id}/quoteThe price of a tool run.
POST/v1/generation-batches/quoteThe price of a batch.
POST/v1/compose-video/estimateThe price of a timeline render.

Run

Each answers 202 with a job to poll, except the OpenAI-compatible route.

MethodPathWhat it does
POST/v1/tools/{id}/runRun a tool. Needs request_id and max_cost_cents.
POST/v1/generationsRun a model.
POST/v1/generation-batchesUp to 12 generations, quoted and charged together.
POST/v1/images/generationsOpenAI Images-compatible. Answers with the images.
POST/v1/reframeChange a video’s aspect ratio.
POST/v1/expandExpand an image’s canvas with generated fill.
POST/v1/compose-videoTrims, fits and text overlays on a timeline, rendered to one MP4.
POST/v1/compose-imageImage, text and shape layers rendered to one image.

Jobs

MethodPathWhat it does
GET/v1/generations/{id}Poll a job. Output URLs are signed again on every read.
GET/v1/generationsYour jobs, newest first (?limit=, ?before=<ISO time>, ?tool=<tool id>).
POST/v1/generations/{id}/cancelCancel a pending or processing job. Its credits come back.
DELETE/v1/generations/{id}Remove a finished job from your history.

Media

MethodPathWhat it does
POST/v1/mediaReserve an upload: a media id and a signed PUT (upload.url, upload.headers).
POST/v1/media/{id}/confirmConfirm the upload after the PUT.
GET/v1/mediaYour uploads.

Account

MethodPathWhat it does
GET/v1/balanceYour balance in credits (balanceCredits).
GET/v1/ledgerEvery spend, refund and grant, with the balance after each.
GET/v1/keysYour API keys.
POST/v1/keysCreate a key. Its made_sk_… secret is in this response only.
DELETE/v1/keys/{id}Revoke a key.
GET/v1/creatorsYour saved characters and their ref_… ids.

Agents: use the MCP server

For Claude, ChatGPT, Cursor and other MCP clients, connect https://mcp.made.app/mcp instead. It signs in with your Made account, needs no key, runs the same tools at the same prices, and puts the price in every tool response. MCP setup.

Made for Blender

A Blender add-on built on this API. It renders your camera’s view of a blockout as a previs, uploads it with POST /v1/media, quotes it with /v1/cost and films it on seedance_2_5_video_reference or seedance_2_0_mini_video_reference with a request_id and max_cost_cents. It also runs a local MCP bridge so assistants can edit the open scene. Made for Blender.

The OpenAPI spec is at https://www.made.app/api/v1/openapi.json and the summary for AI assistants at /llms.txt. Questions: support@made.app.