DeveloperAPI
Completions
Cube AI supports OpenAI-compatible text completions. This endpoint is considered legacy and is mainly provided for compatibility with older clients.
For new applications, Chat Completions are recommended.
Endpoint
POST /proxy/{domain_id}/v1/completionsExample Request
curl -k https://localhost/proxy/<domain_id>/v1/completions \
-H "Authorization: Bearer <pat>" \
-H "Content-Type: application/json" \
-d '{
"model": "tinyllama:1.1b",
"prompt": "Once upon a time"
}'Response
Returns an OpenAI-compatible completion object.
Notes
- Requests are authenticated using Personal Access Tokens (PATs)
- Executed inside a Trusted Execution Environment (TEE)
- Domain-isolated execution
- Prefer Chat Completions for conversational or structured prompts