cURL
curl https://reygrid.com/api/v1/models \
-H "Authorization: Bearer $REYGRID_API_KEY"from reygrid import ReyGrid
client = ReyGrid(api_key="YOUR_API_KEY")
for model in client.list_models().models:
print(model.id, model.pricing, "available" if model.available else "upgrade needed")import { ReyGrid } from "reygrid";
const client = new ReyGrid({ apiKey: "YOUR_API_KEY" });
const { models } = await client.listModels();
const usable = models.filter((m) => m.available);{
"success": true,
"models": [
{
"id": "gpt-4o-mini-2024-07-18",
"name": "GPT-4o mini",
"provider": "OpenAI",
"pricing": 0.5,
"available": true
},
{
"id": "claude-sonnet-5-5",
"name": "Claude Sonnet 5.5",
"provider": "Anthropic",
"pricing": 1.5,
"available": false
}
]
}{
"error": "Unauthorized",
"code": "AUTH_REQUIRED"
}Account
List models
Returns every model with its price per message and whether your plan can use it.
GET
/
models
cURL
curl https://reygrid.com/api/v1/models \
-H "Authorization: Bearer $REYGRID_API_KEY"from reygrid import ReyGrid
client = ReyGrid(api_key="YOUR_API_KEY")
for model in client.list_models().models:
print(model.id, model.pricing, "available" if model.available else "upgrade needed")import { ReyGrid } from "reygrid";
const client = new ReyGrid({ apiKey: "YOUR_API_KEY" });
const { models } = await client.listModels();
const usable = models.filter((m) => m.available);{
"success": true,
"models": [
{
"id": "gpt-4o-mini-2024-07-18",
"name": "GPT-4o mini",
"provider": "OpenAI",
"pricing": 0.5,
"available": true
},
{
"id": "claude-sonnet-5-5",
"name": "Claude Sonnet 5.5",
"provider": "Anthropic",
"pricing": 1.5,
"available": false
}
]
}{
"error": "Unauthorized",
"code": "AUTH_REQUIRED"
}