Streamable HTTP
When to use this API
How it works
Endpoint configuration
Enabling the Stream
curl -N -X POST "https://apps.nlx.ai/c/xxxx/xxxx-en-US" \
-H "nlx-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"stream": true,
"request": {
"unstructured": {
"text": "Write a short poem about coding."
}
}
}'Consuming the stream
JavaScript client cxample
Last updated

