# 실시간 Claude LLM 응답

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/ai_optimization/claude/llm_responses/live`

**Tags:** DataForSEO

`user_prompt`를 Claude 모델에 보내고 응답을 동기식으로 반환합니다. `model_name`은 `get_dataforseo_ai_claude_llm_responses_models`에서 가져와야 합니다. 이름은 `claude-sonnet-5`처럼 생겼으며, 그럴듯해 보이는 추측은 거부됩니다. `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.0567.
- 참조 고객 배수: 1.0. 정산된 고객 금액에 다시 적용하지 마세요.

참조 메타데이터일 뿐이며 계정 견적이나 보장된 가격 또는 지출 한도가 아닙니다. 리소스 크레딧은 Felo 크레딧이 아닙니다. 최종 청구는 Felo 청구 기록을 따릅니다.

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "user_prompt": {
            "type": "string",
            "description": "<em>AI 모델용 프롬프트</em><br><strong>필수 필드</strong><br>AI 모델에 보낼 질문 또는 작업입니다;<br><code>user_prompt</code> 필드에는 <strong>최대 500자</strong>까지 지정할 수 있습니다"
          },
          "model_name": {
            "type": "string",
            "description": "<em>AI 모델 이름</em><br><strong>필수 필드</strong><br><code>model_name</code >은 실제 모델 이름과 버전 이름으로 구성됩니다;<br>기본 모델 이름을 지정하면 최신 버전이 기본으로 설정됩니다;<br>예를 들어 <code>claude-opus-4-0</code>을 지정하면 <code>claude-opus-4-20250514</code>가 <code>model_name</code>으로 자동 설정됩니다;<br>사용 가능한 LLM 모델 목록은 <code>https://api.dataforseo.com/v3/ai_optimization/claude/llm_responses/models</code>로 별도 요청해 받을 수 있습니다"
          },
          "max_output_tokens": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>AI 응답의 최대 토큰 수</em><br>선택 필드<br>최솟값: <code>1</code>;<br>최댓값: <code>4096</code>;<br>기본값: <code>2048</code>;<br><strong>참고:</strong> <code>web_search</code>가 <code>true</code>이거나 요청에 추론 모델이 지정되면 출력 토큰 수가 지정한 <code>max_output_tokens</code> 한도를 넘을 수 있습니다<br><strong>참고 #2:</strong> <code>use_reasoning</code>이 <code>true</code>이면 <code>max_output_tokens</code>의 최솟값은 <code>1025</code>입니다"
          },
          "temperature": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>AI 응답의 무작위성</em><br>선택 필드<br>값이 높을수록 출력이 더 다양해집니다; <br>값이 낮을수록 출력이 더 집중됩니다;<br>최솟값: <code>0</code><br>최댓값: <code>1</code><br>기본값: <code>0.7</code><p><strong>참고:</strong> <code>temperature</code>는 같은 요청에서 <code>top_p</code>와 함께 사용할 수 없습니다"
          },
          "top_p": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>AI 응답의 다양성</em><br>선택 필드 <br>토큰 선택을 제한하여 응답의 다양성을 제어합니다;<br>최솟값: <code>0</code><br>최댓값: <code>1</code> <br>기본값: <code>null</code><p><strong>참고:</strong> <code>top_p</code>는 같은 요청에서 <code>temperature</code>와 함께 사용할 수 없습니다"
          },
          "web_search": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>최신 정보를 위한 웹 검색 활성화</em><br>선택 필드<br>활성화하면 AI 모델이 현재 웹 정보에 액세스하고 인용할 수 있습니다;<br><strong>참고:</strong> <code>web_search</code>를 지원하는 모델 목록은 <a href=\"https://docs.dataforseo.com/v3/ai_optimization/claude/llm_responses/models/\">Models 엔드포인트</a>를 참고하세요; <br>기본값: <code>false</code>;<br>이 매개변수의 비용은 <a title=\"Anthropic API Pricing\" href=\"https://docs.anthropic.com/en/docs/about-claude/pricing\" target=\"_blank\" rel=\"noopener noreferrer\">가격</a> 페이지에서 계산할 수 있습니다"
          },
          "force_web_search": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>AI 에이전트의 웹 검색 강제 사용</em><br>선택 필드<br>이 매개변수를 사용하려면 <code>web_search</code>도 활성화해야 합니다;<br>활성화하면 AI 모델이 현재 웹 정보에 액세스하고 인용하도록 강제됩니다;<br>기본값: <code>false</code>;<br><strong>참고:</strong> 매개변수를 <code>true</code>로 설정해도 응답에 웹 소스가 인용된다는 보장은 없습니다"
          },
          "web_search_country_iso_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>웹 검색에 사용할 위치의 ISO 국가 코드</em><br>선택 필드<br>가능한 값: <code>'AR','AT','AU','BE','BR','CA','CH','CL','CN','DE','DK','ES','FI','FR','GB','HK','ID','IN','IT','JP','KR','MX','MY','NL','NO','NZ','PH','PL','PT','RU','SA','SE','TR','TW','US','ZA'</code>"
          },
          "web_search_city": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>웹 검색에 사용할 위치의 도시 이름</em><br>선택 필드<br>"
          },
          "system_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>AI 동작 지침</em><br>선택 필드<br>AI의 역할, 어조 또는 특정 동작을 정의합니다;<br><code>system_message</code> 필드에는 <strong>최대 500자</strong>까지 지정할 수 있습니다"
          },
          "message_chain": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": [
                "object",
                "null"
              ],
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "메시지를 보낸 사용자의 역할"
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "메시지 텍스트"
                    }
                  }
                }
              ]
            },
            "description": "대화 기록\n선택 필드\n이전 대화 턴을 나타내는 메시지 객체 배열입니다;\n각 객체에는 다음이 포함되어야 합니다:\nrole — user 또는 ai 역할을 담은 문자열;\nmessage — 메시지 내용을 담은 문자열(최대 500자);\n배열에는 메시지 객체를 최대 10개까지 지정할 수 있습니다;\n참고: Perplexity 모델의 경우 메시지는 user와 AI 역할이 엄격히 번갈아야 합니다(user → ai);\n예:\n\"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?\"}]"
          },
          "use_reasoning": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>AI 모델의 추론 활성화</em><br>선택 필드<br>활성화하면 모델이 응답을 생성하기 전에 추론을 수행합니다<br><code>reasoning</code>을 지원하는 모델 목록은 <a href=\"https://docs.dataforseo.com/v3/ai_optimization/claude/llm_responses/models/\" target=\"_blank\">Models 엔드포인트</a>를 참고하세요<br>기본값: <code>false</code><br><strong>참고:</strong> <code>true</code>로 설정하면 <code>max_output_tokens</code>의 최솟값은 <code>1025</code>입니다<br><strong>참고 #2:</strong> <code>true</code>로 설정하면 <code>force_web_search</code>를 <code>false</code>로 설정해야 합니다<br><strong>참고 #3:</strong> <code>true</code>로 설정하면 <code>temperature</code>와 <code>top_p</code>를 사용할 수 없습니다"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>사용자 정의 작업 식별자</em><br>선택 필드<br><em>최대 255자</em><br>이 매개변수를 사용해 작업을 식별하고 결과와 매칭할 수 있습니다<br><code>tag</code>에 지정한 값은 응답의 <code>data</code> 객체에서 확인할 수 있습니다"
          }
        },
        "example": [
          {
            "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,
            "model_name": "claude-opus-4-0",
            "temperature": 0.3,
            "web_search": true,
            "web_search_country_iso_code": "FR",
            "user_prompt": "provide information on how relevant the amusement park business is in France now"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "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,
      "model_name": "claude-opus-4-0",
      "temperature": 0.3,
      "web_search": true,
      "web_search_country_iso_code": "FR",
      "user_prompt": "provide information on how relevant the amusement park business is in France now"
    }
  ]
}
```

## Responses

### 200 — 작업 성공

Headers:
- `X-Request-Id` (string) — Felo 지원팀에 문의할 때 포함할 요청 식별자입니다.

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_AiOptimizationClaudeLlmResponsesLiveResponseInfo"
    }
  ]
}
```

### 400 — 요청을 처리할 수 없습니다. 요청 매개변수를 확인하세요.

### 401 — 유효한 Felo API 키가 필요합니다.

### 402 — 청구 요건이 충족되지 않아 요청을 진행할 수 없습니다.

### 403 — 이 계정에는 이 작업을 수행할 권한이 없습니다.

### 429 — 요청 또는 지출 한도에 도달했습니다.

### 502 — 서비스가 요청을 완료할 수 없습니다.

### 503 — API 또는 청구 서비스를 일시적으로 사용할 수 없습니다.

### 504 — 요청을 처리하는 동안 서비스 시간이 초과되었습니다.

### default — 오류 응답. 업스트림 패스스루 응답은 공급자 형식을 사용할 수 있습니다.

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AiOptimizationClaudeLlmResponsesLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationClaudeLlmResponsesLiveResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_AiOptimizationClaudeLlmResponsesLiveTaskInfo"
              }
            ]
          },
          "description": "<em>작업 배열</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_AiOptimizationClaudeLlmResponsesLiveResultInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationClaudeLlmResponsesLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "model_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>사용된 AI 모델 이름</em>"
    },
    "input_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>입력의 토큰 수</em><br>처리된 총 토큰 수"
    },
    "output_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>출력의 토큰 수</em><br>AI 응답에서 생성된 총 토큰 수"
    },
    "reasoning_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>추론 토큰 수</em><br>추론 콘텐츠를 생성하는 데 사용된 총 토큰 수"
    },
    "web_search": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>웹 검색 사용 여부를 나타냅니다</em>"
    },
    "money_spent": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>AI 토큰 비용(USD)</em><br>타사 AI 모델 제공업체가 자체 <a href=\"https://docs.anthropic.com/en/docs/about-claude/pricing\" target=\"_blank\">가격 정책</a>에 따라 청구하는 가격"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>결과를 받은 날짜와 시간</em><br>UTC 형식: “yyyy-mm-dd hh-mm-ss +00:00”<br>예:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_BaseAiOptimizationLlmResponseElementItem"
          }
        ]
      },
      "description": "<em>응답 항목 배열</em><br>구조화된 AI 응답 데이터를 포함합니다"
    },
    "fan_out_queries": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>팬아웃 쿼리 배열</em><br>더 포괄적인 응답을 제공하기 위해 기본 쿼리에서 파생된 관련 검색어를 포함합니다"
    }
  }
}
```

### Response36Afe1097B20_AiOptimizationClaudeLlmResponsesLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationClaudeLlmResponsesLiveTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_AiOptimizationClaudeLlmResponsesLiveResultInfo"
              }
            ]
          },
          "description": "<em>결과 배열</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_BaseAiOptimizationLlmResponseElementItem

`#/components/schemas/Response36Afe1097B20_BaseAiOptimizationLlmResponseElementItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "요소 유형"
    }
  },
  "additionalProperties": false,
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "reasoning": "#/components/schemas/Response36Afe1097B20_ReasoningAiOptimizationLlmResponseElementItem",
      "message": "#/components/schemas/Response36Afe1097B20_MessageAiOptimizationLlmResponseElementItem"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "API의 현재 버전"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "일반 상태 코드입니다.\n응답 코드 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "일반 정보 메시지입니다.\n일반 정보 메시지 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "총 실행 시간(초)"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "전체 작업 비용, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "tasks 배열의 작업 수",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "오류와 함께 반환된 tasks 배열의 작업 수",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "작업 식별자\n시스템 내 고유 작업 식별자(UUID 형식)"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "작업의 상태 코드\nDataForSEO가 생성하며 10000-60000 범위일 수 있습니다.\n응답 코드 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "작업의 정보 메시지\n일반 정보 메시지 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "실행 시간, 초"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "전체 작업 비용, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "result 배열의 요소 수",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "URL 경로"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "POST 요청에 지정한 것과 동일한 매개변수를 포함합니다"
    }
  }
}
```
