embedding-2

by 智谱 ChatGLM

A text vector model that converts input text information into vector representations so that, in conjunction with a vector database, it provides an external knowledge base for the large model, thereby improving the accuracy of the model’s reasoning.

API Pricing

Input$0.07 / 1M tokens
Output$0.07 / 1M tokens

Specifications

Context window8,000 tokens
Modalitiestext

FAQ

What is embedding-2?

A text vector model that converts input text information into vector representations so that, in conjunction with a vector database, it provides an external knowledge base for the large model, thereby improving the accuracy of the model’s reasoning.

What is the context length of embedding-2?

embedding-2 has a 8,000 token context window.

How much does embedding-2 cost?

On AIHubMix, embedding-2 costs $0.07 per million input tokens and $0.07 per million output tokens.

What modalities does embedding-2 support?

embedding-2 accepts text input.

How do I call embedding-2 via API?

embedding-2 is available through the AIHubMix unified API. The API is OpenAI-compatible: point your OpenAI SDK at https://aihubmix.com/v1, use your AIHubMix API key, and set the model name to embedding-2 — no other code changes needed.

Who develops embedding-2?

embedding-2 is developed by 智谱 ChatGLM. AIHubMix aggregates it alongside models from other providers behind one API and one bill.

More from 智谱 ChatGLM

embedding-3

by 智谱 ChatGLM

A text vector model that converts input text into vector representations to work with a…

$0.07/1M in · $0.07/1M out
8,000 tokens context

chatglm_lite

by 智谱 ChatGLM
$0.29/1M in · $0.29/1M out

chatglm_pro

by 智谱 ChatGLM
$1.43/1M in · $1.43/1M out

chatglm_std

by 智谱 ChatGLM
$0.71/1M in · $0.71/1M out

chatglm_turbo

by 智谱 ChatGLM
$0.71/1M in · $0.71/1M out

code-davinci-edit-001

by 智谱 ChatGLM
$20/1M in · $20/1M out

Use embedding-2 via the AIHubMix unified API — one interface for every major LLM.