Call it
curl https://api.peume.com/v1/call/claude-answer-to-a-prompt-live \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"user_prompt": "provide information on how relevant the amusement park business is in France now",
"model_name": "claude-sonnet-4-5",
"max_output_tokens": 200,
"temperature": 0.3,
"web_search": true,
"web_search_country_iso_code": "FR"
}
}'const res = await fetch("https://api.peume.com/v1/call/claude-answer-to-a-prompt-live", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"user_prompt": "provide information on how relevant the amusement park business is in France now",
"model_name": "claude-sonnet-4-5",
"max_output_tokens": 200,
"temperature": 0.3,
"web_search": true,
"web_search_country_iso_code": "FR"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/claude-answer-to-a-prompt-live",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"user_prompt": "provide information on how relevant the amusement park business is in France now",
"model_name": "claude-sonnet-4-5",
"max_output_tokens": 200,
"temperature": 0.3,
"web_search": True,
"web_search_country_iso_code": "FR"
}
},
)
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: claude-answer-to-a-prompt-live.
Parameters
user_promptstring<em>prompt for the AI model</em><br><strong>required field</strong><br>the question or task you want to send to the AI model;<br>you can specify <strong>up to 500 characters</strong> in the <code>user_prompt</code> field
Example: provide information on how relevant the amusement park business is in France now
model_namestring<em>name of the AI model</em><br><strong>required field</strong><br>allowed names change over time — prefer a currently accepted name such as <code>claude-sonnet-4-5</code>; bare aliases (<code>claude</code>, <code>claude-sonnet</code>, <code>claude-opus</code>) and some older aliases (including <code>claude-opus-4-0</code> as of reports) return 40501 Invalid Field; list via Models GET <a href=""></a>
Example: claude-sonnet-4-5
max_output_tokensinteger<em>maximum number of tokens in the AI response</em><br>optional field<br>minimum value: <code>1</code>;<br>maximum value: <code>4096</code>;<br>default value: <code>2048</code>;<br><strong>Note:</strong> if <code>web_search</code> is set to <code>true</code> or the reasoning model is specified in t
Example: 200
temperaturenumber<em>randomness of the AI response</em><br>optional field<br>higher values make output more diverse; <br>lower values make output more focused;<br>minimum value: <code>0</code><br>maximum value: <code>1</code><br>default value: <code>0.7</code><p><strong>Note:</strong> <code>temperature</code> cannot
Example: 0.3
top_pnumber<em>diversity of the AI response</em><br>optional field <br>controls diversity of the response by limiting token selection;<br>minimum value: <code>0</code><br>maximum value: <code>1</code> <br>default value: <code>null</code><p><strong>Note:</strong> <code>top_p</code> cannot be used together with
web_searchboolean<em>enable web search for current information</em><br>optional field<br>when enabled, the AI model can access and cite current web information;<br><strong>Note:</strong> refer to the <a href="">Models endpoint</a> for a list
Example: true
force_web_searchboolean<em>force AI agent to use web search</em><br>optional field<br>to enable this parameter, <code>web_search</code> must also be enabled;<br>when enabled, the AI model is forced to access and cite current web information;<br>default value: <code>false</code>;<br><strong>Note:</strong> even if the param
web_search_country_iso_codestring<em>ISO country code of the location used for searching the web</em><br>optional field<br>possible values: <code>'AR','AT','AU','BE','BR','CA','CH','CL','CN','DE','DK','ES','FI','FR','GB','HK','ID','IN','IT','JP','KR','MX','MY','NL','NO','NZ','PH','PL','PT','RU','SA','SE','TR','TW','US','ZA'</code>
Example: FR
web_search_citystring<em>city name of the location used for searching the web</em><br>optional field<br>
system_messagestring<em>instructions for the AI behaviour</em><br>optional field<br>defines the AI's role, tone, or specific behavior;<br>you can specify <strong>up to 500 characters</strong> in the <code>system_message</code> field
Example: communicate as if we are in a business meeting
message_chainarrayconversation history optional field array of message objects representing previous conversation turns; each object must contain: role string with either user or ai role; message string with message content (max 500 characters); you can specify maximum of 10 message objects in the array; Note: for Pe
Example: [{"role":"user","message":"Hello, what’s up?"},{"role":"ai","message":"Hello! I’m doing well, thank you. How can I assist you
use_reasoningboolean<em>enable reasoning for the AI model</em><br>optional field<br>when enabled, the model will perform reasoning before generating a response<br>refer to the <a href="" target="_blank">Models endpoint</a> for a list of models t
tagstring<em>user-defined task identifier</em><br>optional field<br><em>the character limit is 255</em><br>you can use this parameter to identify the task and match it with the result<br>you will find the specified <code>tag</code> value in the <code>data</code> object of the response
