BeatAPI

BeatAPI provides asynchronous APIs for AI image and video generation, video analysis, music and ecommerce video workflows, file uploads, usage, and webhooks.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Create Chat Completion

    Generate a synchronous OpenAI-compatible chat completion from a conversation using a BeatAPI text model. Returns native choices, tool calls, reasoning and usage without task polling. Nonstreaming only: stream must be false. Model-specific options and input modalities vary; paid models require balance. GPT-6.1 Terra and Sol tool calling requires the Responses endpoint instead.

  • Create Ecommerce Video Task

    Start a paid asynchronous BeatAPI product-ad video task from uploaded product images, and return its task ID for status polling.

  • Create Effect Task

    Start a paid asynchronous image or video Effect task. Read List Effects first for the selected version's exact input and supported options. Save data.id and use Get Task to poll, following poll_after_seconds, until succeeded or failed. Read finished assets from Get Task's task.output.media. USD is reserved at acceptance, settled on success, and refunded after a definite processing failure. Use an idempotency key for safe exact retries; do not blindly retry an uncertain create.

  • Create Image Generation Task

    Start a paid asynchronous BeatAPI image generation task with one exact model-specific contract, and return its task ID for status polling.

  • Create Message

    Generate one non-streaming Anthropic-compatible message with a BeatAPI model. Supports native text/image content, tool-use conversations, thinking and prompt caching where the model supports them. Returns the native response; inspect content, stop_reason and usage. Text calls are synchronous and never require task polling. Unknown options may be ignored by the gateway.

  • Create Music Video Task

    Start a paid asynchronous Standard or Premium music video from public HTTPS audio and images. Returns the task ID for Get Task polling. Standard manual composition pauses at requires_action for shot review; Premium offers sing, sing_perform, dance, and perform modes.

  • Create Realtime Session

    Reserve a duration tier and allocate a short-lived BeatAPI Realtime Video browser session. Requires a unique Idempotency-Key and exact allowed browser origins; identical retries reuse the session and secret. Returns the native data session and client_secret for @beatapi/realtime; does not connect a browser. The selected tier settles after the first rendered remote frame produces an accepted billing heartbeat; closing or expiring before activation fully refunds the reservation. Close with DELETE /v1/realtime/sessions/{session_id}. Production availability is subject to commercial and capacity launch gates.

  • Create Text Response

    Generate a synchronous BeatAPI text response using the OpenAI Responses format, with native text/image input, reasoning, function tools and structured outputs. Non-streaming only (stream must be false). Returns the full native JSON response. Requests may be billed; model and option availability depend on the connected key.

  • Create Video Analysis Task

    Start a paid asynchronous analysis of an account-owned uploaded video and return its task ID for status polling.

  • Create Video Generation Task

    Start a paid asynchronous BeatAPI video generation task with an exact model-specific request. Save the returned task ID and use Get Task to poll until succeeded or failed.

  • Create Webhook

    Register a public HTTPS endpoint for BeatAPI task completion callbacks. Optionally select task.succeeded and/or task.failed; omitting events subscribes to both. Returns the native data envelope with the endpoint ID, delivery status and full signing secret. Store the secret securely at creation; later public API responses mask it. Verify callback signatures over the timestamp and raw body, rejecting timestamps older than five minutes. Polling GET /v1/tasks/{task_id} remains the source of truth if callbacks are delayed or fail.

  • Run Capability

    Run a capability after Search and Inspect: copy its reference, check its price and readiness, and fill input exactly from its input_schema. start (default) executes and may spend balance or create a task; sync kinds return their result, async kinds return a task and next. This same action also polls with operation=status and task_id (media every 5–10 seconds; research every 10–15 seconds) until succeeded or failed, or retrieves a stored result with operation=result and request_id free within one hour using the same key. One call per invocation; no automatic polling. Returns the native polymorphic full/preview payload, usage, result_ref and next. Use a unique idempotency key per task and reuse it only for an identical start retry. Requires an API key and account eligibility; insufficient balance or free-tier restrictions are errors, not successful runs.

  • Upload File

    Upload an image, audio file, subtitle file, or short video to BeatAPI and return an account-owned URL for generation or analysis inputs.