Skip to main content
Text endpoints use the OpenAI-compatible format. Existing OpenAI SDK projects usually only need a new base URL, API key, and model ID.
Prefer chat completions for new conversational applications. Use text completions only when an existing client requires a plain prompt.

Before you call

  • Copy the exact model ID from the console.
  • Set the OpenAI SDK base URL to https://api.maxapi.ai/v1.
  • Match message roles and multimodal content to the selected model.
  • Consume streaming responses incrementally instead of waiting for one JSON document.

Run your first chat request

Follow complete cURL, Python, and JavaScript examples.