Create embedding
curl --request POST \
--url https://flow.seekr.com/v1/inference/embeddings \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "BAAI/bge-large-en-v1.5",
"input": [
"The quick brown fox",
"jumps over the lazy dog"
],
"encoding_format": "float"
}
'import requests
url = "https://flow.seekr.com/v1/inference/embeddings"
payload = {
"model": "BAAI/bge-large-en-v1.5",
"input": ["The quick brown fox", "jumps over the lazy dog"],
"encoding_format": "float"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'BAAI/bge-large-en-v1.5',
input: ['The quick brown fox', 'jumps over the lazy dog'],
encoding_format: 'float'
})
};
fetch('https://flow.seekr.com/v1/inference/embeddings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://flow.seekr.com/v1/inference/embeddings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'BAAI/bge-large-en-v1.5',
'input' => [
'The quick brown fox',
'jumps over the lazy dog'
],
'encoding_format' => 'float'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://flow.seekr.com/v1/inference/embeddings"
payload := strings.NewReader("{\n \"model\": \"BAAI/bge-large-en-v1.5\",\n \"input\": [\n \"The quick brown fox\",\n \"jumps over the lazy dog\"\n ],\n \"encoding_format\": \"float\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://flow.seekr.com/v1/inference/embeddings")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"BAAI/bge-large-en-v1.5\",\n \"input\": [\n \"The quick brown fox\",\n \"jumps over the lazy dog\"\n ],\n \"encoding_format\": \"float\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://flow.seekr.com/v1/inference/embeddings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"BAAI/bge-large-en-v1.5\",\n \"input\": [\n \"The quick brown fox\",\n \"jumps over the lazy dog\"\n ],\n \"encoding_format\": \"float\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created": 123,
"data": [
{
"index": 123,
"embedding": [
123
],
"object": "embedding"
}
],
"usage": {
"prompt_tokens": 0,
"total_tokens": 0,
"completion_tokens": 0,
"prompt_tokens_details": {
"cached_tokens": 123,
"created_cache_tokens": 123,
"multimodal_tokens": {}
}
},
"object": "list",
"model": "<string>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}Create embedding
Generate vector embeddings for one or more input texts.
POST
/
v1
/
inference
/
embeddings
Create embedding
curl --request POST \
--url https://flow.seekr.com/v1/inference/embeddings \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "BAAI/bge-large-en-v1.5",
"input": [
"The quick brown fox",
"jumps over the lazy dog"
],
"encoding_format": "float"
}
'import requests
url = "https://flow.seekr.com/v1/inference/embeddings"
payload = {
"model": "BAAI/bge-large-en-v1.5",
"input": ["The quick brown fox", "jumps over the lazy dog"],
"encoding_format": "float"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'BAAI/bge-large-en-v1.5',
input: ['The quick brown fox', 'jumps over the lazy dog'],
encoding_format: 'float'
})
};
fetch('https://flow.seekr.com/v1/inference/embeddings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://flow.seekr.com/v1/inference/embeddings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'BAAI/bge-large-en-v1.5',
'input' => [
'The quick brown fox',
'jumps over the lazy dog'
],
'encoding_format' => 'float'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://flow.seekr.com/v1/inference/embeddings"
payload := strings.NewReader("{\n \"model\": \"BAAI/bge-large-en-v1.5\",\n \"input\": [\n \"The quick brown fox\",\n \"jumps over the lazy dog\"\n ],\n \"encoding_format\": \"float\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://flow.seekr.com/v1/inference/embeddings")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"BAAI/bge-large-en-v1.5\",\n \"input\": [\n \"The quick brown fox\",\n \"jumps over the lazy dog\"\n ],\n \"encoding_format\": \"float\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://flow.seekr.com/v1/inference/embeddings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"BAAI/bge-large-en-v1.5\",\n \"input\": [\n \"The quick brown fox\",\n \"jumps over the lazy dog\"\n ],\n \"encoding_format\": \"float\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created": 123,
"data": [
{
"index": 123,
"embedding": [
123
],
"object": "embedding"
}
],
"usage": {
"prompt_tokens": 0,
"total_tokens": 0,
"completion_tokens": 0,
"prompt_tokens_details": {
"cached_tokens": 123,
"created_cache_tokens": 123,
"multimodal_tokens": {}
}
},
"object": "list",
"model": "<string>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}Authorizations
Body
application/json
- EmbeddingCompletionRequest
- EmbeddingChatRequest
Response
Successful response.
Last modified on July 31, 2026
⌘I