त्वरित शुरुआत
अपना पहला रूट किया गया अनुरोध भेजें।
कंसोल में एक API कुंजी बनाएं, फिर कॉल करें https://api.onemux.net/v1/chat/completions.
सेटअप चेकलिस्ट
- कुंजी बनाएं
- मॉडल चुनें
- अनुरोध भेजें
curl https://api.onemux.net/v1/chat/completions \
+ -H "Authorization: Bearer $ONEMUX_API_KEY" \
+ -H "Content-Type: application/json" \
+ -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hello OneMux"}]}'