NextRelay API documentation
Create your own API key, choose a model from the current catalog, and use the endpoint supported by that model.
Get started
- Sign in and create an API key. Keep it out of public code.
- Check the model name, capability and billing unit.
- Send a request to the endpoint supported by your chosen model.
Chat completions example
This example applies only to models that support the chat completions endpoint. Replace the placeholders with your own API key and an available model ID.
curl -X POST https://nextrelay.dev/v1/chat/completions \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{"model":"<MODEL_NAME>","messages":[{"role":"user","content":"Hello"}]}'Image, video and audio models may use different endpoints and request parameters.