curl --request POST \
--url https://alterhq.com/api/v1/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"prompt": "<string>",
"max_tokens": 2,
"temperature": 1,
"top_p": 0.5,
"n": 2,
"stream": true,
"stop": "<string>",
"presence_penalty": 0,
"frequency_penalty": 0,
"logit_bias": {},
"user": "<string>"
}
'{
"id": "<string>",
"object": "<string>",
"created": 123,
"model": "<string>",
"choices": [
{
"text": "<string>",
"index": 123,
"finish_reason": "<string>",
"logprobs": {}
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}curl --request POST \
--url https://alterhq.com/api/v1/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"prompt": "<string>",
"max_tokens": 2,
"temperature": 1,
"top_p": 0.5,
"n": 2,
"stream": true,
"stop": "<string>",
"presence_penalty": 0,
"frequency_penalty": 0,
"logit_bias": {},
"user": "<string>"
}
'{
"id": "<string>",
"object": "<string>",
"created": 123,
"model": "<string>",
"choices": [
{
"text": "<string>",
"index": 123,
"finish_reason": "<string>",
"logprobs": {}
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}Bearer token issued by the Alter macOS app.
x >= 10 <= x <= 20 <= x <= 1x >= 1-2 <= x <= 2-2 <= x <= 2Was this page helpful?