PeumeAPI

Places & travel · ChatGPT

Ask ChatGPT

Get ChatGPT's consumer-app answer to a prompt, with its source list, in a chosen country.

$0.006 per 10 results

Call it

curl https://api.peume.com/v1/call/ask-chatgpt-2 \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "your prompt",
    "country": "AD"
  }
}'

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: ask-chatgpt-2.

Parameters

promptRequiredstring

The prompt to send, up to 10,000 characters.

countryRequiredstring

Uppercase ISO 3166-1 alpha-2 country the request runs from, such as 'US'.

AD · AE · AF · AG · AI · AL · AM · AO · AQ · AR · AS · AT …

statestring

US state the request runs from, such as 'CA'. Only with country 'US'. Adds 2 credits.

AL · AK · AZ · AR · CA · CO · CT · DE · DC · FL · GA · HI …

includeobject

Optional response parts. rawResponse, searchQueries, ads and shopping share one raw-data add-on of 2 credits, however many are on.

legacyboolean

Serve ChatGPT's legacy desktop interface, which fills result.model and result.searchQueries. Best effort: the answer can still come back in the mobile shape.

disableWebSearchboolean

Do not force web search. ChatGPT then searches only when it decides to, so sources are often empty. Default false.

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.