#need help in api key

1 messages ยท Page 1 of 1 (latest)

stray tangle
#

hey i am using postman and need help with passing api in header

hearty falcon
# stray tangle hey i am using postman and need help with passing api in header

Copy this and import it into Postman. Replace pk-***[OUR_API_KEY]*** with your own key. go to https://discord.com/channels/1055397662976905229/1064807234825113621 and use the /key command to get your own key.

curl --location 'https://api.pawan.krd/v1/chat/completions' \
--header 'Authorization: Bearer pk-***[OUR_API_KEY]***' \
--header 'Content-Type: application/json' \
--data '{
    "model": "pai-001-light",
    "max_tokens": 100,
    "messages": [
        {
            "role": "system",
            "content": "You are an helpful assistant."
        },
        {
            "role": "user",
            "content": "Who are you?"
        }
    ]
}'
stray tangle
hearty falcon
#

you can use the official OpenAI dotnet package

stray tangle
#

but it won't work with your hosted model right?

hearty falcon
stray tangle
#

ohh'kay thanks again bro

hearty falcon
timid fulcrum
hearty falcon
timid fulcrum
hearty falcon