Developer API
Models
Discover AI Gateway model IDs, provider availability, RICO recipes, media workflows, and effect presets.
#Model catalogs
Use /models for AI Gateway provider models and /rico/models for media recipes, workflows, and effects.
Example
curl https://api.grik.io/api/v1/models \
-H "Authorization: Bearer GRIK_API_KEY"
# Model rows include api_type: responses, openai_compatible, or anthropic_messages.
curl "https://api.grik.io/api/v1/rico/models?type=recipe" \
-H "Authorization: Bearer GRIK_API_KEY"| Method | Endpoint | Auth | Scope | Audience | Description |
|---|---|---|---|---|---|
| GET | /models | Optional bearer | - | Developers | List AI Gateway models with provider availability, context length, pricing, capabilities, and data policy metadata. |
| GET | /rico/models | API key | rico.media or video | Developers | List RICO recipes, workflows, and effect presets. Optional type filters include recipe, workflow, and effect. |
| GET | /rico/models/:id | API key | rico.media or video | Developers | Inspect one RICO recipe, workflow, model, or effect preset by id. |
| GET | /rico/workflows | API key | rico.media or video | Developers | List media workflows available to RICO sessions and video automation. |
| GET | /rico/recipes | API key | rico.media or video | Developers | List reusable RICO recipes for generated media workflows. |
GET
/modelsList AI Gateway models with provider availability, context length, pricing, capabilities, and data policy metadata.
Auth: Optional bearerScope: -Audience: Developers
GET
/rico/modelsList RICO recipes, workflows, and effect presets. Optional type filters include recipe, workflow, and effect.
Auth: API keyScope: rico.media or videoAudience: Developers
GET
/rico/models/:idInspect one RICO recipe, workflow, model, or effect preset by id.
Auth: API keyScope: rico.media or videoAudience: Developers
GET
/rico/workflowsList media workflows available to RICO sessions and video automation.
Auth: API keyScope: rico.media or videoAudience: Developers
GET
/rico/recipesList reusable RICO recipes for generated media workflows.
Auth: API keyScope: rico.media or videoAudience: Developers
#Routing and fallbacks
Chat completions accepts a primary model, fallback models, and provider routing hints.
Example
curl -X POST https://api.grik.io/api/v1/chat/completions \
-H "Authorization: Bearer GRIK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4",
"models": ["openai/gpt-4o-mini", "minimax/minimax-m3"],
"provider": {
"order": ["openrouter", "ricochet"],
"ignore": ["experimental-provider"],
"allow_fallbacks": true,
"sort": "price"
},
"messages": [
{"role": "user", "content": "Generate a release-risk checklist."}
]
}'