4Z API

Chat completion

Endpoint: POST https://4zapi.com/pg/chat/completions

OpenAI compatible playground chat.

Request body (application/json)

  • messages (array<object>, required): List of conversation messages
  • model (string, required): Model name / model ID
  • max_tokens (integer): Maximum number of tokens to generate
  • temperature (number): Sampling temperature; higher is more random