PLaMo-Embedding-1B is a Japanese text embedding model developed by Preferred Networks, Inc. It can convert Japanese text input into numerical vectors and can be used for a wide range of applications, including information retrieval, text classification, and clustering.
curl https://api.aigateway.sh/v1/embeddings \
-H "Authorization: Bearer $AIGATEWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"pfnet/plamo-embedding-1b","input":"hello"}'{
"model": "pfnet/plamo-embedding-1b",
"input": "Text to embed, or an array of strings for batch."
}{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [0.0123, -0.0456, 0.0789, /* ... */]
}
],
"model": "pfnet/plamo-embedding-1b",
"usage": { "prompt_tokens": 5, "total_tokens": 5 }
}from openai import OpenAI client = OpenAI(base_url="https://api.aigateway.sh/v1", api_key="sk-aig-...") r = client.embeddings.create(model="pfnet/plamo-embedding-1b", input="hello world") print(r.data[0].embedding[:5])