Together AI via Spawnpay

Hosted open-source models (Llama, Qwen, DeepSeek, FLUX) — Spawnpay wraps every call with a USDC receipt and shared budget.

BYOK $0.001 / 2xx No reselling — your upstream relationship stays exactly as it is.

Why route through Spawnpay

Agentic pipelines that mix LLM + image generation under one billing layer. Open-source-model-first products that still need clean cost recovery.

Endpoint

Method
POST
Upstream path
/v1/chat/completions
Upstream auth
Authorization
Auth note
X-Provider-Key becomes "Authorization: Bearer …" upstream.
Routing fee
$0.001 USDC per upstream 2xx (4xx is free)
Provider docs

curl

curl -X POST https://spawnpay.ai/api/proxy \
  -H 'Authorization: Bearer spk_live_…' \
  -H 'X-Provider-Key: $TOGETHER_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "provider": "together",
  "path": "/v1/chat/completions",
  "method": "POST",
  "body": {
    "model": "meta-llama/Llama-3.1-70B-Instruct-Turbo",
    "messages": [
      {
        "role": "user",
        "content": "hello"
      }
    ]
  }
}'

Node (spawnpay-paywall)

import { proxy } from 'spawnpay-paywall';

const out = await proxy({
  "provider": "together",
  "path": "/v1/chat/completions",
  "method": "POST",
  "body": {
    "model": "meta-llama/Llama-3.1-70B-Instruct-Turbo",
    "messages": [
      {
        "role": "user",
        "content": "hello"
      }
    ]
  },
  "providerKey": process.env.TOGETHER_KEY
});

console.log(out.status, out.body);
console.log('charged', out.charged); // txHash + $0.001 USDC receipt

What you get back

The full upstream JSON body, the upstream status code, the upstream response headers, plus a charged field with the USDC receipt (tx hash) when the call succeeded.

▶ Try Together AI live → 60-sec quickstart All providers