cURL quick start
Use cURL to test Project-M LLM directly from terminal.
Chat completion
export PROJECTM_API_KEY="YOUR_PROJECT_M_API_KEY"
curl https://api.itsmechinna.com/v1/chat/completions \
-H "Authorization: Bearer $PROJECTM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chinna",
"messages": [
{ "role": "system", "content": "You are Chinna AI inside my app." },
{ "role": "user", "content": "Create a short onboarding message." }
],
"temperature": 0.7,
"stream": false
}'
List models
curl https://api.itsmechinna.com/v1/models \ -H "Authorization: Bearer $PROJECTM_API_KEY"