Gemini API
Gemini's grounded answer with its sources, inline citations and places.
Coming soon. The endpoint and fields below are the documented contract; requests are not accepted yet.
Price
4 credits per async request, 6 synchronous.
Endpoint
POST /v1/monitor/gemini
Request
curl -X POST "https://api.answerline.dev/v1/monitor/gemini" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"Best CRM for a 10-person sales team","country":"DE"}' Request options
| Field | Type | Description |
|---|---|---|
prompt * | string | The prompt to send to Gemini |
country * | string | Country/region code for localized response |
include | object | Optional flags for including additional response formats |
include.markdown | boolean | Include markdown-formatted response in the result |
include.html | boolean | Include HTML-formatted response in the result |
include.rawResponse | boolean | Include raw streaming response events |
state | string | State code for sub-country geo-targeting (e.g., "CA"). Only valid with country "US". |
What you get back
Field in result | Type | Description |
|---|---|---|
text | string | Gemini's response text |
markdown | string | Gemini's response in Markdown format |
sources | object[] | Sources cited by Gemini |
citationPills | object[] | Inline citation pills extracted from the Gemini answer. Each entry is one (pill, source) pair: when a chip cites N sources (Gemini's `+N` analog or section-summary chips), the array contains N entries sharing the same `citationPillId` but with per-source `label`, `url`, and `domain`. Group by `citationPillId` to recover the pill-level structure. `label` is always present on the wire; it can be an empty string when the rail has no title for a source. Omitted from `result` when the answer carries no pills. |
places | object[] | Place cards returned for lodging and local answers |