Error
A valid request URL is required to generate request examples{
"id": "<string>",
"embeddings": {
"float": [
[
123
]
],
"int8": [
[
123
]
],
"uint8": [
[
123
]
],
"binary": [
[
123
]
],
"ubinary": [
[
123
]
],
"base64": [
"<string>"
]
},
"response_type": "<string>",
"texts": [
"<string>"
],
"images": [
{
"width": 123,
"height": 123,
"format": "<string>",
"bit_depth": 123
}
],
"meta": {
"api_version": {
"version": "<string>",
"is_deprecated": true,
"is_experimental": true
},
"billed_units": {
"input_tokens": 123,
"output_tokens": 123,
"search_units": 123,
"classifications": 123
},
"tokens": {
"input_tokens": 123,
"output_tokens": 123
},
"warnings": [
"<string>"
]
}
}{
"type": "<string>",
"message": "<string>",
"code": "<string>"
}{
"type": "<string>",
"message": "<string>",
"code": "<string>"
}LangChain Integration
Create embeddings (LangChain - Cohere format)
Creates embeddings using Cohere-compatible format via LangChain.
POST
/
langchain
/
cohere
/
v2
/
embed
Error
A valid request URL is required to generate request examples{
"id": "<string>",
"embeddings": {
"float": [
[
123
]
],
"int8": [
[
123
]
],
"uint8": [
[
123
]
],
"binary": [
[
123
]
],
"ubinary": [
[
123
]
],
"base64": [
"<string>"
]
},
"response_type": "<string>",
"texts": [
"<string>"
],
"images": [
{
"width": 123,
"height": 123,
"format": "<string>",
"bit_depth": 123
}
],
"meta": {
"api_version": {
"version": "<string>",
"is_deprecated": true,
"is_experimental": true
},
"billed_units": {
"input_tokens": 123,
"output_tokens": 123,
"search_units": 123,
"classifications": 123
},
"tokens": {
"input_tokens": 123,
"output_tokens": 123
},
"warnings": [
"<string>"
]
}
}{
"type": "<string>",
"message": "<string>",
"code": "<string>"
}{
"type": "<string>",
"message": "<string>",
"code": "<string>"
}Authorizations
BearerAuthVirtualKeyAuthApiKeyAuth
Body
application/json
Array of strings to embed. Maximum 96 texts per call. At least one of texts, images, or inputs is required.
Maximum array length:
96Response
Successful response
Was this page helpful?

