{ "opencollection": "1.0.0", "info": { "name": "Portkey Analytics > Graphs Models API", "version": "2.0.0" }, "request": { "auth": { "type": "apikey", "key": "x-portkey-api-key", "value": "{{x-portkey-api-key}}", "placement": "header" } }, "items": [ { "info": { "name": "Models", "type": "folder" }, "items": [ { "info": { "name": "List Available Models", "type": "http" }, "http": { "method": "GET", "url": "https://api.portkey.ai/v1/models", "params": [ { "name": "ai_service", "value": "", "type": "query", "description": "Filter models by the AI service (e.g., 'openai', 'anthropic')." }, { "name": "provider", "value": "", "type": "query", "description": "Filter models by the provider." }, { "name": "limit", "value": "", "type": "query", "description": "The maximum number of models to return." }, { "name": "offset", "value": "", "type": "query", "description": "The number of models to skip before starting to collect the result set." }, { "name": "sort", "value": "", "type": "query", "description": "The field to sort the results by." }, { "name": "order", "value": "", "type": "query", "description": "The order to sort the results in." } ], "auth": { "type": "apikey", "key": "x-portkey-api-key", "value": "{{x-portkey-api-key}}", "placement": "header" } }, "docs": "Lists the currently available models that can be used through Portkey, and provides basic information about each one." }, { "info": { "name": "Retrieves a model instance, providing basic information about the model such as the owner and permissioning.", "type": "http" }, "http": { "method": "GET", "url": "https://api.portkey.ai/v1/models/:model", "params": [ { "name": "model", "value": "", "type": "path", "description": "The ID of the model to use for this request" } ], "auth": { "type": "apikey", "key": "x-portkey-api-key", "value": "{{x-portkey-api-key}}", "placement": "header" } }, "docs": "Retrieves a model instance, providing basic information about the model such as the owner and permissioning." }, { "info": { "name": "Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.portkey.ai/v1/models/:model", "params": [ { "name": "model", "value": "", "type": "path", "description": "The model to delete" } ], "auth": { "type": "apikey", "key": "x-portkey-api-key", "value": "{{x-portkey-api-key}}", "placement": "header" } }, "docs": "Delete a fine-tuned model. You must have the Owner role in your organization to delete a model." } ] } ], "bundled": true }