Mercatus AI Gateway
Your agents.
One gateway.
Language, image and video models through one Mercatus API key. Bring your tools. Pay as you go.
Works with the tools you already use.
OpenAI SDK · Chat Completions
from openai import OpenAI
client = OpenAI(
base_url="https://gateway.mercatus-ai.com/v1",
api_key="YOUR_MERCATUS_KEY",
)
completion = client.chat.completions.create(
model="MODEL_ID",
messages=[{"role": "user", "content": "Hello!"}],
)
print(completion.choices[0].message.content)Add your API key and replace MODEL_ID with a model from the directory.
Setup guideBeyond pay as you go
Use it today.
Plan for next month.
For usage you can plan, buy monthly OSTR. Use it across your series’ model menu at fixed conversion rates, or trade it before expiry.
Explore OSTRChoose your month.
Each OSTR series has a delivery month and a published model menu.
Buy or sell OSTR.
Trade monthly inference on the Forward Market.
Convert when you need it.
Use the model-specific rates in your series’ menu to convert OSTR into inference.