Skip to content

Text Generation Overview ​

The text generation endpoint is fully compatible with the OpenAI Chat Completions API. The platform has integrated multiple mainstream large models. Each model family may have two calling styles:

  1. OpenAI-compatible format (recommended): uniformly use /v1/chat/completions, only change the model name
  2. Native format (optional): some models also support their official native API format, such as Claude's /v1/messages or Gemini's /v1/models/{model}:generateContent

We recommend using the OpenAI-compatible format first, so switching models later requires no code changes.

Integrated Model Families ​

Model FamilyDescriptionRecommended Endpoint
OpenAI (GPT)Full GPT-5.x series, o-series reasoning modelsPOST /v1/chat/completions
ClaudeClaude Opus / Sonnet / Haiku series, native format supportedPOST /v1/chat/completions or Anthropic native
GeminiGoogle Gemini 2.5 / 3.x series, native format supportedPOST /v1/chat/completions or Gemini native
DeepSeekDeepSeek V4 Pro / FlashPOST /v1/chat/completions
Kimi (Moonshot)Moonshot Kimi K3POST /v1/chat/completions
Zhipu AI (GLM)Zhipu GLM seriesPOST /v1/chat/completions
Grok (xAI)Grok 4.5 / 4.6, 500k contextPOST /v1/chat/completions

Generic Example ​

bash
curl $URL/v1/chat/completions \
  -H "Authorization: Bearer $YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant"},
      {"role": "user", "content": "Introduce yourself"}
    ],
    "stream": false
  }'

Common Parameters ​

ParameterTypeRequiredDescription
modelstringYesModel name; see each family page for details
messagesarrayYesConversation message list
streambooleanNoWhether to stream the response, default false
temperaturenumberNoSampling temperature 0–2
max_tokensintegerNoMaximum tokens to generate
top_pnumberNoNucleus sampling

Full parameters are consistent with the official OpenAI documentation.

© 2026 Euno AI. All rights reserved.