Call it
curl https://api.peume.com/v1/call/instagram-post-caption-translation \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"target_language": "your target language",
"media_id": "your media id"
}
}'const res = await fetch("https://api.peume.com/v1/call/instagram-post-caption-translation", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"target_language": "your target language",
"media_id": "your media id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/instagram-post-caption-translation",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"target_language": "your target language",
"media_id": "your media id"
}
},
)
print(res.json()["output"])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: instagram-post-caption-translation.
Parameters
target_languagestringThe language to translate into, as a language code such as `en`, `zh-CN`, `zh-TW`, `ja`, `ko`, `es`, `pt-BR`, `fr` or `de`. Defaults to `en`. A caption already in that language comes back as it is.
media_idstringThe numeric post ID (the `id` in `post` results). Pass this or `url`.
urlstringA post or Reel link, such as https://www.instagram.com/p/<shortcode>/ or https://www.instagram.com/reel/<shortcode>/. Pass `url` or `media_id`; when both are given, `url` is used.
