Text completion Different Params

POST {{openAIUrl}}/completions

Creates a completion for the provided prompt and parameters.

Request Body

{"model"=>"text-davinci-003", "prompt"=>"The specific product name or service, BMW is mostly known for is ", "temperature"=>0.3, "max_tokens"=>10, "frequency_penalty"=>-1}

RESPONSES

status: OK

{"id":"cmpl-6OqPGgKLHLgddacyGHrOwMPNBGBkS","object":"text_completion","created":1671379342,"model":"text-davinci-003","choices":[{"text":"\n\nBMW is most known for its luxury","index":0,"logprobs":null,"finish_reason":"length"}],"usage":{"prompt_tokens":14,"completion_tokens":10,"total_tokens":24}}