### Model API Endpoint Example Source: https://www.runflow.io/llms.txt This is the endpoint shape for calling a specific model directly from the Model API. Ensure your 'input' schema matches the model's requirements and provide an API key for authorization. ```bash POST https://api.runflow.io/v1/models/{owner}/{slug}/runs Authorization: Bearer Content-Type: application/json { "input": { ... }, "callback_url": "https://your.server/webhook", "metadata": {}, "client_ref": "..." } ``` -------------------------------- ### Model API - Direct Catalog Access Source: https://www.runflow.io/llms.txt Access any model in the catalog directly for custom workflows. This endpoint allows you to run specific models by providing their owner and slug. ```APIDOC ## POST /v1/models/{owner}/{slug}/runs ### Description This endpoint allows direct access to models in the Runflow catalog for custom workflows. You specify the model by its owner and slug. ### Method POST ### Endpoint `https://api.runflow.io/v1/models/{owner}/{slug}/runs` ### Parameters #### Path Parameters - **owner** (string) - Required - The owner of the model. - **slug** (string) - Required - The unique identifier (slug) of the model. #### Request Body - **input** (object) - Required - Model-specific input parameters. Refer to the per-model `llms.txt` or OpenAPI specification for exact schema. - **callback_url** (string) - Optional - A URL to receive webhook notifications about the run status. - **metadata** (object) - Optional - Additional metadata to include with the request. - **client_ref** (string) - Optional - A client-defined reference for the request. ### Request Example ```json { "input": { ... }, "callback_url": "https://your.server/webhook", "metadata": {}, "client_ref": "..." } ``` ### Response (Response details depend on the specific model and its output schema. Refer to per-model documentation or OpenAPI spec.) ### Authorization - **Authorization**: `Bearer ` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.