Skip to content

Media policy

The media policy decides whether agents may generate media and within which limits. It exists twice:

  • the workspace policy (workspace_settings.media_policy), edited on the Generative media card under Settings → Models (GET|PUT /api/workspaces/{id}/media-policy);
  • an optional project policy (projects.media_policy), edited on the project’s Media tab (GET|PUT /api/projects/{id}/media-policy).

Both are sparse: a key that is not set inherits. Sending {"policy": null} clears a policy. Only an owner or admin may write either one. The generation itself also needs the plan entitlement media.generate.

Key Type Default Scope Combination
enabled boolean false workspace, project On only when the workspace is on and the project is not off
allowed_modalities list of modalities all five workspace, project Intersection
allowed_providers list of provider ids unrestricted workspace, project Intersection
pins_allowed boolean false workspace, project Allowed only when the workspace allows it and the project does not forbid it
caps map modality → {daily_usd, monthly_usd} built-in caps below workspace, project Workspace caps overlay the built-in caps per field; project caps apply in addition
default_disclosure none, label_required, synthetic_person, synthetic_voice label_required workspace, project Project, else workspace, else the default
max_duration_s integer, 1 to 600 60 workspace, project The smaller value
local_runner {agent_profile_id, command} not set workspace only -
territory_licence map provider → {territories, terms_class} not set workspace only -

A project can only narrow: it can switch generation off, drop modalities and providers, forbid pins, add stricter caps and lower the maximum duration. It can never widen the workspace policy.

A write is refused with 400 and a message naming the key, for example media_policy.caps.video.daily_usd: ...:

  • an unknown key;
  • a cap that is negative, not finite or above 100000;
  • max_duration_s outside 1 to 600;
  • a provider id that is not lowercase a-z, 0-9, _ or -, 1 to 32 characters;
  • a territory that is neither "*" nor a two-letter upper-case country code;
  • a local_runner.command that is empty, longer than 500 characters or contains a line break;
  • local_runner or territory_licence on a project.

A stored policy that cannot be read (for example after a manual database edit) is treated as the strict default: generation off.

Modality Lane Poll interval Timeout
image image_gen 5 s 10 min
video video_gen 20 s 60 min
audio_music music_gen 15 s 20 min
audio_speech speech_gen 5 s 10 min
model_3d model3d_gen 30 s 120 min

A job that is still unfinished after its timeout ends as timed_out.

These caps apply per workspace when the workspace policy sets none. They are data: an admin can raise or lower them in the policy.

Modality Per day (USD) Per month (USD)
image 5 50
video 20 200
audio_music 5 50
audio_speech 2 20
model_3d 5 50

Days and months are UTC. A refusal names its layer:

Layer Meaning
workspace_hard_stop The workspace budget is blocked, or its hard stop is on and the remaining budget is smaller than the estimate
workspace_<modality>_daily / workspace_<modality>_monthly The workspace cap for the modality
project_<modality>_daily / project_<modality>_monthly The project cap for the modality
Disclosure Needs a human approval
none no, unless the purpose is shippable_asset
label_required no, unless the purpose is shippable_asset
synthetic_person yes
synthetic_voice yes

audio_speech is always synthetic_voice, whatever the call asks for. A requested none or label_required never lowers the default disclosure. Approval states are not_required, pending, approved and rejected.

State Meaning
queued Accepted and budgeted, not yet sent
submitted Sent; the provider works asynchronously
running The provider reports progress
done Stored, with provenance and booked cost
failed Ended with an error
refused The provider refused the prompt for its content
timed_out Still unfinished after the modality’s timeout
canceled Canceled while still queued

A job that did not end in done carries error = {code, message, provider_status}:

Code Meaning
content_policy The provider refused the content; not retried
provider_error The provider failed (5xx, or a runner task that did not succeed)
timeout The job exceeded its timeout
credential The key is missing, invalid or not allowed
invalid_request The provider refused the request shape
download_failed The result could not be fetched or stored
internal A SupaCloud error