Creates embedding vectors for the input text using an OpenAI-compatible request and response format. For asymmetric models (for example sionic-ai/comsat-embed-ko-8b-preview) embed documents as-is and set extra.input_type to query for search queries.
Request
Header Params
Body Params application/jsonRequired
Examples
{"model":"sionic-ai/comsat-embed-ko-8b-preview","input":"Seoul is the capital of South Korea."}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl--location'/embeddings' \
--header'x-opengateway-user-id;' \
--header'x-opengateway-session-id;' \
--header'x-sionic-task-id;' \
--header'Content-Type: application/json' \
--data'{
"model": "sionic-ai/comsat-embed-ko-8b-preview",
"input": "Seoul is the capital of South Korea."
}'