API Reference
Get Generation
Возвращает метаданные конкретной генерации (API-запроса): модель, провайдер, токены, стоимость, задержку и статус.
Authorization
BearerAuth AuthorizationBearer <token>
In: header
Query Parameters
id*string
Идентификатор генерации (usage ID)
Response Body
application/json
curl -X GET "http://localhost:8080/v1/generation?id=string"{
"data": {
"id": "string",
"model": "string",
"provider": "string",
"total_cost": "string",
"currency": "string",
"created_at": "string",
"status": "success",
"streamed": true,
"finish_reason": "string",
"latency_ms": 0,
"generation_time_ms": 0,
"tokens_prompt": 0,
"tokens_completion": 0,
"tokens_reasoning": 0,
"tokens_cached": 0
}
}