cURL
curl --request POST \ --url https://api.savegate.ai/v1/completions \ --header 'Content-Type: application/json' \ --data ' { "model": "<string>", "prompt": {}, "max_tokens": 123, "temperature": 123, "stream": true } '
Create text completions (legacy endpoint)
curl https://api.savegate.ai/v1/completions \ -H "Authorization: Bearer sk-savegate-xxxxxxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-3.5-turbo-instruct", "prompt": "Say this is a test", "max_tokens": 7, "temperature": 0 }'