AdCamera

Docs

API and MCP reference

Everything the web app does, over HTTP. Setup guides for Claude Code, Codex, Cursor and other MCP clients walk through the install.

Overview

One job takes one product page URL and returns an ad pack: a few selling angles (concepts), each with a headline, ad copy, a call to action and product images in the sizes you ask for, plus an optional 5 second video. The REST API lives under https://adcamera.com/v1 and the MCP server at https://adcamera.com/mcp. Both use the same account and the same credits as the web app.

Requests and responses are JSON. A pack usually takes a few minutes and stops after about 15, so creating one returns a job id right away and you poll until its status is done or failed.

Authentication

Sign in at adcamera.com/app with Google or an emailed link, open API keys and create a key. Keys start with adc_ and are shown once: AdCamera stores a hash and the last 4 characters, so a lost key can't be recovered. Revoke it in the web app and make a new one.

Send the key as a bearer token on every request:

Header

Authorization: Bearer adc_...

Keys are managed only from the signed-in web app. A request to /v1/keys with a key gets 403, so a leaked key can't mint new ones.

Create an ad pack

POST/v1/ads

Checks your balance, charges the full cost up front and queues the job. Body fields:

FieldTypeDefaultWhat it does
urlstring (URL)requiredProduct page URL, e.g. a Shopify product page
conceptsinteger, 1 to 63How many distinct ad concepts (angles) to make
formatsarray of "1:1", "4:5", "9:16"["1:1", "4:5", "9:16"]Image formats per concept: 1:1 feed, 4:5 Meta feed, 9:16 stories/reels/TikTok
videobooleanfalseAlso make one 5 second 9:16 product video per concept from its 9:16 image. Needs "9:16" in formats

The URL must be an http or https product page on the default port. Shopify stores are read through their product JSON; other stores through the page's structured data or Open Graph tags.

Request

curl -X POST https://adcamera.com/v1/ads \
  -H "Authorization: Bearer $ADCAMERA_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "url": "https://yourstore.com/products/vitamin-c-serum",
    "concepts": 3,
    "formats": ["4:5", "9:16"],
    "video": true
  }'

Response · 202 Accepted

{
  "id": "job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36",
  "creditsCharged": 18,
  "status": "queued",
  "poll": "https://adcamera.com/v1/ads/job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36"
}

Get an ad pack

GET/v1/ads/{id}

Poll every 20 to 30 seconds until status is done or failed. The status goes queued, planning (reading the page and writing the angles), generating, then done. product is null until the page is read; productSummary and concepts fill in once planning finishes; each asset's url stays null until that file is ready.

options is what the pack was ordered with. creditsCharged is what it cost up front and creditsRefunded what came back for files that weren't made; refunds land when the pack finishes.

Request

curl https://adcamera.com/v1/ads/job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36 \
  -H "Authorization: Bearer $ADCAMERA_API_KEY"

Response · 200 OK, shortened to one concept

{
  "id": "job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36",
  "status": "done",
  "productUrl": "https://yourstore.com/products/vitamin-c-serum",
  "product": {
    "title": "Vitamin C Serum 15%",
    "brand": "Yourstore",
    "image": "https://yourstore.com/cdn/shop/files/serum.jpg",
    "price": { "amount": 32, "currency": "USD" }
  },
  "options": { "concepts": 3, "formats": ["4:5", "9:16"], "video": true },
  "creditsCharged": 18,
  "creditsRefunded": 1,
  "error": null,
  "createdAt": "2026-12-01T09:14:03.512Z",
  "productSummary": "A 15% vitamin C serum with ferulic acid in a 30 ml dropper bottle.",
  "concepts": [
    {
      "angle": "Morning routine",
      "headline": "Two drops. Brighter by Friday.",
      "primaryText": "15% vitamin C with ferulic acid in a light serum…",
      "cta": "Shop now",
      "assets": [
        {
          "kind": "image",
          "format": "4:5",
          "status": "failed",
          "url": null,
          "error": "Blocked by the content filter"
        },
        {
          "kind": "image",
          "format": "9:16",
          "status": "done",
          "url": "https://adcamera.com/media/job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36/job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36_0_image_9x16.png",
          "error": null
        },
        {
          "kind": "video",
          "format": "9:16",
          "status": "done",
          "url": "https://adcamera.com/media/job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36/job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36_0_video_9x16.mp4",
          "error": null
        }
      ]
    }
  ]
}

File URLs under /media work without a key, so you can pass them straight to an ad platform, a download script or a teammate. A job id from another account answers 404.

When something goes wrong, error is a sentence you can show the seller. A problem with the product page says what to check, for example "The product page has no product image." A problem on AdCamera's side reads "We couldn't finish this pack on our side." A failed asset's error is one of "Blocked by the content filter", "Couldn't be generated", "Took too long to generate" or "Not made because the pack stopped".

List ad packs

GET/v1/ads

The account's packs, newest first: the same fields as GET /v1/ads/{id} without productSummary and concepts, plus previewUrl (the first finished image, or null) and the delivered and failed file counts.

QueryTypeDefaultWhat it does
limitinteger, 1 to 5020How many packs to return
beforestringnoneReturn packs older than this one. Pass the next value from the previous page.

next is null on the last page.

Request

curl "https://adcamera.com/v1/ads?limit=20" \
  -H "Authorization: Bearer $ADCAMERA_API_KEY"

Response · 200 OK, shortened to one pack

{
  "ads": [
    {
      "id": "job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36",
      "status": "done",
      "productUrl": "https://yourstore.com/products/vitamin-c-serum",
      "product": {
        "title": "Vitamin C Serum 15%",
        "brand": "Yourstore",
        "image": "https://yourstore.com/cdn/shop/files/serum.jpg",
        "price": { "amount": 32, "currency": "USD" }
      },
      "options": { "concepts": 3, "formats": ["4:5", "9:16"], "video": true },
      "creditsCharged": 18,
      "creditsRefunded": 1,
      "error": null,
      "createdAt": "2026-12-01T09:14:03.512Z",
      "previewUrl": "https://adcamera.com/media/job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36/job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36_0_image_9x16.png",
      "delivered": 8,
      "failed": 1
    }
  ],
  "next": "job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36"
}

Download a pack

GET/v1/ads/{id}/download

Returns one zip with every file finished so far and a copy.txt holding each angle's headline, ad copy and call to action. Files are named after the product, such as vitamin-c-serum-15-angle1-9x16.png and vitamin-c-serum-15-angle1-9x16-video.mp4. Unlike the /media links, the zip needs your key.

It answers 409 while the pack has no finished file yet, and 404 for a job id that isn't on this account.

Request

curl -OJ https://adcamera.com/v1/ads/job_5c2d0e7a9b1f4e63a8d27c4f0b9e1a36/download \
  -H "Authorization: Bearer $ADCAMERA_API_KEY"

Estimate the cost

POST/v1/ads/estimate

Takes the same body as create and spends nothing.

Response · 200 OK

{ "credits": 18, "balance": 120 }

Account and balance

GET/v1/account

Response · 200 OK

{ "email": "you@yourstore.com", "credits": 102 }

Credit packs

GET/v1/packsNo key needed

Lists the packs on sale, cheapest first. priceCents is the price in US cents, so 900 is $9.00. The list is empty while checkout is closed.

Response · 200 OK

{
  "packs": [
    { "id": "pdt_...", "name": "AdCamera Starter: 30 credits", "credits": 30, "priceCents": 900 }
  ]
}

POST/v1/checkout

Body { "pack": "pdt_..." }. Returns { "url": "..." }, a hosted checkout page for the key's account. Open it in a browser to pay; the credits land about a minute after the payment clears.

Credits and refunds

  • An image costs 1 credit in any size. A video costs 4. Angles, headlines and ad copy are free.
  • A pack costs concepts × formats, plus concepts × 4 with video on. A format listed twice counts once. The example above is 3 × 2 + 3 × 4 = 18.
  • Credits are charged when the job is created. If the balance is too low, the API answers 402 and no pack is created or charged.
  • When the job finishes, done or failed, every image or video that wasn't delivered is refunded in one refund: the charge minus the price of the files you got. That includes files that fail, time out or are blocked by the content filter, and concepts the planner didn't write.
  • Each video animates the concept's 9:16 image, so video needs "9:16" in formats (without it the API answers 400 and charges nothing), and a video whose 9:16 image didn't come out is refunded too.
  • If the whole job fails, for example because the page has no product photo, the same rule applies: files already made stay available, everything else is refunded, and error says why.
  • Credits never expire.

Errors

Errors come back as JSON with an error message written to be shown to a person.

StatusWhen
400The body isn't valid JSON, or a field or query parameter is out of range. The message names the field.
401No Authorization header, or the key is wrong or revoked.
402Not enough credits. needed is the pack's cost and buy links to pricing.
403A key was used on /v1/keys, which only the web app may call, or a request that changes something came from another site with the web app's sign-in cookie.
404No job with that id on this account.
409A download was asked for before the pack had a finished file. Try again once a file has a url.
503The pack couldn't start, or checkout is unavailable, on our side. A pack that couldn't start is refunded in full right away. Try again in a minute.
429Too many requests. The API doesn't limit keys today, so the balance is the only cap, but a client should still wait and retry on a 429.

Response · 402 Payment Required

{
  "error": "Not enough credits",
  "needed": 18,
  "buy": "https://adcamera.com/#pricing"
}

MCP server

The MCP server uses the same account and API key as the REST API. It takes the key in a header rather than through OAuth, so it works in any client that can send a header to a remote server.

URL
https://adcamera.com/mcp
Transport
Streamable HTTP
Header
Authorization: Bearer adc_...
ToolInputWhat it does
estimate_ad_packSame as create_ad_packReturns the credit cost of a pack and your balance. Spends nothing.
create_ad_packurl, concepts, formats, videoCharges the credits and starts the pack. Returns a jobId.
get_ad_packjobIdReturns the status, product, options and credits, and per concept the copy and the file URLs.
list_ad_packslimit, beforeLists the account's packs, newest first, with a preview image. Pass next as before for older packs.

Tool inputs use the same fields as POST /v1/ads. A tool error, such as too few credits, comes back as a result with isError: true and a message the agent can relay. Install steps: Claude Code, Codex, Cursor, any MCP client.