LLMs

Learn how to use all LLMs with EZLINK AI API.


POST

Use LLMs

If you want to use models like Claude, Mistral, Groq, etc., you only need to change the "model" parameter. This allows for convenient access.

Tips1

"HTTP-Referer" and "X-Title" are voluntarily provided by you. If you don't provide them, no error will be reported. This is just to showcase the projects of our partners, achieving a win-win situation.

Tips2

FAQ: Which types of models does ezlinkai support?
ANS: ezlinkai supports various types of models, including:

Chat models (e.g., GPT-3.5, GPT-4, Claude, etc.)
Image generation models (e.g., DALL-E, Stable Diffusion, Midjourney, etc.)
Text-to-Speech (TTS) models
Speech-to-Text (STT) models (e.g., Whisper)
Embedding models
Stable Diffusion, Midjourney have special format , see below for detailed documentation All models follow the OpenAI API format, making it easy to integrate and use.

POST
/v1/chat/completions
curl https://api.ezlinkai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $YOUR_KEY" \
  -H "HTTP-Referer: YOUR_SITE_URL" \
  -H "X-Title: YOUR_SITE_NAME" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {
        "role": "system",
        "content": "You are a helpful assistant."
      },
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }'


Was this page helpful?