curl --request POST \
--url https://direct.evolink.ai/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kimi-k3.1-pro",
"max_tokens": 1024,
"output_config": {
"effort": "low"
},
"messages": [
{
"role": "user",
"content": "Reply with OK."
}
]
}
'{
"id": "<string>",
"type": "message",
"role": "assistant",
"model": "kimi-k3.1-pro",
"content": [
{
"type": "text",
"text": "<string>"
}
],
"stop_reason": "end_turn",
"stop_sequence": "<string>",
"usage": {
"input_tokens": 123,
"cache_creation_input_tokens": 123,
"cache_read_input_tokens": 123,
"output_tokens": 123,
"output_tokens_details": {
"thinking_tokens": 123
},
"cache_creation": {
"ephemeral_5m_input_tokens": 1,
"ephemeral_1h_input_tokens": 1
},
"server_tool_use": {
"web_search_requests": 1
}
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}Kimi K3.1 Pro / Highspeed - API compatible con Anthropic
Endpoint público: POST /v1/messages. Configure el esfuerzo en output_config.effort y el TTL de escritura de 5m/1h en cache_control de nivel superior. Conserve completos thinking, signature, tool_use y los bloques de resultados de búsqueda del servidor.
curl --request POST \
--url https://direct.evolink.ai/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kimi-k3.1-pro",
"max_tokens": 1024,
"output_config": {
"effort": "low"
},
"messages": [
{
"role": "user",
"content": "Reply with OK."
}
]
}
'{
"id": "<string>",
"type": "message",
"role": "assistant",
"model": "kimi-k3.1-pro",
"content": [
{
"type": "text",
"text": "<string>"
}
],
"stop_reason": "end_turn",
"stop_sequence": "<string>",
"usage": {
"input_tokens": 123,
"cache_creation_input_tokens": 123,
"cache_read_input_tokens": 123,
"output_tokens": 123,
"output_tokens_details": {
"thinking_tokens": 123
},
"cache_creation": {
"ephemeral_5m_input_tokens": 1,
"ephemeral_1h_input_tokens": 1
},
"server_tool_use": {
"web_search_requests": 1
}
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}https://direct.evolink.ai, que ofrece mejor compatibilidad con los modelos de texto y las conexiones de larga duración. https://api.evolink.ai es el endpoint principal para los servicios multimodales y sirve como dirección de respaldo para los modelos de texto.Autorizaciones
##Todas las interfaces requieren autenticación mediante Bearer Token##
Obtención de la API Key:
Visita la página de gestión de API Key para obtener tu API Key
Al usarla, añádela en la cabecera de la solicitud:
Authorization: Bearer YOUR_API_KEY
Cuerpo
Use kimi-k3.1-pro o kimi-k3.1-pro-highspeed; Highspeed genera más rápido.
kimi-k3.1-pro, kimi-k3.1-pro-highspeed Número máximo de tokens permitidos para esta generación, incluidos thinking y el texto final.
1 <= x <= 1048576Lista de mensajes de Anthropic Messages. En conversaciones de varios turnos, devuelve sin cambios los bloques de contenido completos del assistant.
1Show child attributes
Show child attributes
Prompt de sistema como cadena o array de bloques text.
Indica si se devuelve un flujo de eventos Anthropic SSE.
Funciones personalizadas o búsqueda web del servidor. La búsqueda integrada usa type=web_search_20250305 y name=web_search; se cobra por llamada realizada.
- Option 1
- Option 2
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Secuencias de parada: una coincidencia exacta detiene la generación y se excluye de la salida. Máximo 5 secuencias, de hasta 32 bytes cada una.
5Solo cache_control de nivel superior controla el TTL de escritura; las marcas en bloques de mensaje no lo sustituyen. Si se omite: 5m.
Show child attributes
Show child attributes
Configuración de salida: esfuerzo de razonamiento y salida estructurada.
Show child attributes
Show child attributes
Respuesta
Respuesta Message; las solicitudes en streaming devuelven un flujo de eventos Anthropic SSE
message assistant "kimi-k3.1-pro"
Bloque de contenido de Anthropic para texto, imagen, razonamiento, uso de herramientas o resultados de herramientas.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
Show child attributes
Show child attributes
end_turn, max_tokens, tool_use, refusal, null Show child attributes
Show child attributes