Chat Completions

Endpoints

Chat Completions ​

POST https://relumen.ai/v1/chat/completions

Send a conversation to a supported GPT, Grok, or other OpenAI-compatible model. Use the exact model call name available to your group.

OpenAI-compatible key · green

Use https://relumen.ai/v1 when your client asks for a base URL. The endpoint above already includes /v1.

Headers ​

HeaderRequiredValue
AuthorizationYesBearer YOUR_API_KEY
Content-TypeYesapplication/json

Body ​

ParameterTypeRequiredDescription
modelstringYesExact model call name from Model Plaza.
messagesarrayYesConversation turns with role and content.
streambooleanNoRequest streaming when supported by the selected model and route.

Additional parameters and limits depend on the model. Start with the basic request below before adding optional features.

Example request ​

Replace both placeholders before running this command.

bash
curl https://relumen.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL_ID",
    "messages": [
      {"role": "user", "content": "Please briefly introduce yourself."}
    ]
  }'

Read the result ​

For a standard non-streaming chat response, the assistant's text appears in choices[0].message.content. Response details can vary by model and route. Review Usage Records for tokens and cost.

Grok ​

Grok uses this OpenAI-compatible endpoint with a supported Grok model call name. Image models use Images instead of Chat Completions.

If the model is unavailable, confirm your key's group and the exact call name in Model Plaza. See Errors & troubleshooting.

Need help? Visit the Help Center →Open console ↗