Generation stats for a session
curl --request GET \
--url https://api.floprouter.com/v1/generation \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.floprouter.com/v1/generation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.floprouter.com/v1/generation"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": "gen-mwu6ngd2-6002b42b549f",
"model": "qwen/qwen3-8b",
"created_at": "2026-11-24T04:16:42.000Z",
"api_type": "completions",
"streamed": false,
"cancelled": false,
"provider_name": "miner-002.0xmakase.co.jp",
"finish_reason": "stop",
"native_finish_reason": "stop",
"tokens_prompt": 29,
"tokens_completion": 8,
"native_tokens_prompt": 29,
"native_tokens_completion": 8,
"native_tokens_reasoning": null,
"native_tokens_cached": 0,
"total_cost": 0.0105,
"usage": 0.0105,
"upstream_inference_cost": 0.01,
"is_byok": false,
"latency": 14887,
"generation_time": 3964,
"http_referer": null,
"app_title": null,
"user_agent": null,
"flop": {
"session_id": "gen-mwu6ngd2-6002b42b549f",
"status": "settled",
"channel_id": "0xd05040e5b483ae6afe96a8027d4e8fadb431cdb954f24f9342475610c92ec4be",
"currency": "FLOP",
"cost_final": true
},
"reply": {
"role": "assistant",
"content": "The user pays for this request."
}
}
}{
"error": {
"code": 400,
"message": "id must be a generation id (gen-...)",
"metadata": {
"reason": "invalid_id"
}
}
}{
"error": {
"code": 401,
"message": "a wallet API key is required (Authorization: Bearer fr_...); see POST /v1/auth/challenge",
"metadata": {
"reason": "unauthorized"
}
}
}{
"error": {
"code": 404,
"message": "no such generation",
"metadata": {
"reason": "generation_not_found"
}
}
}Inference
Generation stats for a session
Tokens, cost in FLOP, finish reasons, latency, app headers, the verified reply, and the session (settlement record) under flop. A wallet’s generations need that wallet’s key.
GET
/
v1
/
generation
Generation stats for a session
curl --request GET \
--url https://api.floprouter.com/v1/generation \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.floprouter.com/v1/generation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.floprouter.com/v1/generation"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": "gen-mwu6ngd2-6002b42b549f",
"model": "qwen/qwen3-8b",
"created_at": "2026-11-24T04:16:42.000Z",
"api_type": "completions",
"streamed": false,
"cancelled": false,
"provider_name": "miner-002.0xmakase.co.jp",
"finish_reason": "stop",
"native_finish_reason": "stop",
"tokens_prompt": 29,
"tokens_completion": 8,
"native_tokens_prompt": 29,
"native_tokens_completion": 8,
"native_tokens_reasoning": null,
"native_tokens_cached": 0,
"total_cost": 0.0105,
"usage": 0.0105,
"upstream_inference_cost": 0.01,
"is_byok": false,
"latency": 14887,
"generation_time": 3964,
"http_referer": null,
"app_title": null,
"user_agent": null,
"flop": {
"session_id": "gen-mwu6ngd2-6002b42b549f",
"status": "settled",
"channel_id": "0xd05040e5b483ae6afe96a8027d4e8fadb431cdb954f24f9342475610c92ec4be",
"currency": "FLOP",
"cost_final": true
},
"reply": {
"role": "assistant",
"content": "The user pays for this request."
}
}
}{
"error": {
"code": 400,
"message": "id must be a generation id (gen-...)",
"metadata": {
"reason": "invalid_id"
}
}
}{
"error": {
"code": 401,
"message": "a wallet API key is required (Authorization: Bearer fr_...); see POST /v1/auth/challenge",
"metadata": {
"reason": "unauthorized"
}
}
}{
"error": {
"code": 404,
"message": "no such generation",
"metadata": {
"reason": "generation_not_found"
}
}
}