API reference

Chat Completions

Send OpenAI-compatible chat completion requests.

Create a chat completion

Send a Bearer-authenticated request to POST https://api.get-apikey.com/v1/chat/completions:

curl "https://api.get-apikey.com/v1/chat/completions" \
  -H "Authorization: Bearer $GETRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"YOUR_MODEL","messages":[{"role":"user","content":"Hello"}]}'

Replace YOUR_MODEL with a model ID from the GetRun model catalog. Add "stream": true to receive a streaming response.

On this page