Properties
| Name | Type | Description |
|---|---|---|
| data | object | Accepted or current BeatAPI task state. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/beatapi/json-schema/beatapi-task-response-schema.json",
"title": "TaskResponse",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/beatapi-ecommerce-video-api-openapi.yml#/components/schemas/TaskResponse",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"$ref": "#/$defs/Task",
"description": "Accepted or current BeatAPI task state."
}
},
"$defs": {
"Storyboard": {
"type": "object",
"required": [
"shots"
],
"properties": {
"shots": {
"type": "array",
"description": "Ordered Music Video storyboard shots. The array may be empty before storyboard generation completes.",
"items": {
"$ref": "#/$defs/StoryboardShot"
}
}
}
},
"StoryboardShot": {
"type": "object",
"required": [
"id",
"index",
"status",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "string",
"description": "BeatAPI shot id. Use this id for media retrieval, edit, and compose operations."
},
"index": {
"type": "integer",
"description": "Zero-based shot order in the storyboard."
},
"status": {
"$ref": "#/$defs/TaskStatus",
"description": "Current lifecycle state for this storyboard shot."
},
"duration_seconds": {
"type": "integer",
"description": "Planned or generated shot duration in seconds."
},
"prompt": {
"type": "string",
"description": "Creative instruction used to generate this shot."
},
"lyric_text": {
"type": "string",
"description": "Lyric segment aligned with this shot when available."
},
"media": {
"type": "object",
"description": "Present only after the shot media has been materialized or after a shot edit finishes.",
"properties": {
"type": {
"type": "string",
"description": "Hosted media type for the materialized shot."
},
"url": {
"type": "string",
"format": "uri",
"description": "BeatAPI-hosted HTTPS URL for the materialized shot."
},
"mime_type": {
"type": "string",
"description": "MIME type of the hosted shot media."
}
}
},
"created_at": {
"type": "integer",
"description": "Unix timestamp when the shot record was created."
},
"updated_at": {
"type": "integer",
"description": "Unix timestamp when the shot record last changed."
}
}
},
"Task": {
"type": "object",
"required": [
"id",
"object",
"task_kind",
"capability_id",
"capability_version",
"status",
"stage",
"created_at",
"updated_at",
"completed_at",
"output",
"usage",
"request_id",
"error_code",
"error_message"
],
"properties": {
"id": {
"type": "string",
"description": "Stable BeatAPI task ID used for polling and support."
},
"object": {
"type": "string",
"enum": [
"task"
],
"description": "Object discriminator; always `task`."
},
"task_kind": {
"type": "string",
"enum": [
"workflow",
"effect",
"image",
"video",
"data"
],
"description": "Public task family that determines which capability fields are present. `data` is a data capability run as a task (`data:web.research`), polled through `POST /v1/capabilities/run`."
},
"capability_id": {
"type": "string",
"description": "Stable BeatAPI workflow, Effect, generation model, or data capability ID (such as `web.research`) selected when the task was accepted."
},
"capability_version": {
"type": "integer",
"description": "Always `1`."
},
"workflow": {
"type": "string",
"enum": [
"music-video",
"ecommerce-video",
"video-analysis"
],
"description": "Present for workflow tasks; identifies the selected BeatAPI workflow."
},
"effect_id": {
"type": "string",
"description": "Present for Effect tasks; stable selected Effect ID."
},
"effect_version": {
"type": "integer",
"description": "Present for Effect tasks; immutable Effect version used for processing."
},
"media_type": {
"type": "string",
"enum": [
"image",
"video"
],
"description": "Present when task_kind is image or video."
},
"model": {
"type": "string",
"description": "Stable BeatAPI model alias. It is independent from internal execution routing."
},
"status": {
"$ref": "#/$defs/TaskStatus",
"description": "Current task lifecycle status. Stop polling at `succeeded` or `failed`; Music Video can also require manual action."
},
"stage": {
"$ref": "#/$defs/TaskStatus",
"description": "Always repeats `status`. Kept for compatibility; read `status`."
},
"storyboard": {
"$ref": "#/$defs/Storyboard",
"description": "Music Video storyboard metadata when available."
},
"created_at": {
"type": "integer",
"description": "Unix timestamp when BeatAPI accepted the task."
},
"updated_at": {
"type": "integer",
"description": "Unix timestamp of the latest task update."
},
"completed_at": {
"type": [
"integer",
"null"
],
"description": "Terminal Unix timestamp, or null while work is in progress."
},
"poll_after_seconds": {
"type": "integer",
"description": "Present while the task is running: how long to wait before the next status call (5 for images, 8 for video and Effects, 10 for workflows and data tasks). Follow it instead of a fixed interval. Absent on a terminal task."
},
"typical_seconds": {
"type": "object",
"description": "Present while the task is running, when enough recent finishes exist: how long this task's model recently took from accepted to succeeded, measured on this gateway. Past `p90` with no change the task is running long; there is no ETA beyond that.",
"required": [
"p50",
"p90",
"samples",
"window"
],
"properties": {
"p50": {
"type": "integer",
"description": "Median seconds."
},
"p90": {
"type": "integer",
"description": "Ninetieth-percentile seconds."
},
"samples": {
"type": "integer",
"description": "Finished tasks the figures rest on."
},
"window": {
"type": "string",
"description": "The window measured, such as `7d`."
}
}
},
"output": {
"description": "Output is null until the task succeeds.",
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"media",
"r2_url"
],
"properties": {
"media": {
"type": "array",
"description": "BeatAPI-hosted result assets.",
"items": {
"type": "object",
"required": [
"type",
"url",
"mime_type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"video"
],
"description": "Result asset type."
},
"url": {
"type": "string",
"format": "uri",
"description": "BeatAPI-hosted HTTPS result URL."
},
"mime_type": {
"type": "string",
"description": "Result asset MIME type."
}
}
}
},
"r2_url": {
"type": "string",
"format": "uri",
"deprecated": true,
"description": "Deprecated — read media[0].url. The primary asset's URL again (the video, else the first image), the same value as that media[].url, kept only for clients that read one URL."
}
}
},
{
"type": "object",
"required": [
"text",
"usage",
"finish_reason"
],
"properties": {
"text": {
"type": "string",
"description": "Completed video analysis text."
},
"usage": {
"type": "object",
"description": "Measured token usage used for final USD settlement.",
"required": [
"input_tokens",
"output_tokens",
"total_tokens"
],
"properties": {
"input_tokens": {
"type": "integer",
"minimum": 0,
"description": "Tokens consumed by the prompt and video input."
},
"output_tokens": {
"type": "integer",
"minimum": 0,
"description": "Tokens consumed by visible output and model reasoning."
},
"total_tokens": {
"type": "integer",
"minimum": 0,
"description": "Total measured input and output tokens."
}
}
},
"finish_reason": {
"type": [
"string",
"null"
],
"description": "Why the model stopped generating."
}
}
},
{
"type": "object",
"description": "A data task's result: the capability's own result object, such as `web.research` with `research_notes` and `sources` (in a view: `items`).",
"required": [
"object"
],
"additionalProperties": true,
"properties": {
"object": {
"type": "string",
"description": "The result type, such as `web.research`."
}
}
}
]
},
"usage": {
"$ref": "#/$defs/TaskUsage",
"description": "USD reservation, settlement, refund, and optional billable duration for this task."
},
"request_id": {
"type": "string",
"description": "Correlation ID to retain for logs and BeatAPI support."
},
"error_code": {
"type": [
"string",
"null"
],
"description": "Machine-readable terminal failure code, or null when no task failure is recorded."
},
"error_message": {
"type": [
"string",
"null"
],
"description": "Human-readable terminal failure detail, or null when no task failure is recorded."
},
"retryable": {
"type": "boolean",
"description": "Present on a failed task: whether resubmitting could succeed. True when the task failed on our side or timed out (a failed task is not charged); false when it was refused for content or bad input. Same code-to-retryable rule as the error envelope."
}
}
},
"TaskStatus": {
"type": "string",
"enum": [
"queued",
"processing",
"storyboard_ready",
"requires_action",
"editing",
"composing",
"succeeded",
"failed"
]
},
"TaskUsage": {
"type": "object",
"required": [
"credits_reserved",
"credits_settled",
"credits_refunded",
"credits_charged"
],
"properties": {
"credits_reserved": {
"type": "number",
"format": "double",
"multipleOf": 0.01,
"description": "USD amount reserved for this task. The compatibility field name is retained; 1 Credit equals $1 USD."
},
"credits_charged": {
"type": "number",
"format": "double",
"multipleOf": 0.01,
"description": "USD amount charged. `0` on a failed task, because the reserved amount was returned."
},
"billable_duration_seconds": {
"type": "integer",
"description": "Server-detected or request-declared billable duration used for USD calculation."
},
"credits_settled": {
"type": "number",
"format": "double",
"multipleOf": 0.01,
"description": "USD amount settled after successful work."
},
"credits_refunded": {
"type": "number",
"format": "double",
"multipleOf": 0.01,
"description": "USD amount returned after a failed task. On a failed task `credits_reserved` is the amount held at create, `credits_charged` and `credits_settled` are `0`, and `credits_refunded` is the amount returned."
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/beatapi-task-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.