{
"id": "<string>",
"created_at": "<string>",
"data": {
"id": "<string>",
"object": "job",
"model": "<string>",
"provider_status": "<string>",
"queue_position": 123,
"cancelable": true,
"next_poll_after_seconds": 123,
"urls": {
"get": "<string>",
"cancel": "<string>"
},
"input": {},
"metadata": {},
"cost": {
"estimated": "<string>",
"charged": "<string>",
"refunded": "<string>"
},
"usage": [
{
"units": 123
}
],
"artifacts": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"url": "<string>",
"url_expires_at": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"width": 123,
"height": 123,
"duration_ms": 123
}
],
"expires_at": "<string>",
"error": {
"message": "<string>",
"retryable": true
},
"webhook": {
"url": "<string>",
"attempts": 123
},
"idempotency_hit": true,
"request_id": "<string>",
"created_at": "<string>",
"started_at": "<string>",
"completed_at": "<string>",
"updated_at": "<string>"
}
}API Reference
A job reached a terminal state standard webhooks signature
WEBHOOK
jobFinished
{
"id": "<string>",
"created_at": "<string>",
"data": {
"id": "<string>",
"object": "job",
"model": "<string>",
"provider_status": "<string>",
"queue_position": 123,
"cancelable": true,
"next_poll_after_seconds": 123,
"urls": {
"get": "<string>",
"cancel": "<string>"
},
"input": {},
"metadata": {},
"cost": {
"estimated": "<string>",
"charged": "<string>",
"refunded": "<string>"
},
"usage": [
{
"units": 123
}
],
"artifacts": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"url": "<string>",
"url_expires_at": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"width": 123,
"height": 123,
"duration_ms": 123
}
],
"expires_at": "<string>",
"error": {
"message": "<string>",
"retryable": true
},
"webhook": {
"url": "<string>",
"attempts": 123
},
"idempotency_hit": true,
"request_id": "<string>",
"created_at": "<string>",
"started_at": "<string>",
"completed_at": "<string>",
"updated_at": "<string>"
}
}