PeumeAPI

Search & SEO · Gemini

answer — text and sources

Runs a prompt through the live interface from a chosen country and returns the generated answer with its cited sources and citation pills, optionally as Markdown or HTML.

$0.0036 per lookup, only when foundUsually answers in under a minute

Call it

curl https://api.peume.com/v1/call/gemini-answer-text-and-sources \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "how does a heat pump work",
    "country": "US",
    "state": "CA"
  }
}'

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: gemini-answer-text-and-sources.

Parameters

promptRequiredstring

1-10,000 characters

Example: how does a heat pump work

countryRequiredstring

ISO 3166-1 alpha-2. BY, CN and RU are refused.

Example: US

statestring

US state code for state-level targeting; adds 2 credits

Example: CA

includeobject

any of markdown, html, rawResponse. All three are free on this endpoint.

Other ways to do it

Same job, other sources, cheapest first.

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.