LLM - Completions endpoint.md

Creates a completion for the provided prompt and parameters.

cURL

curl https://mkp-api.fptcloud.com/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer API_KEY" \
  -d '{
    "model": "gpt-3.5-turbo-instruct",
    "prompt": "Say this is a test",
    "max_tokens": 7,
    "temperature": 0
  }'

Last updated

Was this helpful?