Authentication
Use your API key in the Authorization header:Available Endpoints
Request Body
Fields
Examples
Basic Request
With Variable Replacements
With System Message
Streaming (SSE)
With Configuration
Response Format
Sync Response
SSE Response
Available Models
HyperleapAi
hl-gpt-4o-minihl-gpt-4.1-mini
OpenAi
gpt-4ogpt-4o-minigpt-4-turbogpt-3.5-turbo
Anthropic
claude-3-opus-20240229claude-3-sonnet-20240229claude-3-haiku-20240307
Google Gemini
gemini-progemini-1.5-pro
Groq
llama3-70b-8192mixtral-8x7b-32768
Error Handling
Notes
- Credits are consumed for each API call
- Variable replacement uses Handlebars syntax:
{{variableName}} - All endpoints support the same request body format
- Use
/api/completions?stream=truefor streaming via query parameter

