GET /api/v1/inference/history
API version: v1.2.4
Get the user's video generation job history.
Endpoint
Plain text
GET /api/v1/inference/historyAuthentication
Required. Include your API key in the request header:
Plain text
X-API-Key: your-api-key-hereQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Number of jobs to return (default: 50) |
Response
History and request details return the prompt exactly as you submitted it:
| Field | Meaning |
|---|---|
prompt | Your original input, including whitespace |
original_prompt | Same as prompt |
original_prompt_unavailable | Present and true only on older requests whose original input was not saved; prompt is then null |
Older records are not backfilled.
Success (200 OK)
JSON
{
"jobs": [
{
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "completed",
"prompt": "A sunset over mountains",
"original_prompt": "A sunset over mountains",
"model": "wan/v2.2-a14b/text-to-video",
"width": 848,
"height": 480,
"num_frames": 81,
"frames_per_second": 16,
"lora_id": null,
"result_url": "https://...",
"created_at": "2025-01-15T10:30:00Z",
"completed_at": "2025-01-15T10:35:00Z"
}
],
"total": 42
}Examples
curl "https://phosor.ai/api/v1/inference/history?limit=10" \
-H "X-API-Key: your-api-key"Related Endpoints
- POST /api/v1/inference/submit - Submit a video generation task
- GET /api/v1/inference/status/{request_id} - Check task status
- GET /api/v1/inference/result/{request_id} - Get completed video