diff --git a/model-router.mdx b/model-router.mdx index b964aaca..e2202bf2 100644 --- a/model-router.mdx +++ b/model-router.mdx @@ -161,6 +161,22 @@ You can also access the API directly. +```bash curl +curl -X POST \ + https://models.hypermode.host/v1/chat/completions \ + -H "Content-Type: application/json" \ + -H "Authorization: Bearer $YOUR_HYP_WKS_KEY" \ + -d '{ + "model": "meta-llama/llama-4-scout-17b-16e-instruct", + "messages": [ + {"role": "system", "content": "You are a helpful assistant."}, + {"role": "user", "content": "What is Dgraph?"} + ], + "max_tokens": 150, + "temperature": 0.7 + }' +``` + ```python Python import requests import json