Embed
POSThttp://localhost:3000/embed
Embed
To send a batch of requests all at once, the text field can be either a string, or an array of strings. This server also supports dynamic batching, where requests in a short time interval are processed as a single batch.
Request​
- application/json
Body
required
consumer_group stringnullable
text
object
required
Responses​
- 200
- 422
- 503
Takes in a JSON payload and returns the embedded data.
- application/json
- Schema
- Example (from schema)
Schema
result array[]required
{
"result": [
[
0
]
]
}
Malformed request body
The server is not ready to process requests yet.
- curl
- python
- nodejs
- java
- CURL
curl -L 'http://localhost:3000/embed' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"consumer_group": "string",
"text": "string"
}'
ResponseClear