Create completion
Creates a completion for the provided prompt and parameters.
In: header
ID of the model to use. You can use the List models API to see all of your available models.
1 <= value <= 20
-2 <= value <= 2
Empty Object
0 <= value <= 5
0 <= value
1 <= value <= 128
-2 <= value <= 2
0 <= value <= 2
0 <= value <= 1
Response Body
curl -X POST "https://api.openroute.cn/v1/completions" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-3.5-turbo-instruct", "prompt": "Say this is a test", "max_tokens": 7, "temperature": 0 }'
Last updated on