BUILT FOR WHAT’S NEXT
Your next idea.
Connected to AI.
One API for leading AI models. More room to build what’s next.
One API. A world of models.
THE PLATFORM
Focus on building.
We’ll connect the rest.
From the models inside your product to your everyday AI tools. Choose the connection that fits your workflow.
BUILT FOR DEVELOPERS
One endpoint.
Start here.
Keep the SDKs and tools you know. Spend more time on your product.
Create an API key
Create a key in the console and select a group for your application.
Set your base URL
Configure the endpoint in a compatible SDK or client.
Choose a model. Make a request.
Use a model ID available in your group and track usage in the console.
https://api.trnapi.com/v1curl https://api.trnapi.com/v1/chat/completions \
-H "Authorization: Bearer $TRNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL_ID",
"messages": [
{"role": "user", "content": "Hello"}
]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.trnapi.com/v1",
api_key=os.environ["TRNAPI_KEY"],
)
response = client.chat.completions.create(
model="YOUR_MODEL_ID",
messages=[{"role": "user", "content": "Hello"}],
)Set TRNAPI_KEY and replace YOUR_MODEL_ID with an available model ID. These examples illustrate the integration.
API keys authenticate requests; tokens measure content processed by models. See model details for capabilities and billing. Concurrency also depends on account, group and upstream limits.
Billing details ↗