SaleMate API reference

Build reliable image-to-video integrations with API-key authentication, run lifecycle endpoints, and account-level policy controls.

Base URL
https://api.salemate.app
Authentication
Authorization: Bearer or x-api-key header
Keys
Create, rotate and revoke at /developer/api
Status
Production ready

Overview

Account API keys
Request access via /api-access, then create, rotate, and revoke keys from /developer/api.
Agentic video runs
Submit image-to-video jobs using API keys and track state transitions until completion.
Run status and outputs
Use dedicated status and outputs endpoints to integrate safely with production clients.
Policy and limits aware
Requests are validated against account policy, scope permissions, rate caps, credit caps, and key status.

Authentication

Start at /api-access to request onboarding, then generate keys from your authenticated dashboard at /developer/api. Each key is shown once. Store it securely.

Send your key in either header
Authorization: Bearer sk_live_...
x-api-key: sk_live_...
Idempotency
POST /public/runs requires Idempotency-Key. Reuse the same key when retrying the same create request.
Required scopes
runs:create for create and runs:read for status/outputs. Keys can also be restricted by IP allowlist and expiry.
Base URL
https://api.salemate.app

Quick start

  1. Create run

    Create run with curl
    curl -X POST "https://api.salemate.app/v1/api/agent/image-to-video/public/runs" \
      -H "Authorization: Bearer sk_live_..." \
      -H "Idempotency-Key: run-unique-12345678" \
      -H "Content-Type: application/json" \
      -d '{
      "source_image_url": "https://cdn.example.com/product-shot.jpg",
      "quality_tier": "pro-1.5",
      "resolution": "720p",
      "duration_sec": 6,
      "style_preset_id": "product-showcase",
      "prompt_context": "Soft studio lighting with a premium reveal moment",
      "image_prompt": "Keep brand label sharp and legible"
    }'
  2. Poll run status

    Poll run status with curl
    curl -X GET "https://api.salemate.app/v1/api/agent/image-to-video/public/runs/{run_id}" \
      -H "Authorization: Bearer sk_live_..."
  3. Fetch outputs

    Fetch outputs with curl
    curl -X GET "https://api.salemate.app/v1/api/agent/image-to-video/public/runs/{run_id}/outputs" \
      -H "Authorization: Bearer sk_live_..."

Endpoint reference

POST /v1/api/agent/image-to-video/public/runs

Creates a new image-to-video run and returns a run identifier immediately.

Request JSON
{
  "source_image_url": "https://cdn.example.com/product-shot.jpg",
  "quality_tier": "pro-1.5",
  "resolution": "720p",
  "duration_sec": 6,
  "style_preset_id": "product-showcase",
  "prompt_context": "Soft studio lighting with a premium reveal moment",
  "image_prompt": "Keep brand label sharp and legible"
}

GET /v1/api/agent/image-to-video/public/runs/{run_id}

Returns run lifecycle state (queued, processing, completed, failed) and progress metadata.

GET /v1/api/agent/image-to-video/public/runs/{run_id}/outputs

Returns generated image URL, prompt text, and final video URL when artifacts are available.

Allowed values

Quality tiers
litepropro-1.5
Resolutions
480p720p1080p
Durations
5, 6, 10 seconds (6 only with product-showcase)
Style presets
product-showcasecinematiclifestylesparrowfashion-editorialunboxingugc-style
Preset rules
product-showcase needs resolution 720p, a duration of 6 or 10, and aspect_ratio 9:16 if you send one. sparrow needs quality tier pro-1.5 and model_gender.

Errors

Error responses return a stable error code, human-readable message, and a trace_id for support.

Error response
{
  "error": "limit_exceeded",
  "message": "concurrency_limit_exceeded",
  "trace_id": "7c8b77ac-..."
}

Operational notes

  • Keys can be revoked or rotated at any time in /developer/api after onboarding.
  • Requests are evaluated against account policy, run caps, per-minute throughput limits, and concurrency limits.
  • If you retry a create call, send the same Idempotency-Key to receive the same run instead of creating duplicates.
  • Daily credit caps are enforced before run creation. Hard-stop mode blocks new runs at the cap, while soft-warn mode allows overage with warning metadata.
  • Use idempotent client behaviour in your integration (persist run_id, retry reads, and avoid duplicate creates).
  • For support, include the server-provided trace_id in your ticket.

Need access?

Sign in through the API access page, then create keys from your developer account.

Open the API access portal

Continue building

Move from the reference into access, pricing, or a conversation with SaleMate.