Chat / LLM

Generate text responses. OpenAI-compatible format. Supports streaming.

48 models available

POSThttps://api.nextgenrelay.com/api/v1/chat/completions
Generate text responses. OpenAI-compatible format. Supports streaming.
ParameterTypeRequiredDefaultDescription
modelstringrequiredModel ID (see list below)
messagesarrayrequired[{"role":"user","content":"Hello"}]. Roles: system, user, assistant
streambooleanoptionalfalseEnable SSE streaming
temperaturenumberoptionalmodel defaultSampling temperature (0–2)
max_tokensintegeroptional8192 (Anthropic)Max output tokens
Anthropic models default max_tokens to 8192. Reasoning models (o3) ignore temperature.

cURL Example

bash
curl -X POST https://api.nextgenrelay.com/api/v1/chat/completions \
  -H "Authorization: Bearer sk_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {"role": "system", "content": "You are helpful."},
      {"role": "user", "content": "Hello!"}
    ],
    "stream": false,
    "temperature": 0.7
  }'

Response

json
{
  "id": "chatcmpl-xxx",
  "model": "gpt-4o",
  "choices": [{
    "message": {"role": "assistant", "content": "Hello! How can I help?"},
    "finish_reason": "stop"
  }],
  "usage": {"prompt_tokens": 10, "completion_tokens": 15, "total_tokens": 25}
}

Available Models

Alibaba

Qwen 3.7 Max

6cr

Alibaba's flagship model

multilingualvision

Qwen 3.7 Plus

4cr

Balanced performance and speed

multilingual

Qwen 3.6 Plus

4cr

High-quality Qwen model

multilingual

Qwen 3.6 Flash

2cr

Fast and efficient

Qwen 3.5 Flash

2cr

Ultra-fast Chinese-English model

Anthropic

Claude Opus 4.8

18cr

Most powerful Claude for complex tasks

reasoningcodingvision

Claude Sonnet 4.6

8cr

Best balance of intelligence and speed

codingvision

Claude Haiku 4.5

3cr

Lightning-fast responses

Claude Fable 5

12cr

Anthropic's creative storytelling model

creativestorytelling

ByteDance

Doubao Seed 2.0 Pro

6cr

ByteDance's most capable model

Doubao Seed 2.0 Mini

2cr

Lightweight and fast

DeepSeek

DeepSeek V4 Pro

6cr

Top-tier Chinese AI with strong reasoning

reasoningvision

DeepSeek V4 Flash

2cr

Fast and affordable

DeepSeek R1

8cr

Open-source reasoning champion

reasoningmath

DeepSeek V3.2

4cr

Latest DeepSeek general model

Google

Gemini 3.5 Flash

5cr

Latest Gemini with huge context

multimodalvision

Gemini 2.5 Pro

12cr

Google's most capable reasoning model

reasoningmultimodalvision

Gemini 2.5 Flash

3cr

Fast and efficient multimodal model

multimodal

Microsoft

Phi-4 Reasoning

3cr

Small but powerful reasoning model

reasoningefficient

MiniMax

MiniMax M3

5cr

Latest MiniMax flagship

MiniMax M2.7 Fast

3cr

High-speed generation

Mistral

Mistral Large

6cr

European AI flagship

multilingual

Devstral Medium

4cr

Optimized for developers

coding

Moonshot

Kimi K2.7 Code

8cr

Elite coding model

coding

OpenAI

GPT-5.4

15cr

Most advanced OpenAI model with deep reasoning

reasoningmultimodalvision

GPT-5.4 Mini

8cr

Balanced performance and speed

reasoning

GPT-5.4 Nano

3cr

Ultra-fast responses for simple tasks

GPT-5.2

12cr

OpenAI's latest high-performance model

reasoning

GPT-5.1

10cr

Balanced performance and efficiency

GPT-5

10cr

GPT-5 base model

GPT-5 Mini

3cr

Fast and efficient GPT-5 variant

GPT-5 Nano

1cr

Ultra-low-cost GPT-5 variant

GPT-4.1

8cr

Latest GPT-4 series model

GPT-4.1 Mini

3cr

Efficient GPT-4.1 variant

GPT-4.1 Nano

1cr

Budget GPT-4.1 variant

GPT-4o

5cr

Versatile multimodal workhorse

multimodalvision

GPT-4o Mini

2cr

Cost-efficient for everyday tasks

o3

20cr

Advanced reasoning and problem solving

reasoning

o4 Mini

8cr

Efficient reasoning model

reasoning

Perplexity

Sonar Pro

6cr

AI-powered search with citations

searchrealtime

Sonar Reasoning Pro

10cr

Search + deep reasoning

searchreasoning

StepFun

Step 3

4cr

StepFun's general-purpose model

Step 3.7 Flash

2cr

Fast StepFun model

Tencent

Hunyuan T1

4cr

Tencent's reasoning model

reasoning

xAI

Grok 4.3

8cr

Witty, real-time, uncensored

realtimevision

Grok 3

5cr

Fast and capable

Zhipu

GLM-5.2

8cr

Zhipu's latest multimodal flagship

multimodalthinking

GLM-4.7

3cr

Reliable and affordable