Skip to content

Quickstart

You submit a structured JSON job. Splixir checks the output and returns a signed download URL. A delivered image job costs $0.002.

  1. Create an API key

    Open Console keys and create a key starting with splx_live_. Verified accounts start with $1.00 in free credit with no expiration. Export the key as an environment variable:

    Terminal window
    export SPLIXIR_API_KEY="splx_live_..."
  2. Run your first verified image job

    Submit a job that resizes an image inside an 800 px bounding box and converts it to WebP. You can omit kind when using namespaced operations like image.resize and image.convert. Setting wait: true holds the connection for up to 25 seconds so you receive the finished file in one request.

    Terminal window
    curl -X POST https://api.splixir.com/v1/jobs \
    -H "Authorization: Bearer $SPLIXIR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "input": "https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=2400",
    "operations": [
    { "type": "image.resize", "width": 800, "height": 600, "fit": "inside" },
    { "type": "image.convert", "format": "webp", "quality": 82 }
    ],
    "output": { "format": "webp" },
    "wait": true
    }'
  3. Inspect the response

    Splixir sets state to delivered, costUsd to 0.002, and attaches the signed download URL and verificationReport:

    {
    "id": "job_...",
    "kind": "image",
    "category": "image",
    "state": "delivered",
    "costUsd": 0.002,
    "billed": true,
    "output": {
    "format": "webp",
    "downloadUrl": "https://files.splixir.com/outputs/job_....webp?exp=...&sig=..."
    },
    "verificationReport": {
    "verified": true,
    "outputProbe": {
    "width": 800,
    "height": 533,
    "format": "webp",
    "sha256": "..."
    }
    }
    }
  4. Download or chain the verified output

    Fetch output.downloadUrl with your HTTP client, use -o output.webp in the CLI, or pass { "jobId": "job_..." } into a follow-up job. Signed URLs expire at the end of your retention window, starting at 24 hours on Free through Pro or up to 30 days with retainDays.

    Next, inspect GET https://api.splixir.com/v1/capabilities, explore the Image reference, and read the interactive REST API reference.