All services

Service / llm

OpenRouter

Unified LLM API gateway for multiple AI models. Chat completions are available through an MPP session endpoint on Tempo.

Documentation

Payment protocol

x402

01
basesolana

Payment protocol

mpp session

02
tempo

Method ledger

5 callable methods

OpenAPI source
POST/chat/completions
10000 USDC

Send chat completion requests to any supported LLM model through an MPP session.

Start an MPP session against https://openrouter.mpp.tempo.xyz/v1/chat/completions, then POST JSON body. The model field determines which provider and model to use.

{
  "body": {
    "model": "string (e.g. 'openai/gpt-4', 'anthropic/claude-3-opus', 'meta-llama/llama-3-70b')",
    "messages": [
      {
        "role": "string ('system'|'user'|'assistant')",
        "content": "string"
      }
    ],
    "temperature": "number (0-2, optional)",
    "max_tokens": "number (optional)",
    "top_p": "number (optional)",
    "stream": "boolean (optional)",
    "response_format": "object (optional)",
    "tools": "array (optional, function calling)"
  }
}
POST/completions
10000 USDC

Send text completion requests.

POST JSON body. Legacy text completion API. Use /chat/completions for chat-based models.

{
  "body": {
    "model": "string",
    "prompt": "string",
    "max_tokens": "number (optional)",
    "temperature": "number (optional)"
  }
}
POST/embeddings
10000 USDC

Generate embeddings for text input.

POST JSON body. Generate vector embeddings for text. Supports OpenAI-compatible embedding models.

{
  "body": {
    "model": "string (e.g. 'openai/text-embedding-3-small')",
    "input": "string | array of strings"
  }
}
POST/messages
10000 USDC

Send messages (Anthropic-compatible).

POST JSON body. Anthropic Messages API compatible endpoint. Works like /chat/completions but uses Anthropic message format.

{
  "body": {
    "model": "string",
    "max_tokens": "number",
    "messages": [
      {
        "role": "string",
        "content": "string"
      }
    ],
    "temperature": "number (optional)",
    "stream": "boolean (optional)"
  }
}
POST/responses
10000 USDC

Send a response request (OpenAI Responses API compatible).

POST JSON body. OpenAI Responses API compatible. Send input for model response generation.

{
  "body": {
    "model": "string",
    "input": "string | array",
    "instructions": "string (optional)",
    "temperature": "number (optional)",
    "max_output_tokens": "number (optional)"
  }
}