This API allows you to interact with the AI models offered from AI Lab and generate responses to prompts. You must include your API key in the request header. The examples below show how to send a request in Python and Node.js.
Prerequisites
- An API key (replace
sk-YOUR-KEY-HEREin examples).
Making Requests
- Endpoint: (hidden for now)
- Method: POST
- Headers:
- Content-Type: application/json
- Authorization: Bearer sk-YOUR-KEY-HERE
- Parameters:
model(string) – which AI model to use.messages(array) – conversation messages.max_tokens(integer) – limit the response length.
Example Usage
Please visit: https://github.com/JH-TIC/hop-gpt-api-documentation
LiteLLM: https://docs.litellm.ai/docs