Llama, Qwen, DeepSeek, Mistral — drop-in OpenAI-compatible.
curl --request POST \
--url https://api.tera.gw/v1/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "Qwen/Qwen2.5-7B-Instruct",
"prompt": "<string>",
"max_tokens": 64,
"temperature": 123,
"top_p": 123,
"top_k": 123,
"stop": "<string>",
"seed": 123,
"stream": false
}
'{
"id": "<string>",
"object": "text_completion",
"created": 123,
"model": "<string>",
"choices": [
{
"text": "<string>",
"index": 123,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}OpenAI-compatible legacy completions endpoint. Prefer chat completions for new code.
curl --request POST \
--url https://api.tera.gw/v1/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "Qwen/Qwen2.5-7B-Instruct",
"prompt": "<string>",
"max_tokens": 64,
"temperature": 123,
"top_p": 123,
"top_k": 123,
"stop": "<string>",
"seed": 123,
"stream": false
}
'{
"id": "<string>",
"object": "text_completion",
"created": 123,
"model": "<string>",
"choices": [
{
"text": "<string>",
"index": 123,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}Documentation Index
Fetch the complete documentation index at: https://docs.tera.gw/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.