Woven Record Media, Inc. Test API
The Test API from Woven Record Media, Inc. — 1 operation(s) for test.
The Test API from Woven Record Media, Inc. — 1 operation(s) for test.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.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.curl "https://apis.io/api/v1/apis/weftly-ai:weftly-ai-test-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
openapi: 3.2.0
info:
title: Weftly Test API
version: 1.0.0
description: 'AI post-production workflow for content creators. Transcribe and summarize audio and video, find compelling clips, cut horizontal clips or 9:16 vertical clips with burned-in captions, and cut a video from an edited transcript. No account required. Two payment rails: Stripe SPT (fiat card payments) and Tempo crypto (USDC via MPP).'
contact:
name: Woven Record Media
email: support@weftly.ai
url: https://weftly.ai
x-github: https://github.com/woven-record-media
x-guidance: "Weftly is a pay-per-job AI post-production API for audio and video. No account or API key required.\n\nEvery price below is written **USDC / card**. Paying in USDC on Tempo (sign the\n402 challenge with mppx) costs less than paying by card on every job — no\nsubscription or commitment either way.\n\n## Pick the right job_type first\n\n- CLIPS from a video (Reels, TikToks, highlights): start with `find_clips` ($1.70 / $2.00).\n It transcribes the source AND returns ranked clip candidates in one job. Do NOT\n call `transcribe` first — find_clips already produces the transcript. Then create\n an `extract_clip` (horizontal) or `extract_vertical_clip` (9:16) job to cut\n chosen candidates for $0.20 / $0.50 each, with NO re-upload (see \"Source-reuse\"\n below). MCP callers reach the same two job types through one tool,\n `clips_from_job`, selecting `orientation`/`output` instead of a job_type.\n- A BATCH of your OWN chosen vertical clips from one find_clips job, one\n purchase: `clips_vertical` ($0.20 / $0.50 per clip, N clips billed\n as N × that via Stripe quantity). Pick candidates from a prior find_clips\n job, cut them all in one call instead of one extract_vertical_clip per\n clip. Created via POST /api/v1/jobs/{parent_job_id}/derivatives with\n job_type:\"clips_vertical\" and a `clips` array. This REST route is card\n only — it mints no MPP challenge. The USDC rate above is reachable through\n the `clips_from_job` MCP tool instead (orientation: \"vertical\", output:\n \"files\"), which charges the same per-clip price on both rails. No\n publishing.\n- TRANSCRIPT only: `transcribe` (audio $0.20 / $0.50, video $0.70 / $1.00).\n- SUMMARY (also returns transcript): `summarize` (audio $0.45 / $0.75, video $0.95 / $1.25).\n- CLIPS end-to-end from a video you have NOT yet uploaded, in one chained call:\n `clips_from_video` (9:16 vertical) or `clips_youtube` (16:9 horizontal, cuts\n only — does not publish). Finds the best moments AND cuts up to 5 of them\n under one payment. Card rail only — up to $4.50\n authorized up front, captured for exactly what delivers; no MPP/USDC option\n (a chain authorizes before the final price is known, which push settlement\n cannot express). MPP-only callers should use `find_clips` + `extract_clip` /\n `extract_vertical_clip` instead.\n- PODCAST AUDIO from a video Weftly already holds: `audio_from_job` (Free).\n Turns any prior video job into a podcast-ready MP3 (96 kbps mono 44.1 kHz,\n ID3v2.3, loudness-normalized to -16 LUFS / -1.5 dBTP). No re-upload, no payment.\n\n## Two flow shapes (pick by job_type)\n\n### Upload-based — `transcribe`, `summarize`, `find_clips`\n\n 1. POST /api/v1/sessions → session token (free).\n 2. POST /api/v1/jobs with {\"job_type\":\"...\",\"filename\":\"...\",\"content_type\":\"...\"}\n and Authorization: Bearer <token>. Response carries Stripe checkout URL and/or\n MPP deposit info (Tempo USDC).\n 3. Pay via Stripe (checkout_url) OR MPP Tempo (send USDC to deposit_address). For\n agents: use mppx to sign the WWW-Authenticate challenge from step 4 instead.\n 4. GET /api/v1/jobs/{id}/upload-url → presigned R2 upload URL (402+challenge if\n unpaid; pre-paid via Stripe short-circuits).\n 5. PUT the file bytes to the presigned URL (include Content-Type).\n 6. POST /api/v1/jobs/{id}/complete-upload → verifies upload, starts processing.\n 7. Poll GET /api/v1/jobs/{id} until status=\"completed\".\n 8. GET /api/v1/jobs/{id}/outputs/{role}/download. Transcripts accept\n ?format=txt|vtt|json|words for inline content.\n\n### Upload-based, multi-file — `edit_from_multiple_cameras`\n\n Same steps 1-3 and 6-8 as \"Upload-based\" above, but steps 2, 4 and 5 differ:\n\n 2. POST /api/v1/jobs with {\"job_type\":\"...\",\"inputs\":[{\"filename\":\"...\",\"content_type\":\"...\"},...]}\n and Authorization: Bearer <token> — `inputs` replaces `filename`/`content_type`, index 0\n is the main file. Response carries Stripe checkout URL and/or MPP deposit info, same as above.\n 4. GET /api/v1/jobs/{id}/upload-url → `upload_urls[]`, one presigned R2 URL per input\n ({\"index\":0,\"name\":null,\"upload_url\":\"...\",\"expires_at\":\"...\"}), not a single `upload_url`.\n 5. PUT each input's bytes to its own presigned URL (include Content-Type). POST\n /api/v1/jobs/{id}/complete-upload only after every input has landed — it 400s naming\n any missing index.\n\n### Upload-based, card only — `clips_from_video`, `clips_youtube`\n\n A chain: finds clips in a video AND cuts them under one payment. Same steps 1-2,\n 5-8 above, but step 3-4 differ — there is no MPP option:\n\n 1-2. Same as above.\n 3. Response carries a Stripe checkout URL ONLY (no MPP deposit info). This\n authorizes the WORST CASE up front, not a charge — a chain cuts clips\n end-to-end, so the total is not known until it finishes. MPP push\n settlement cannot express \"authorize now, capture later\"; MPP-only callers\n should use `find_clips` + `extract_clip`/`extract_vertical_clip` instead.\n 4. GET /api/v1/jobs/{id}/upload-url → presigned R2 upload URL once the card\n hold is authorized (402+challenge before then; no MPP challenge ever).\n 5-8. Same as above — upload, complete-upload, poll, download. The final\n charge (captured once, at completion) is for exactly what delivered.\n\n### No-upload — `extract_clip`, `extract_vertical_clip`\n\n Cuts from a parent job's already-uploaded source. No upload, no re-transcribe.\n\n 1. POST /api/v1/jobs with {\"job_type\":\"extract_clip\"|\"extract_vertical_clip\",\n \"source_job_id\":\"<parent-job-id>\", \"segments\":[{...}] | \"start\":N,\"end\":M,...}.\n 2. POST /api/v1/jobs/{id}/process with Authorization: Payment <MPP credential> —\n verifies payment AND starts processing in one call. Do NOT call /upload-url\n or /complete-upload for these types; both will fail.\n 3. Poll GET /api/v1/jobs/{id} until status=\"completed\", then download as above.\n\n### No-upload, edit-driven — `edit_from_transcript`\n\n Cuts from a parent job's already-uploaded source, driven by an edited copy of\n its transcript instead of explicit segments — get the source transcript with\n ?format=edit, delete/reorder lines, send the edit back.\n\n 1. POST /api/v1/jobs with {\"job_type\":\"edit_from_transcript\",\n \"source_job_id\":\"<parent-job-id>\", \"edited_transcript\":\"[0001] ...\"}.\n Validated against the parent's word-level transcript BEFORE any job or\n payment is created — an invalid edit returns 422 with the failing lines\n and creates nothing.\n 2. POST /api/v1/jobs/{id}/process with Authorization: Payment <MPP credential> —\n same as the No-upload shape above; do NOT call /upload-url or\n /complete-upload, both will fail.\n 3. Poll GET /api/v1/jobs/{id} until status=\"completed\", then download as above.\n\n### No-upload, free — `audio_from_job`\n\n Extracts podcast audio from a parent job's video. No upload, no payment, no\n 402 challenge: the job starts processing as soon as it is created.\n\n 1. POST /api/v1/jobs with {\"job_type\":\"audio_from_job\",\n \"source_job_id\":\"<parent-job-id>\"} and Authorization: Bearer <token>.\n Optional: \"title\", \"artist\", \"album\", \"date\" (ID3 tags). If the parent\n delivered more than one video (a clips bundle), \"output_role\" is required\n to pick one. A browser session may only use its own parent jobs.\n 2. Poll GET /api/v1/jobs/{id} until status=\"completed\". The job carries\n file_size (bytes) and duration_seconds, the two values an RSS enclosure\n needs.\n 3. Download the MP3 from the `podcast-audio` entry in `outputs`\n (download_url, or attachment_url to save it as a file).\n\n## Source-reuse (find_clips → extract_*)\n\nEach job carries `expires_at` and (for derivatives) `source_job_id`. After\n`find_clips` the source stays for **72h**; `transcribe`/`summarize` parents stay\nfor **24h**. To cut N clips from one video: one find_clips ($1.70 / $2.00) + N extract_* calls\n($0.20 / $0.50 each) referencing the same find_clips job_id. Re-uploading per cut is the\nslow, expensive path; please don't.\n\n## Pricing (flat per-job, USDC / card)\n\n- transcribe: audio $0.20 / $0.50, video $0.70 / $1.00\n- summarize: audio $0.45 / $0.75, video $0.95 / $1.25\n- find_clips: video $1.70 / $2.00\n- extract_clip: $0.20 / $0.50 per call (1+ segments, ≤30 min total)\n- extract_vertical_clip: $0.20 / $0.50 per call (single segment; max duration is profile-dependent — 240s tiktok-primary, 180s instagram-reels, 60s instagram-stories)\n- clips_vertical: $0.20 / $0.50 per clip (batch cut, up to 5 of your own chosen clips from one find_clips job, one purchase; no publishing). The USDC rate is MCP-tool-only — the REST /derivatives route above is card only.\n- clips_horizontal: $0.20 / $0.50 per clip (the same batch, cut 16:9 and delivered as N SEPARATE files — not to be confused with output: \"reel\" mode, which concatenates those segments into one file at the single-clip price). Same MCP-tool-only USDC rate.\n- edit_from_transcript: $1.00 / $1.00 per call (source_job_id + edited_transcript, up to 300 cuts, ≤60 min total)\n- edit_from_multiple_cameras: $2.70 / $3.00 per call (2-4 camera files, ≤60 min main-camera duration, 1080p output)\n- audio_from_job: Free (podcast MP3 from a parent video job)\n\nAuthoritative price table at /.well-known/mpp.json. Failed jobs auto-refund.\nFormats: MP3/WAV/M4A/OGG/FLAC/WebM/AAC audio; MP4/MOV/WebM/MKV/AVI video. JSON bodies throughout."
x-canonical-spec-url: https://api.weftly.ai/openapi.json
servers:
- url: https://api.weftly.ai
tags:
- name: Test
paths:
/api/test:
get:
operationId: mppSmokeTest
summary: MPP smoke test ($0.01 USDC)
description: Verifies end-to-end MPP payment flow. Charges $0.01 USDC and returns a success confirmation. Optional `echo` query is round-tripped in the response so callers can verify their own request reached the worker.
tags:
- Test
security:
- mppPaymentApiKey: []
parameters:
- schema:
type: string
maxLength: 200
description: Optional string echoed back in the response, useful for client-side smoke tests.
required: false
description: Optional string echoed back in the response, useful for client-side smoke tests.
name: echo
in: query
responses:
'200':
description: Payment verified
content:
application/json:
schema:
type: object
properties:
paid:
type: boolean
enum:
- true
service:
type: string
echo:
type: string
required:
- paid
- service
'402':
description: Payment required
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentRequired402'
x-payment-info:
intent: charge
method: tempo
amount: '0.01'
currency: USDC
description: MPP end-to-end smoke test ($0.01 USDC).
methods:
- method: tempo
amount: '0.01'
currency: USDC
intent: charge
- method: stripe
amount: '0.01'
currency: USD
intent: charge
price:
mode: fixed
amount: '0.01'
currency: USD
protocols:
- mpp:
method: tempo
intent: charge
currency: USDC
components:
schemas:
PaymentRequired402:
type: object
properties:
type:
type: string
title:
type: string
status:
type: number
enum:
- 402
detail:
type: string
challengeId:
type: string
required:
- status
securitySchemes:
apiKey:
type: apiKey
in: header
name: Authorization
description: 'Anonymous session token from POST /api/v1/sessions, sent as `Authorization: Bearer <token>`.'
mppPaymentApiKey:
type: apiKey
in: header
name: Authorization
description: 'MPP payment credential, sent as `Authorization: Payment <credential>`. Discovery at /.well-known/mpp.json. Supports Tempo crypto and Stripe SPT.'
externalDocs:
description: Canonical OpenAPI specification
url: https://api.weftly.ai/openapi.json
x-discovery:
ownershipProofs:
- dns:weftly.ai
x-service-info:
name: Weftly
description: 'Pay-per-job AI post-production: transcribe, summarize, find clips, and cut horizontal clips or 9:16 vertical clips with burned-in captions from audio and video. No account required.'
categories:
- ai
- media
provider: Woven Record Media
homepage: https://weftly.ai
paymentMethods:
- tempo
- stripe
paymentDiscovery: https://api.weftly.ai/.well-known/mpp.json