Skip to main content
Execute raw prompt completions without creating or storing a prompt first. Ideal for developers who want direct API access.

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-mini
  • hl-gpt-4.1-mini

OpenAi

  • gpt-4o
  • gpt-4o-mini
  • gpt-4-turbo
  • gpt-3.5-turbo

Anthropic

  • claude-3-opus-20240229
  • claude-3-sonnet-20240229
  • claude-3-haiku-20240307

Google Gemini

  • gemini-pro
  • gemini-1.5-pro

Groq

  • llama3-70b-8192
  • mixtral-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=true for streaming via query parameter