POST /graphql. Choose a query
to read existing resources or a mutation to create or change them. This reference
covers AI live streaming channels, account access, model and element discovery,
image and video generation, speech, avatars, and generation results.
The production GraphQL URL is https://backend.apob.ai/graphql.
Set APOB_GRAPHQL_URL to that URL; use your integration’s own URL for other environments.
The examples use synthetic resource IDs; replace them with resources accessible
to your account. Required fields and defaults describe the API contract, while
account access, available credits, and supported setting combinations are checked
when an operation runs.
Build a live streaming integration
The Live streaming API covers a complete channel workflow: create a channel from text or a source asset, read its HLS playback URL and scene state, create and vote on scene candidates, and manage the channel as its owner. Owner controls include audience scene creation, stopping a channel, and creating a new continuation channel from an ended channel.
Follow Create an AI live streaming channel for
the first-channel walkthrough. If an agent is your client, use the
MCP Live tools for channel creation, scene proposals, and voting.
Keep the created channel ID and read that channel to follow startup. A
LIVE channel
or a non-null playback URL does not establish playable HLS media. Live channels
use their own channel and scene state; they do not use the image/video generation
task-polling workflow below.Make your first request
Obtain an APOB API key through your signed-in APOB integration. Send the complete key inAuthorization: Bearer <APOB_API_KEY> on every authenticated request.
See authentication for key management and the
separate Firebase login flow.
cURL
Request and response format
The response contains
data, errors, or both. Read the GraphQL errors array
even when HTTP returns 200. A mutation can create a resource before a selected
response field fails, so an error does not always prove that submission failed.
Call from JavaScript
This helper accepts an already obtained APOB API key. It performs one HTTP request and reports HTTP or GraphQL errors without automatically retrying.JavaScript
Complete a generation
1
Inspect capabilities and live rates
Query the public Feature catalog (
featureCatalog,
no authentication required) to discover current tiers, limits, defaults, and
live configured credit rates.2
Discover inputs
Read your account, choose an accessible ready model,
and select models and elements.
3
Submit once
Use the image, video, or speech mutation and retain the returned content ID
and task ID. Generation mutations can consume credits.
4
Poll the existing content
Read the task and results until the task
finishes. Success requires both
status: finished and finishCode: 0.5
Download outputs
Select the returned media IDs and request download URLs. Refresh an expired
URL by reading the same result again.