GETTING STARTED

Quickstart

ONEWAY is one OpenAI- and Anthropic-compatible API for every model, with spend you can see and limit. You can send your first request in about five minutes.

01

Create an account and a project.

Sign up (when sign-ups are invite-only, request early access first), then create a project for the product you're building. Keys, usage and budgets are per project.

Sign upRequest early access
02

Add your provider key.

ONEWAY runs on your own keys for now. Owners and admins add an OpenAI, Anthropic, Google Gemini or AWS Bedrock key under Provider keys; the provider bills you directly.

03

Create an API key.

On the project page. Copy it straight away, it's shown once, and keep it in a server-side environment variable such as ONEWAY_API_KEY.

04

Send a request.

Use the OpenAI SDK you already have: change the base URL and key. Model IDs are provider/model.

import OpenAI from "openai";

const ai = new OpenAI({
  baseURL: "https://oneway-gateway.oneway-gateway.workers.dev/v1",
  apiKey: process.env.ONEWAY_API_KEY,
});

const reply = await ai.chat.completions.create({
  model: "anthropic/claude-sonnet-5-5",
  messages: [{ role: "user", content: "Summarise this inbox" }],
});

console.log(reply.choices[0].message.content);
05

See it land.

The request appears under Requests in the dashboard within seconds, with its model, tokens, cost and latency. If it fails, the error's code says why: see .