Skip to content
AmpClip REST API v1

Build with AmpClip.

Generate posts from your active song formats, poll render status, and connect AmpClip directly into your label or release automation tools.

Authentication and limits

Base URL: https://ampclip.io/api/v1

Authorization: Bearer st_…

Create a key in Settings → API keys. Keep it on your server; never put it in a public browser bundle.

The current limiter allows 20 requests per 60 seconds per key across the service. At most three slideshows can generate at once per studio. Legacy plans use one slideshow credit per generation. AI-credit workspaces use versioned quotes and operation-specific prices; these units are never combined.

Check your studio

GET/api/v1/account

Returns workspace_id, name, subscription_tier, credits and next_reset_date. The historical credits field retains slideshow units. Enabled AI-credit workspaces additionally receive billing_version, plan_name, limits and ai_credits (available, monthly, purchased, pending, tariff_version and unit).

curl https://ampclip.io/api/v1/account \
  -H "Authorization: Bearer $AMPCLIP_API_KEY"

Generate a slideshow

POST/api/v1/slideshows/generate

Use concept_id for an active song format. Find the ID in its studio URL. An optional track_id must match that format’s song. IDs are 32-character hexadecimal strings.

Optional fields: post_direction (1–1,000 characters), hook (an exact opening, 1–180 characters), language (up to 8 characters), aspect_ratio (9:16, 4:5 or 1:1), and presentation (auto, collection, visual or short_text).

Send an optional Idempotency-Key header to recover the same accepted draft after an interrupted response. Use the same key and inputs for exact retries. Unknown fields are rejected. Approved recurring templates and the recurring_format_id, format_id, archetype, song_photo_recipe and additional_context contracts are retired.

Returns HTTP 202 with slideshow_id and status: "processing". This creates an inbox draft with a frozen song/reference snapshot. Review and approve it for delivery; select the sound and publish in TikTok.

curl https://ampclip.io/api/v1/slideshows/generate \
  -H "Authorization: Bearer $AMPCLIP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"concept_id":"YOUR_SONG_FORMAT_ID","post_direction":"A new take on leaving your hometown"}'

Quote AI-credit generation

POST/api/v1/generation/quotes

Available when AI-credit billing is enabled. For a slideshow send kind: slideshow, track_id, concept_id and a stable request_key. For a quote or lyric clip send kind: theme, page_id, track_id, request_key and the supported theme input. For a song analysis send kind: analysis, track_id and request_key. A quote does not dispatch a model call or reserve credits. The response includes quote_id, tariff_version, line_items, total_credits, expires_at, review_url and idempotency_key. Quotes expire after ten minutes. Photo budgets can be reviewed in the studio; unknown requests retain their original reservations. Standalone rewrites and unsupported motion configurations are disabled.

Execute a reviewed quote

POST/api/v1/generation/execute

Send only quote_id and the saved idempotency_key from the quote response. Execution reads the server-frozen inputs, checks studio ownership, and reserves available grants atomically. Repeat the exact request to resume the same saved work; never invent a replacement key for an uncertain provider request. Returns a creative_id and studio href for posts or analysis, or a reservation_id for supported moving footage. GET /generation/execute?reservation_id=... returns the owned reservation status, reserved_credits, charged_credits and reconciliation_required. Existing already-started work keeps its historical tariff and receipts.

Read the result

GET/api/v1/slideshows/{id}/status

Returns slideshow_id, status, video_status, hook, caption, hashtags, slideshow_images, video_url, archetype, format_id, error and created_at.

Status may be draft, generating, rendering, awaiting_photos, recovering, completed or failed. The ready and ready_revision_id fields describe the current export. Check ready before using slideshow_images or video_url.

Handle errors

Errors use { "error": "A readable explanation", "code": "ERROR_CODE" }.

401 UNAUTHORIZED: check your key.

402 INSUFFICIENT_CREDITS: check Billing.

404 NOT_FOUND: check the ID and studio.

422 VALIDATION_ERROR: fix the fields described in error.

429 RATE_LIMITED: wait for the Retry-After response header.

429 CONCURRENT_LIMIT: wait for an in-progress slideshow to finish.

Other generation validation errors include a readable explanation; check error before retrying. Avoid blindly retrying a generation POST, because another successful request would use another credit.