List models
curl https://api.luv13.ai/v1/modelsOnly the ids, one per line (needs jq):
curl -s https://api.luv13.ai/v1/models | jq -r '.data[].id'Send a message
curl https://api.luv13.ai/v1/chat/completions \
-H "Authorization: Bearer $LUV13_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "luv13/glm-5.3-flash", "messages": [{"role": "user", "content": "ping"}]}'Send a long prompt from a file
Build the JSON with jq so quotes and newlines in the file are escaped correctly:
jq -n --rawfile text prompt.txt \
'{model: "luv13/glm-5.3-flash", messages: [{role: "user", content: $text}]}' \
| curl -s https://api.luv13.ai/v1/chat/completions \
-H "Authorization: Bearer $LUV13_API_KEY" \
-H "Content-Type: application/json" \
-d @-Check your key
curl -s -o /dev/null -w "%{http_code}\n" https://api.luv13.ai/v1/chat/completions \
-H "Authorization: Bearer $LUV13_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "luv13/glm-5.3-flash", "messages": [{"role": "user", "content": "ping"}]}'401 means the key is missing or wrong. See Errors and Status Codes.
