PeumeAPI

Search & SEO · Gemini

Ask Gemini

Ask a prompt and get its answer as structured blocks.

$0.023 per call

Call it

curl https://api.peume.com/v1/call/ask-gemini \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "q": "your q"
  }
}'

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-gemini.

Parameters

qRequiredstring

The prompt you want to send to.

subsequent_request_tokenstring

The token used to continue a conversation. Pass this token with a new `q` to send a follow-up prompt that includes the previous prompts and answers as context (multi-turn). The token is returned by from your previous request using our API. Gemini keeps a conversation only for a limited time, so the token **expires**: send the follow-up soon after the previous request.

json_restrictorstring

The fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

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.