Saltar al contenido principal
POST
/
v1beta
/
models
/
{model}
:generateContent
Intelligent Model Routing (Gemini Format)
curl --request POST \
  --url https://direct.evolink.ai/v1beta/models/{model}:generateContent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "Introduce the history of artificial intelligence"
        }
      ]
    }
  ],
  "generationConfig": {
    "temperature": 0.7,
    "topP": 0.9,
    "topK": 40,
    "maxOutputTokens": 1024
  }
}
'
{
  "candidates": [
    {
      "content": {
        "parts": [
          {
            "text": "La historia de la inteligencia artificial se remonta a la década de 1950..."
          }
        ],
        "role": "model"
      },
      "finishReason": "STOP"
    }
  ],
  "usageMetadata": {
    "promptTokenCount": 15,
    "candidatesTokenCount": 156,
    "totalTokenCount": 171
  },
  "modelVersion": "gpt-5.4"
}

Documentation Index

Fetch the complete documentation index at: https://docs.evolink.ai/llms.txt

Use this file to discover all available pages before exploring further.

Enrutamiento Inteligente de Modelos

Llame al enrutamiento inteligente de modelos EvoLink Auto usando el formato de Google Generative AI.

Características Principales

  • Formato Nativo de Gemini: Totalmente compatible con la API de Google Generative AI
  • Enrutamiento Inteligente: Selecciona automáticamente un modelo adecuado
  • Respuesta Transparente: La respuesta incluye la versión del modelo realmente utilizada
Use evolink/auto en el parámetro de ruta y llame al endpoint /v1beta/models/evolink/auto:generateContent.
BaseURL: La BaseURL predeterminada es https://direct.evolink.ai, que ofrece mejor compatibilidad con modelos de texto y admite conexiones persistentes. https://api.evolink.ai es el endpoint principal para servicios multimodales y actúa como dirección de respaldo para los modelos de texto.

Autorizaciones

Authorization
string
header
requerido

##All APIs require Bearer Token authentication##

Get API Key:

Visit API Key Management to get your API Key

Add to request header:

Authorization: Bearer YOUR_API_KEY

Parámetros de ruta

model
enum<string>
requerido

Model name, use evolink/auto to enable intelligent routing

Opciones disponibles:
evolink/auto
Ejemplo:

"evolink/auto"

Cuerpo

application/json
contents
object[]
requerido

Conversation content list

Ejemplo:
[
{
"role": "user",
"parts": [
{
"text": "Introduce the history of artificial intelligence"
}
]
}
]
generationConfig
object

Respuesta

200 - application/json

Success

candidates
object[]
usageMetadata
object
modelVersion
string

Actual model version used

Ejemplo:

"gemini-2.5-pro"