PeumeAPI

Ads

Upload an ad image from base64

Uploads an image file to a Meta ad account's library, for creatives that are not hosted at a public URL.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/upload-an-ad-image-from-base64 \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId",
    "adAccountId": "your adAccountId",
    "imageBase64": "your imageBase64"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: upload-an-ad-image-from-base64.

Parameters

accountIdRequiredstring

SocialAccount id (posting or ads variant); its platform decides where the campaign is created.

adAccountIdRequiredstring

Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id,...).

imageBase64Requiredstring

Raw base64 image bytes, or a full data URL (the data:image/...;base64, prefix is stripped).

filenamestring

Optional filename shown in Meta's image library. Defaults to ad_image.jpg.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.