Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

DataForSEO Gemini LLM Response

Tài liệu API
https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/gemini/llm_responses/live

Ask Gemini a prompt and get its answer with token usage, for AI visibility checks.

Giá
Từ $0.001105USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 5 tùy chọn

Phòng thử nghiệm

Đầu vào
The prompt to send.
Model name from the vendor's model list.
Optional cap on answer length; longer answers cost more.
Optional system instruction.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

DataForSEO Gemini LLM Response API

Ask Gemini a prompt and get its answer with token usage, for AI visibility checks.

Request fields follow the official DataForSEO /v3/ai_optimization/gemini/llm_responses/live task schema (one task per call). The response is DataForSEO's original JSON; results are in tasks[].result.

Request

curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/gemini/llm_responses/live" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_prompt": "best running shoes 2026", "model_name": "gemini-2.5-flash", "max_output_tokens": 200}'

Parameters

The JSON body is forwarded to the upstream endpoint. Main fields:

NameDescription
user_promptThe prompt to send.
model_nameModel name from the vendor's model list.
max_output_tokensOptional cap on answer length; longer answers cost more.
system_messageOptional system instruction.
web_searchOptional: let the model search the web (where supported).

Reference

Pricing

Billed at the actual cost of each call, about $0.001105 for the request above. The cost grows with the number of rows, targets or tokens a call returns. Failed calls are not charged. Searches with no results are billed at their actual cost.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
DataForSEOTừ $0.001105 mỗi lần gọiJSON
DataForSEOTừ $0.0102 mỗi lần gọiJSON
DataForSEOTừ $0.000724 mỗi lần gọiJSON
DataForSEO$0.004 mỗi lần gọiJSON
DataForSEOTừ $0.00162 mỗi lần gọiJSON
DataForSEO$0.004 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API DataForSEO Gemini LLM Response?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/gemini/llm_responses/live với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API DataForSEO Gemini LLM Response có giá bao nhiêu?

Từ $0.001105 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API DataForSEO Gemini LLM Response chấp nhận những tham số nào?

Không có tham số bắt buộc. Tùy chọn: user_prompt (string), model_name (string), max_output_tokens (integer), system_message (string) và web_search (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API DataForSEO Gemini LLM Response trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ).

Tôi có cần tài khoản nhà phát triển hoặc API key của DataForSEO không?

Không. DataForSEO Gemini LLM Response chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của DataForSEO.