cURL
curl --request POST \ --url https://api.siliconflow.cn/v1/embeddings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "BAAI/bge-large-zh-v1.5", "input": "Silicon flow embedding online: fast, affordable, and high-quality embedding services. come try it out!" }'
{ "model": "<string>", "data": [ { "object": "embedding", "embedding": [ 123 ], "index": 123 } ], "usage": { "prompt_tokens": 123, "completion_tokens": 123, "total_tokens": 123 } }
Creates an embedding vector representing the input text.
Use the following format for authentication: Bearer <your api key>
200
The response is of type object.
object