Chat Completions
POST
/v1/chat/completionsCreate a chat completion. Supports streaming and non-streaming responses, tool calling, and structured outputs.
curl https://api.embercloud.ai/v1/chat/completions \
-H "Authorization: Bearer $EMBER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4.7",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
]
}'