x402 API

POST /chat/completions

OpenAI-compatible agent chat via top OpenRouter models. Pay with USDC via HTTP 402. Syra machine money for agents.

Try in marketplace Install SDK
POST /chat/completions x402

Price: $0.004 USD per successful paid call (catalog hint; runtime 402 is authoritative)

Base URL: https://api.syraa.fun

Overview

OpenAI-compatible POST /chat/completions backed by 15 curated agentic OpenRouter text models. Use when an agent needs LLM reasoning, tool calling (tools/tool_choice), or structured output (response_format) with x402 pay-per-call. Inputs: messages (required), optional model, max_tokens, temperature, tools, response_format, seed. Price is dynamic per request from live token rates (prompt + max completion budget) with margin — GET /chat/completions/models for allowlist and rates. Returns standard O

This is a pay-per-call route: unpaid requests return HTTP 402 until you settle USDC and retry with PAYMENT-SIGNATURE or X-PAYMENT. See x402 wire format.

Call with the SDK

import { createSyraPaidClient } from "@syra-ai/sdk";

const client = createSyraPaidClient({
  // funds USDC on Solana/Base; auto-pays HTTP 402
});

const res = await client.fetch("https://api.syraa.fun/chat/completions", {
  method: "POST",
});
console.log(await res.json());

Discover

Other paid APIs

Try in marketplace Open agent chat