API QUICKSTART

Make your first
API request.

Use the HTTP client you already know. Send a file and your processing options, then use the URL in the response.

Explore the API reference
  1. Get API access

    Request access, or sign in if you already have an account.

  2. Create an API key

    Open API keys in the dashboard. Copy the key and keep it on your server.

  3. Set your environment variable
    export LATTICE_API_KEY='your_api_key'
  4. Send a file and use the result

    Save an image as photo.jpg, run an example, and use the returned url. Download links expire after one hour.

# One image. Ready for the web.
curl https://api.latticemedia.xyz/v1/process/image \
  -H "X-API-Key: $LATTICE_API_KEY" \
  -F 'file=@photo.jpg' \
  -F 'options={"format":"webp","quality":80}'
Example response · 200 OK
{
  "id": "example-file-id",
  "url": "https://your-storage.example/file.webp?…",
  "key": "example-file.webp"
}

The examples run on your server. This page does not send a request.

NEXT STEP

Connect your CMS or storage.

Use a CMS integration or connect your own storage destination.