Moltkey

Overview

One token for six providers.

Moltkey centralizza più provider dietro un solo Bearer token. Tu gestisci crediti e token progetto nel dashboard, mentre l’API proxy inoltra la request al provider corretto, scala i crediti e restituisce una response con metadati utili come `creditsRemaining`, `creditsCharged` e `usageUnits`.

Base endpoint

POST https://moltkey-lac.vercel.app/api/proxy/[service]

Headers

Authorization: Bearer <token>
Content-Type: application/json

Billing

Flat credits per call, con tracking dei usage units in response.

Flow

Signup → credits → token → API call

1

Crea un account su Moltkey.

2

Acquista o ricarica crediti nel tuo workspace.

3

Genera un token progetto dal dashboard.

4

Chiama l’endpoint proxy del provider con Bearer token + JSON body.

5

Moltkey inoltra la richiesta, scala i crediti e restituisce la risposta normalizzata.

brave

Brave Search

Ricerca web in tempo reale via Brave Search. Ottimo per agenti che devono recuperare risultati aggiornati senza gestire API key del provider.

8 credits / call

Endpoint

POST https://moltkey-lac.vercel.app/api/proxy/brave

Required headers

Authorization: Bearer <token>
Content-Type: application/json

Credit cost

Ogni chiamata a brave costa 8 crediti.

Example request body

{
  "q": "AI agents 2026",
  "country": "IT",
  "search_lang": "it",
  "count": 5
}

Example response

{
  "data": {
    "web": {
      "results": [
        {
          "title": "Top AI agents to watch in 2026",
          "url": "https://example.com/ai-agents-2026",
          "description": "A roundup of emerging autonomous agent platforms."
        }
      ]
    }
  },
  "creditsRemaining": 2492,
  "creditsCharged": 8,
  "usageUnits": 1
}

Try it

Esegui una test call dal browser usando il tuo token Moltkey.

POST /api/proxy/brave

Response

The response will appear here.

openai

OpenAI

Accesso a endpoint OpenAI come chat/completions o responses. Moltkey inoltra il body verso l’endpoint definito da `path`.

24 credits / call

Endpoint

POST https://moltkey-lac.vercel.app/api/proxy/openai

Required headers

Authorization: Bearer <token>
Content-Type: application/json

Credit cost

Ogni chiamata a openai costa 24 crediti.

Example request body

{
  "path": "chat/completions",
  "model": "gpt-4o-mini",
  "messages": [
    {
      "role": "system",
      "content": "You are a concise assistant."
    },
    {
      "role": "user",
      "content": "Explain what Moltkey does in one sentence."
    }
  ]
}

Example response

{
  "data": {
    "id": "chatcmpl_123",
    "choices": [
      {
        "index": 0,
        "message": {
          "role": "assistant",
          "content": "Moltkey unifies multiple APIs behind one token and credit balance."
        }
      }
    ],
    "usage": {
      "prompt_tokens": 24,
      "completion_tokens": 14,
      "total_tokens": 38
    }
  },
  "creditsRemaining": 2476,
  "creditsCharged": 24,
  "usageUnits": 38
}

Try it

Esegui una test call dal browser usando il tuo token Moltkey.

POST /api/proxy/openai

Response

The response will appear here.

anthropic

Anthropic

Accesso ai modelli Claude. Passa il path dell’endpoint Anthropic e, se serve, header extra come `anthropic-version`.

24 credits / call

Endpoint

POST https://moltkey-lac.vercel.app/api/proxy/anthropic

Required headers

Authorization: Bearer <token>
Content-Type: application/json

Credit cost

Ogni chiamata a anthropic costa 24 crediti.

Example request body

{
  "path": "messages",
  "headers": {
    "anthropic-version": "2023-06-01"
  },
  "model": "claude-3-5-sonnet-latest",
  "max_tokens": 256,
  "messages": [
    {
      "role": "user",
      "content": "Write a short product intro for Moltkey."
    }
  ]
}

Example response

{
  "data": {
    "id": "msg_123",
    "type": "message",
    "role": "assistant",
    "content": [
      {
        "type": "text",
        "text": "Moltkey gives developers one API token for multiple providers."
      }
    ],
    "usage": {
      "input_tokens": 18,
      "output_tokens": 21
    }
  },
  "creditsRemaining": 2476,
  "creditsCharged": 24,
  "usageUnits": 39
}

Try it

Esegui una test call dal browser usando il tuo token Moltkey.

POST /api/proxy/anthropic

Response

The response will appear here.

resend

Resend

Invio email transazionali via Resend senza esporre la chiave del provider al tuo prodotto o agente.

10 credits / call

Endpoint

POST https://moltkey-lac.vercel.app/api/proxy/resend

Required headers

Authorization: Bearer <token>
Content-Type: application/json

Credit cost

Ogni chiamata a resend costa 10 crediti.

Example request body

{
  "path": "emails",
  "from": "Moltkey <hello@moltkey.io>",
  "to": [
    "dev@example.com"
  ],
  "subject": "Test email from Moltkey",
  "html": "<p>Hello from Moltkey.</p>"
}

Example response

{
  "data": {
    "id": "email_123"
  },
  "creditsRemaining": 2490,
  "creditsCharged": 10,
  "usageUnits": 1
}

Try it

Esegui una test call dal browser usando il tuo token Moltkey.

POST /api/proxy/resend

Response

The response will appear here.

coingecko

CoinGecko

Prezzi crypto e market data via CoinGecko. Puoi usare `path` e `query` per colpire gli endpoint pubblici supportati.

6 credits / call

Endpoint

POST https://moltkey-lac.vercel.app/api/proxy/coingecko

Required headers

Authorization: Bearer <token>
Content-Type: application/json

Credit cost

Ogni chiamata a coingecko costa 6 crediti.

Example request body

{
  "path": "simple/price",
  "method": "GET",
  "query": {
    "ids": "bitcoin,ethereum",
    "vs_currencies": "usd,eur"
  }
}

Example response

{
  "data": {
    "bitcoin": {
      "usd": 91234,
      "eur": 84210
    },
    "ethereum": {
      "usd": 4812,
      "eur": 4438
    }
  },
  "creditsRemaining": 2494,
  "creditsCharged": 6,
  "usageUnits": 1
}

Try it

Esegui una test call dal browser usando il tuo token Moltkey.

POST /api/proxy/coingecko

Response

The response will appear here.

stability

Stability AI

Generazione immagini e workload creativi via Stability AI. Usa `path` per selezionare l’endpoint upstream.

32 credits / call

Endpoint

POST https://moltkey-lac.vercel.app/api/proxy/stability

Required headers

Authorization: Bearer <token>
Content-Type: application/json

Credit cost

Ogni chiamata a stability costa 32 crediti.

Example request body

{
  "path": "v1/generation/stable-diffusion-v1-6/text-to-image",
  "text_prompts": [
    {
      "text": "A cinematic neon fox in Rome at night"
    }
  ],
  "cfg_scale": 7,
  "height": 512,
  "width": 512,
  "samples": 1,
  "steps": 30
}

Example response

{
  "data": {
    "artifacts": [
      {
        "base64": "<base64-image>",
        "finishReason": "SUCCESS",
        "seed": 123456789
      }
    ]
  },
  "creditsRemaining": 2468,
  "creditsCharged": 32,
  "usageUnits": 1
}

Try it

Esegui una test call dal browser usando il tuo token Moltkey.

POST /api/proxy/stability

Response

The response will appear here.