API Reference
Models API
List allowed models with Yaha pricing
GET /v1/models
Returns models allowed for your project with Yaha rate-card pricing (OpenRouter-shaped response).
curl https://gateway.yahagateway.io/v1/models \
-H "Authorization: Bearer yaha.YOUR_KEY"Response shape
{
"object": "list",
"data": [
{
"id": "openai/gpt-4o",
"name": "gpt-4o",
"canonical_slug": "openai/gpt-4o",
"pricing": {
"prompt": "0.0000025",
"completion": "0.00001",
"request": "0"
},
"architecture": { "modality": "text" }
}
]
}Pricing strings are USD per token derived from your org/project rate card (input_price_micros_per_1k, output_price_micros_per_1k).
Unlike passthrough upstream model lists, this endpoint reflects Yaha allowlists and billing rates only.