JavaScript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.phaseo.app/v1/generations', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "request_id": "<string>", "team_id": "<string>", "app_id": "<string>", "endpoint": "<string>", "model_id": "<string>", "provider": "<string>", "native_response_id": "<string>", "stream": true, "byok": true, "status_code": 123, "success": true, "error_code": "<string>", "error_message": "<string>", "latency_ms": 123, "generation_ms": 123, "usage": { "prompt_tokens": 123, "completion_tokens": 123, "total_tokens": 123 }, "cost_nanos": 123, "currency": "<string>", "pricing_lines": [ {} ], "key_id": "<string>", "throughput": 123 }
Retrieve a specific generation by ID.
request_id
GET /v1/generations?id=<request_id>
Bearer token authentication
The ID of the generation
Generation data
Show child attributes
Was this page helpful?