Answer
Gemini에 질문하고 답변을 받습니다. 인용, 출처, 카드, 언급이 함께 옵니다.
POST /v1/gemini/answer입력은 JSON 본문으로 보냅니다. 답변에는 몇 초가 걸리므로 최대 120초까지 기다리세요.
요청
curl -X POST "https://gateway.apinoa.com/v1/gemini/answer" \
-H "x-api-key: $APINOA_API_KEY" \
-H "content-type: application/json" \
-d '{"prompt": "What are the best running shoes for beginners?", "country": "US"}'파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
prompt | string | 예 | The question, as a person would type it. |
conversation | string | An earlier answer's conversation.id: ask a follow-up in the same conversation. | |
country | string | The market the answer is asked from, as an ISO 3166 country code. Each engine's page lists its countries. | |
include | enum list | page: also return the answer as a self-contained HTML page, in page. |
같은 파라미터와 모든 응답 타입은 OpenAPI 문서에도 있습니다.
응답
data에 Answer를 돌려줍니다. 실제 응답을 줄인 것입니다. 배열은 앞쪽 항목만 남기고 긴 텍스트는 잘랐습니다.
{
"success": true,
"data": {
"engine": "gemini",
"outcome": "answered",
"prompt": "What are the best running shoes for beginners?",
"askedAt": "2026-10-30T01:00:44.498Z",
"country": "US",
"language": "en",
"title": "Best Running Shoes for Beginners",
"blocks": [
{
"type": "paragraph",
"markdown": "When starting out as a runner, the best shoes share a few key traits: **generous comfort** to protect your joints as your body adapts, a **forgiving fit** that…"
},
{
"type": "paragraph",
"markdown": "The top-rated, most reliable running shoes for beginners feature several standout models tailored to different preferences:"
}
],
"text": "When starting out as a runner, the best shoes share a few key traits: generous comfort to protect your joints as your body adapts, a forgiving fit that doesn’t…",
"markdown": "When starting out as a runner, the best shoes share a few key traits: **generous comfort** to protect your joints as your body adapts, a **forgiving fit** that…",
"citations": [{"start": 0, "end": 258, "sources": [0]}, {"start": 443, "end": 491, "sources": [0]}],
"sources": [
{
"url": "https://www.fleetfeet.com/running-shoe-buyers-guide/best-running-shoes-women",
"title": "The 10 Best Women's Running Shoes 2026 - Fleet Feet",
"site": "Fleet Feet",
"favicon": "https://encrypted-tbn2.gstatic.com/favicon-tbn?q=tbn%3AANd9GcQTW69jHapZCXp40IeOUlcK9pl3Uqjv9AfQz4UK9yWZJzexnB8DlIx8FEp1QlJMdcyn62qSLSzVxWKbjG00g2yeWYdoHkxcWHAPB…",
"snippet": "The nitrogen-infused DNA Loft v3 cushioning provides soft, protective comfort without feeling overly squishy or unstable — giving you the confidence to run, wal…",
"cited": true,
"ext": {
"quotes": ["The nitrogen-infused DNA Loft v3 cushioning provides … gear as you build your new habit."],
"snippets": [
"The nitrogen-infused DNA Loft v3 cushioning provides soft, protective comfort without feeling overly squishy or unstable — giving you the confidence to run, wal…"
]
}
},
{
"url": "https://www.fleetfeet.com/blog/our-top-6-running-shoes-for-beginners-this-summer",
"title": "Our Top 6 Running Shoes for Beginners This Summer - Fleet Feet",
"site": "Fleet Feet",
"favicon": "https://encrypted-tbn2.gstatic.com/favicon-tbn?q=tbn%3AANd9GcQTW69jHapZCXp40IeOUlcK9pl3Uqjv9AfQz4UK9yWZJzexnB8DlIx8FEp1QlJMdcyn62qSLSzVxWKbjG00g2yeWYdoHkxcWHAPB…",
"snippet": "Plus, it's available in Fleet Feet exclusive colorways, helping you stand out from the crowd. Read the full review. Sale. Women's ASICS Gel-Cumulus 25. Women's…",
"cited": true,
"ext": {
"quotes": ["Plus, it's available in Fleet Feet exclusive … decade, mostly because it's so aptly named."],
"snippets": [
"Plus, it's available in Fleet Feet exclusive colorways, helping you stand out from the crowd. Read the full review. Sale. Women's ASICS Gel-Cumulus 25. Women's…"
]
}
}
],
"mentions": [],
"cards": [],
"suggestions": [
{
"text": "Compare neutral vs. stability running shoes",
"prompt": "What is the difference between neutral and stability running shoes, and how do I know which one I need?"
},
{
"text": "Tips for starting a Couch-to-5K running routine",
"prompt": "Give me a beginner-friendly Couch-to-5K running plan and tips to avoid injury."
}
],
"ext": {
"model": "3.5 Flash-Lite",
"steps": [{"label": "Searched the web", "tool": "Google Search", "pages": 8}],
"classifier": [
[{"label": "Academic - Other", "score": 1.2308828e-05}, {"label": "Coding", "score": 8.606076e-06}],
[
{"label": "Action Execution / Device Control - Other", "score": 2.9255574e-05},
{"label": "Advice & Opinion - Other", "score": 0.00015245765}
]
],
"modifiers": ["Longer", "Shorter"],
"suggestionHeading": "To help you narrow down your choice:"
},
"conversation": {"id": "c_GLVf-d67JzX_h9UkuWw87Q", "turn": 1, "expiresAt": "2026-10-30T01:30:51.206Z"}
}
}에러
| 상태 | 코드 | 의미 |
|---|---|---|
| 400 | INVALID_PARAMS | 파라미터가 없거나, 알 수 없거나, 범위를 벗어났거나, 이 엔진이 받지 않는 값입니다. 메시지에 이름이 나옵니다. |
| 401 | UNAUTHORIZED | x-api-key 헤더가 없거나, 폐기되었거나 알 수 없는 키입니다. |
| 402 | INSUFFICIENT_BALANCE | 잔액이 이 호출 비용에 모자랍니다. 대시보드에서 충전하세요. |
| 429 | MARKETPLACE_SATURATED | 동시 호출이 너무 많습니다. Retry-After 초만큼 기다린 뒤 다시 시도하세요. |
| 502 | UPSTREAM_ERROR | 엔진이 쓸 수 없는 응답을 보냈습니다. 간격을 두고 다시 시도하세요. |
| 502 | UPSTREAM_TIMEOUT | 엔진이 제때 답하지 않았습니다. 다시 시도하세요. |
| 503 | SERVICE_UNAVAILABLE | 일시적인 장애입니다. 간격을 두고 다시 시도하세요. |
모든 코드는 Errors에 있습니다. 실패한 호출은 과금되지 않습니다.
가격
가격 호출당 $0.0012. 정가 기준이며, 하루 1,000회를 넘으면 단가가 내려갑니다.
참고
- 이어서 질문하려면 답변의
conversation.id를conversation으로 넘깁니다. - Gemini는 질문의 언어로 답합니다.