Docs · Reference
Chat Completions API Reference
The documented supported subset of the OpenAI-compatible chat completions endpoint. Use a Produck API key in server-side HTTP requests.
Authentication
Send Authorization: Bearer <Produck API key> and Content-Type: application/json. Obtain your key from the authenticated product; do not embed it in browser code.
Chat completions
POST
https://api.produckai.com/v1/chat/completionsThe minimal request contains model and messages. See the quickstart for complete HTTP examples.
Supported request fields
FieldUse
modelRequired. A published Produck model ID.messagesRequired. Conversation messages for text chat.temperatureOptional sampling parameter.top_pOptional sampling parameter.max_tokensOptional response-length limit.streamOptional boolean; set true for streamed output.stopOptional stop sequence setting.The supported surface may vary by model. Test your chosen route before relying on a particular optional setting.
Models endpoint
GET
https://api.produckai.com/v1/modelsUse the authenticated models endpoint for the current API-side model list. The public catalog lists the launch routes and pricing.
View public models