Source: https://ailoot.ai/models/zh-hant-tw/google-gemini-embedding-001-u003a-batch/
Canonical: https://ailoot.ai/models/zh-hant-tw/google-gemini-embedding-001-u003a-batch/
Language: zh-hant-tw

# Gemini Embedding 001 Batch

[Markdown](https://ailoot.ai/models/zh-hant-tw/google-gemini-embedding-001-u003a-batch/index.md) · [JSON](https://ailoot.ai/models/zh-hant-tw/google-gemini-embedding-001-u003a-batch/facts.json)

## [Gemini Embedding 001 Batch](https://ailoot.ai/models/zh-hant-tw/google-gemini-embedding-001-u003a-batch/)

`google/gemini-embedding-001:batch`

Google嵌入向量Auto · Ultra

透過非同步批次作業將文字轉換為向量。

輸入

`text`

輸出

`embedding`

上下文

型錄未列明

最大回應

型錄未列明

輸入

US$0.00015 */ 1K*

輸出

US$0.00 */ 1K*

方法參數與生命週期

| 參數 | 規格 |
| --- | --- |
| 參數`endpoint` | 規格/v1/embeddings |
| 參數`model` | 規格google/gemini-embedding-001:batch |
| 參數`requests` | 規格custom\_id + body.input |

生命週期： `asynchronous`

`GET /v1/batches/{request_id}` · response.id

`POST /v1/batches`

```bash
curl --silent --show-error https://api.ailoot.ai/v1/batches \
  -H "Authorization: Bearer $AILOOT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-Ailoot-Routing-Mode: ultra" \
  --data '{"model":"google/gemini-embedding-001:batch","endpoint":"/v1/embeddings","requests":[{"custom_id":"text-1","body":{"input":"First document"}}]}'
```

`GET /v1/batches/{request_id}`

```bash
curl --silent --show-error "https://api.ailoot.ai/v1/batches/$BATCH_ID" \
  -H "Authorization: Bearer $AILOOT_API_KEY" \
  -H "X-Ailoot-Routing-Mode: ultra"
```

JSON

```
{"about":"透過非同步批次作業將文字轉換為向量。","alias_of":null,"aliases":[],"author":"Google","available":true,"canonical_model":"google/gemini-embedding-001:batch","card_routes":[{"label":"Ultra","rates":[{"amount":0.15,"amount_unit":"usd_per_million_tokens","key":"in","label":"Input","side":"in"}]}],"ctx":null,"formats":["batches"],"id":"google/gemini-embedding-001:batch","input":["text"],"kind":"embedding","max_out":null,"methods":[{"contract":{"data":{"example_body":{"endpoint":"/v1/embeddings","model":"google/gemini-embedding-001:batch","requests":[{"body":{"input":"First document"},"custom_id":"text-1"}]},"outputs":{"family":"embedding","fields":[{"name":"id","type":"string"},{"name":"status","type":"string"},{"name":"results[].custom_id","type":"string"},{"name":"results[].response.body.data[].embedding","type":"number[]"},{"name":"results[].error","type":"object|null"}],"format":"JSON","vector_dimensions":3072},"parameters":[{"enum":["google/gemini-embedding-001:batch"],"name":"model","required":true,"type":"string"},{"enum":["/v1/embeddings"],"name":"endpoint","required":true,"type":"string"},{"min_items":1,"name":"requests","required":true,"type":"batch_item[]"},{"name":"requests[].custom_id","required":true,"type":"string","unique_within_batch":true},{"name":"requests[].body.input","required":true,"type":"string"}]},"hints":[],"input":{"endpoint":"/v1/embeddings","model":"google/gemini-embedding-001:batch","requests":"custom_id + body.input"},"lifecycle":{"create":{"accepted_status":202,"http":"POST","path":"/v1/batches"},"mode":"asynchronous","status":{"http":"GET","id_source":"response.id","path":"/v1/batches/{request_id}"}},"method":{"http":"POST","path":"/v1/batches"},"output":{"family":"embedding","fields":[{"name":"id","type":"string"},{"name":"status","type":"string"},{"name":"results[].custom_id","type":"string"},{"name":"results[].response.body.data[].embedding","type":"number[]"},{"name":"results[].error","type":"object|null"}],"format":"JSON","vector_dimensions":3072}},"ctx":null,"examples":[{"code":"curl --silent --show-error https://api.ailoot.ai/v1/batches \\\n  -H \"Authorization: Bearer $AILOOT_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-Ailoot-Routing-Mode: ultra\" \\\n  --data '{\"model\":\"google/gemini-embedding-001:batch\",\"endpoint\":\"/v1/embeddings\",\"requests\":[{\"custom_id\":\"text-1\",\"body\":{\"input\":\"First document\"}}]}'","label":"curl · POST /v1/batches","language":"bash"},{"code":"curl --silent --show-error \"https://api.ailoot.ai/v1/batches/$BATCH_ID\" \\\n  -H \"Authorization: Bearer $AILOOT_API_KEY\" \\\n  -H \"X-Ailoot-Routing-Mode: ultra\"","label":"curl · GET /v1/batches/{request_id}","language":"bash"}],"family":"batch","fmt":"batches","hints":[],"http":"POST","img_in":null,"img_out":null,"in":0.15,"input":["text"],"label":"Batch","max_out":null,"native_endpoint":"batches","out":0,"output":["embedding"],"path":"/v1/batches","pricing":{"billing_mode":"token","cache_write_1h_usd_per_token":null,"cache_write_5m_usd_per_token":null,"currency":"USD","input_usd_per_token":1.5e-07,"output_usd_per_token":0,"price_policy":"native_accepted_retail_card","provenance":"native_group_model_pricing","status":"configured","tiers":[{"cache_write_1h_usd_per_token":null,"cache_write_5m_usd_per_token":null,"input_usd_per_token":1.5e-07,"interval_boundary":"min_exclusive_max_inclusive","label":"","min_tokens":0,"null_rate_policy":"inherit_base_rate","output_usd_per_token":0}]},"request_model_id":"google/gemini-embedding-001:batch","route_label":"Ultra","route_tier":"ultra","status_reads":["GET /v1/batches/{request_id}"],"tiers":[],"unit":"token","units":[]}],"model_aliases":[],"name":"Gemini Embedding 001 Batch","price":{"in":0.15,"in_label":null,"out":0,"out_label":null,"sort_in":0.15,"sort_out":0,"varies":false},"public_id":"google/gemini-embedding-001:batch","short":"透過非同步批次作業將文字轉換為向量。"}
```

## 常見問題

如何為任務選擇模型？

先確定需要的輸入與輸出：文字、圖片、音訊或影片，再比較相容的 API 方法、確切的模型 ID 或別名目前指向的模型、價格與計費單位。免費的 GET /v1/models 會列出金鑰可存取的模型。

每個模型都支援所有 API 方法與媒體類型嗎？

請使用模型卡片列出的 API 方法與輸入、輸出類型。文字、圖片、音訊或影片的支援情況取決於所選模型及方法；傳送資料前請查看對應的請求範例。

模型 ID 與別名有何不同？

確切的 ID 代表特定模型。別名會指向某個模型，而指向的模型可能變更。請在目錄中查看別名目前指向的模型；整合需要特定模型時，請使用確切的 ID。

傳送請求前如何比較價格？

在模型卡片中查看所選 API 方法的價格與計費單位。請以相同單位及輸入、輸出類型比較；請求紀錄會顯示實際用量與扣款金額。

訂閱提供什麼？

持續工作可優惠購買 token。按請求量選方案，訂閱條件與費用在申購時顯示。

如何使用最高 50% 折扣碼？

購買 token 時輸入折扣碼，總額依活動條件重算，付款前即可看到優惠。

## Ailoot · 公司及其專案組合





Ailoot以累積的營運經驗、廣大的客戶群、穩定的服務及持續的KPI管理為基礎。





公司及其專案組合：數百萬客戶，每月銷售額達數十億。





Ailoot將這些營運經驗用於API存取，讓客戶的產品、代理、應用程式及自動化流程使用AI功能。
