DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
Gemini LLM 응답(라이브)
user_prompt를 Gemini 모델로 보내고 그 응답을 동기적으로 반환합니다. model_name은 get_dataforseo_ai_gemini_llm_responses_models에서 가져와야 합니다. Claude 및 ChatGPT 라이브 엔드포인트와 달리 여기서는 system_message를 허용합니다. model_name, input_tokens, output_tokens, reasoning_tokens, web_search, money_spent, datetime, items, fan_out_queries를 반환합니다. 프롬프트 한 번의 실제 비용은 응답의 money_spent에서 확인하세요. DataForSEO의 봉투 구조로 감싸집니다. 데이터는 tasks[0].result, 결과 상태는 tasks[0].status_code에 있으며, 거부된 요청도 HTTP 200을 반환합니다.
요금 참고 정보
- 계량 방식: 보고된 응답 비용.
- 참고 요청 추정치: USD 0.0707.
- 참고 고객 배수: 1.0. 정산된 고객 금액에 다시 적용하지 마세요.
참고용 메타데이터일 뿐이며, 계정 견적이나 보장된 가격 또는 지출 한도가 아닙니다. 리소스 크레딧은 Felo 크레딧이 아닙니다. 최종 청구는 Felo 청구 기록을 따릅니다.
- 유형: array (object | null)[]
- max유형: integer | null
_output _tokens AI 응답의 최대 토큰 수
선택 필드
최솟값:1
최댓값:4096;
기본값:2048;
참고:web_search가true이거나 요청에 추론 모델이 지정되면 출력 토큰 수가 지정한max_output_tokens한도를 넘을 수 있습니다
참고 #2:use_reasoning이true이면max_output_tokens의 최솟값은1024입니다 - message유형: array (object | null)[] | null
_chain 대화 기록 선택 필드 이전 대화 턴을 나타내는 메시지 객체 배열입니다; 각 객체에는 다음이 포함되어야 합니다: role — user 또는 ai 역할을 담은 문자열; message — 메시지 내용을 담은 문자열(최대 500자); 배열에는 메시지 객체를 최대 10개까지 지정할 수 있습니다; 참고: Perplexity 모델의 경우 메시지는 user와 AI 역할이 엄격히 번갈아야 합니다(user → ai); 예: "message_chain": [{"role":"user","message":"Hello, what’s up?"},{"role":"ai","message":"Hello! I’m doing well, thank you. How can I assist you today?"}]
- message유형: string | null
메시지 텍스트
- role유형: string | null
메시지를 보낸 사용자의 역할
- model유형: string
_name AI 모델 이름
필수 필드model_name은 실제 모델 이름과 버전 이름으로 구성됩니다;
기본 모델 이름을 지정하면 최신 버전이 기본으로 설정됩니다;
예를 들어gemini-1.5-pro를 지정하면gemini-1.5-pro-002가model_name으로 자동 설정됩니다;
사용 가능한 LLM 모델 목록은https://api.dataforseo.com/v3/ai_optimization/gemini/llm_responses/models로 별도 요청해 받을 수 있습니다 - system유형: string | null
_message AI 동작 지침
선택 필드
AI의 역할, 어조 또는 특정 동작을 정의합니다system_message필드에는 최대 500자까지 지정할 수 있습니다 - tag유형: string | null
사용자 정의 작업 식별자
선택 필드
최대 255자
이 매개변수를 사용해 작업을 식별하고 결과와 매칭할 수 있습니다tag에 지정한 값은 응답의data객체에서 확인할 수 있습니다 - temperature유형: number | null
AI 응답의 무작위성
선택 필드
값이 높을수록 출력이 더 다양해집니다
값이 낮을수록 출력이 더 집중됩니다
최솟값:0
최댓값:2
기본값:1.3 - top유형: number | null
_p AI 응답의 다양성
선택 필드
토큰 선택을 제한하여 응답의 다양성을 제어합니다
최솟값:0
최댓값:1
기본값:0.9 - use유형: boolean | null
_reasoning - user유형: string
_prompt AI 모델용 프롬프트
필수 필드
AI 모델에 보낼 질문 또는 작업입니다;user_prompt필드에는 최대 500자까지 지정할 수 있습니다 - web유형: boolean | null
_search
- 유형: object | null · Response36Afe1097B20_AiOptimizationGeminiLlmResponsesLiveResponseInfo200
- 유형: number | null 형식: doublecost
전체 작업 비용, USD
- 유형: integer | nullstatus
_code 일반 상태 코드입니다. 응답 코드 전체 목록은 여기에서 확인할 수 있습니다.
- 유형: string | nullstatus
_message 일반 정보 메시지입니다. 일반 정보 메시지 전체 목록은 여기에서 확인할 수 있습니다.
- 유형: array (object | null)[] | nulltasks
작업 배열
- 유형: object | null · Response36Afe1097B20_AiOptimizationGeminiLlmResponsesLiveTaskInfo
- cost유형: number | null 형식: double
전체 작업 비용, USD
- data유형: object | null
POST 요청에 지정한 것과 동일한 매개변수를 포함합니다
- property유형: object | null
Name
- id유형: string | null
작업 식별자 시스템 내 고유 작업 식별자(UUID 형식)
- path유형: array (string | null)[] | null
URL 경로
- result유형: array (object | null)[] | null
결과 배열
- datetime유형: string | null
결과를 받은 날짜와 시간
UTC 형식: “yyyy-mm-dd hh-mm-ss +00:00”
예:2019-11-15 12:57:46 +00:00 - fan유형: array (string | null)[] | null
_out _queries 팬아웃 쿼리 배열
더 포괄적인 응답을 제공하기 위해 기본 쿼리에서 파생된 관련 검색어를 포함합니다 - input유형: integer | null
_tokens 입력의 토큰 수
처리된 총 토큰 수 - items유형: array (object | null)[] | null
응답 항목 배열
구조화된 AI 응답 데이터를 포함합니다- type유형: string | null
요소 유형
- model유형: string | null
_name 사용된 AI 모델 이름
- money유형: number | null
_spent - output유형: integer | null
_tokens 출력의 토큰 수
AI 응답에서 생성된 총 토큰 수 - reasoning유형: integer | null
_tokens 추론 토큰 수
추론 콘텐츠를 생성하는 데 사용된 총 토큰 수 - web유형: boolean | null
_search 웹 검색 사용 여부를 나타냅니다
- result유형: integer | null 형식: int64
_count result 배열의 요소 수
- status유형: integer | null
_code 작업의 상태 코드 DataForSEO가 생성하며 10000-60000 범위일 수 있습니다. 응답 코드 전체 목록은 여기에서 확인할 수 있습니다.
- status유형: string | null
_message 작업의 정보 메시지 일반 정보 메시지 전체 목록은 여기에서 확인할 수 있습니다.
- time유형: string | null
실행 시간, 초
- 유형: integer | null 형식: int64tasks
_count tasks 배열의 작업 수
- 유형: integer | null 형식: int64tasks
_error 오류와 함께 반환된 tasks 배열의 작업 수
- 유형: string | nulltime
총 실행 시간(초)
- 유형: string | nullversion
API의 현재 버전
application/json - 400
요청을 처리할 수 없습니다. 요청 매개변수를 확인하세요.
- 401
유효한 Felo API 키가 필요합니다.
- 402
청구 요건이 충족되지 않아 요청을 진행할 수 없습니다.
- 403
이 계정에는 이 작업을 수행할 권한이 없습니다.
- 429
요청 또는 지출 한도에 도달했습니다.
- 502
서비스가 요청을 완료할 수 없습니다.
- 503
API 또는 청구 서비스를 일시적으로 사용할 수 없습니다.
- 504
요청을 처리하는 동안 서비스 시간이 초과되었습니다.
- default
오류 응답. 업스트림 패스스루 응답은 공급자 형식을 사용할 수 있습니다.
application/json
curl https://openapi.felo.ai/v1/beta/dataforseo/ai_optimization/gemini/llm_responses/live \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '[
{
"system_message": "communicate as if we are in a business meeting",
"message_chain": [
{
"role": "user",
"message": "Hello, what’s up?"
},
{
"role": "ai",
"message": "Hello! I’m doing well, thank you. How can I assist you today? Are there any specific topics or projects you’d like to discuss in our meeting?"
}
],
"max_output_tokens": 200,
"temperature": 0.3,
"top_p": 0.5,
"model_name": "gemini-2.5-flash",
"web_search": true,
"user_prompt": "provide information on how relevant the amusement park business is in France now"
}
]'
{
"version": null,
"status_code": null,
"status_message": null,
"time": null,
"cost": null,
"tasks_count": null,
"tasks_error": null,
"tasks": [
{
"id": null,
"status_code": null,
"status_message": null,
"time": null,
"cost": null,
"result_count": null,
"path": [
null
],
"data": null,
"result": [
{
"model_name": null,
"input_tokens": null,
"output_tokens": null,
"reasoning_tokens": null,
"web_search": null,
"money_spent": null,
"datetime": null,
"items": [
{
"type": null
}
],
"fan_out_queries": [
null
]
}
]
}
]
}