agentleFS
prizmadprizmad/agent-skills/api-usage/SKILL.md

api-usage

Skill2 starsChanged 7 months agoMITView on GitHub

REST API for creating AI-powered video ads programmatically. Bearer token auth via API key, OAuth client_credentials, or OAuth Authorization Code (Connect flow).

  • Sends data out

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every video status response carries three URL kinds, in priority order:

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Prizmad REST API

Prizmad provides a REST API for creating AI-powered video ads programmatically. The MCP server at /api/mcp is a thin agent-friendly wrapper on top of these endpoints — anything the MCP layer does, you can do with a curl loop.

Authentication

Three interchangeable ways to obtain a Bearer token. See /.well-known/agent-skills/oauth/SKILL.md for the full OAuth spec.

Option 1: API key (simplest)

Authorization: Bearer przmad_sk_live_...

Manage keys at https://prizmad.com/api-keys.

Option 2: OAuth 2.0 client_credentials (server-to-server)

curl -X POST https://prizmad.com/oauth/token \
  -d grant_type=client_credentials \
  -d client_id=my-app \
  -d client_secret=przmad_sk_live_...

Returns access_token (HS256 JWT, 1 h, audience https://prizmad.com/api).

Option 3: OAuth 2.1 Authorization Code + PKCE + DCR (Connect flow)

The "Add custom connector" path used by Claude Desktop / Claude.ai / ChatGPT / Cursor. RS256 JWT bound to the MCP audience, refresh-rotated. Discovery: /.well-known/oauth-authorization-server.

Discovery

  • OpenAPI: https://prizmad.com/openapi.json
  • Interactive docs (Scalar): https://prizmad.com/api/docs
  • API catalog (RFC 9727): https://prizmad.com/.well-known/api-catalog
  • Health: https://prizmad.com/api/health

Endpoints

Public (no auth)

MethodPathPurpose
GET/api/v1/templatesList all video templates with features and token costs
GET/api/v1/avatarsList built-in avatar presets with recommended voices

Authenticated

MethodPathPurpose
GET/api/v1/videosList the caller's recent video projects (paginated; ?limit, ?status). Returns projectUrl / shareUrl / downloadUrl per row.
POST/api/v1/videosCreate a new video render. Returns videoId + estimated time + poll cadence. Requires Pro plan.
GET/api/v1/videos/{id}Status by id — progress %, steps, projectUrl, shareUrl, downloadUrl, errorMessage. Auto-mints a share token on completion.
GET/api/v1/videos/{id}/downloadAuthenticated mp4 stream proxied through prizmad.com.
POST/api/v1/videos/batchLaunch up to 20 renders in parallel; pre-checks total token cost.
POST/api/v1/uploadMultipart upload for one or more product / avatar images.
POST/api/v1/upload-from-urlJSON upload (image URL or base64 blob) — agent-friendly. Returns a prizmad.com-hosted URL.

Output URLs

Every video status response carries three URL kinds, in priority order:

FieldGoes to
projectUrlOwner-only dashboard /projects/<id> (full remix / edit / asset / download) — primary link to give the signed-in user.
shareUrlPublic /share/<token> page — only for forwarding outside the account.
downloadUrlAuthenticated /api/v1/videos/<id>/download mp4 proxy.

The raw Vercel Blob URL is never part of the public response; downloads always flow through prizmad.com.

Plan + token rules

  • API generation requires a Pro plan (POST /api/v1/videos returns 403 with an upgrade URL otherwise).
  • Tokens come from the user's monthly plan first, then any top-up balance.
  • Insufficient balance returns 402 with required, balance, and topUpUrl.

Rate limits

  • 10 requests per minute per API key on most endpoints.
  • 30 requests per minute on the MCP endpoint.
  • Token consumption per create_video is template-specific — see the cost field in /api/v1/templates.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.