cURL
curl --request POST \ --url http://{api_endpoint}/api/v1/v1/completions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "<string>", "prompt": "<string>", "frequency_penalty": 123, "presence_penalty": 123, "logit_bias": {}, "logprobs": 123, "temperature": 123, "n": 123, "best_of": 123, "seed": 123, "stop": [ "<string>" ], "stream": true, "max_tokens": 123, "top_p": 123, "user": "<string>", "suffix": "<string>", "extra_model_args": {} }'
{ "content": "<string>", "response_metadata": {} }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response