Gemini Embedding 2 API — Bảng giá, thông số & hướng dẫn tích hợp

Tóm tắt thông số kỹ thuật & đơn giá

Gọi Gemini Embedding 2 API (req/gemini-embedding-2) qua API Store Hub với giá từ 150 ST/lượt · 8K context trên endpoint /v1/chat/completions (OpenAI Compatible & Gemini /v1beta). Thanh toán Credit ST minh bạch, kèm mã mẫu cURL, Python, TypeScript và Claude Code.

Tên model
Gemini Embedding 2
Primary Model ID
req/gemini-embedding-2
Họ model
Google Gemini
Giá khởi điểm
150 ST/lượt (1 VNĐ = 1 ST)
Context Window
8K tokens
Max Output
3K tokens
Giao thức & Endpoint
/v1/chat/completions — OpenAI Compatible & Gemini /v1beta
Ứng dụng tương thích
Google GenAI SDK (/v1beta), OpenAI SDK (/v1), Cursor, Cline, Open WebUI, Dify

Các lane & biến thể đang mở

Gemini Embedding 2
Model IDLaneĐơn vịGiá ST / VNĐSàn tối thiểu/reqContext WindowMax OutputTính năng
req/gemini-embedding-2Theo lượt (req/)Theo lượt150 ST/req-8K3KEmbeddings, OpenAI API

Bảng ước tính chi phí thực tế (ST / VNĐ)

Số lượngChi phí ước tính (ST)Quy đổi VNĐ
10 lượt gọi1.500 ST1.500 VNĐ
100 lượt gọi15.000 ST15.000 VNĐ
1.000 lượt gọi150.000 ST150.000 VNĐ
10.000 lượt gọi1.500.000 ST1.500.000 VNĐ

Mã mẫu tích hợp cURL, Python, TypeScript & Claude Code

cURL

curl https://apistorehub.com/v1/chat/completions \
  -H "Authorization: Bearer sk-ash-your_key" \
  -H "Content-Type: application/json" \
  -d '{"model":"req/gemini-embedding-2","messages":[{"role":"user","content":"Hello"}]}'

Python SDK

import os
from openai import OpenAI

client = OpenAI(base_url="https://apistorehub.com/v1", api_key=os.environ["API_KEY"])
resp = client.chat.completions.create(
    model="req/gemini-embedding-2",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

TypeScript SDK

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://apistorehub.com/v1", apiKey: process.env.API_KEY });
const res = await client.chat.completions.create({
  model: "req/gemini-embedding-2",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(res.choices[0].message.content);

Anthropic / Claude Code & CLI

export OPENAI_BASE_URL="https://apistorehub.com/v1"
export OPENAI_API_KEY="sk-ash-your_key"
export ANTHROPIC_BASE_URL="https://apistorehub.com"
export ANTHROPIC_AUTH_TOKEN="sk-ash-your_key"
export MODEL_ID="req/gemini-embedding-2"

Câu hỏi thường gặp về model

Giá gọi Gemini Embedding 2 API trên API Store Hub là bao nhiêu?
Gemini Embedding 2 hiện có 1 biến thể/lane đang mở với giá khởi điểm 150 ST/lượt (1 VNĐ = 1 ST), trừ tiền chính xác theo mức tiêu thụ thực tế.
Gemini Embedding 2 hỗ trợ context window và tính năng gì?
Gemini Embedding 2 thuộc họ Google Gemini với cửa sổ ngữ cảnh 8K, giao thức /v1/chat/completions (OpenAI Compatible & Gemini /v1beta), tương thích Google GenAI SDK (/v1beta), OpenAI SDK (/v1), Cursor, Cline, Open WebUI, Dify.
Làm sao tích hợp Gemini Embedding 2 bằng SDK hiện có?
Chỉ cần trỏ Base URL về https://apistorehub.com/v1 (OpenAI SDK) hoặc https://apistorehub.com (Anthropic SDK / Claude Code), đặt model="req/gemini-embedding-2" và dùng API key có tiền tố sk-ash-.
Có dùng chung ví Credit ST giữa Gemini Embedding 2 và các model khác không?
Có. Toàn bộ các model trên API Store Hub dùng chung 1 số dư Credit ST và 1 API key duy nhất, nạp nhanh qua chuyển khoản ngân hàng.