{ "opencollection": "1.0.0", "info": { "name": "Replicate Accounts Version API", "version": "1.0.0-a1" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Version", "type": "folder" }, "items": [ { "info": { "name": "Get a Model Version", "type": "http" }, "http": { "method": "GET", "url": "https://api.replicate.com/v1/models/:model_owner/:model_name/versions/:version_id", "params": [ { "name": "model_owner", "value": "", "type": "path", "description": "The name of the user or organization that owns the model.\n" }, { "name": "model_name", "value": "", "type": "path", "description": "The name of the model.\n" }, { "name": "version_id", "value": "", "type": "path", "description": "The ID of the version.\n" } ] }, "docs": "Example cURL request:\n\n```console\ncurl -s \\\n -H \"Authorization: Bearer $REPLICATE_API_TOKEN\" \\\n https://api.replicate.com/v1/models/replicate/hello-world/versions/5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa\n```\n\nThe response will be the version object:\n\n```json\n{\n \"id\": \"5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa\",\n \"created_at\": \"2022-04-26T19:29:04.418669Z\",\n \"cog_version\": \"0.3.0\",\n \"openapi_schema\": {...}\n}\n```\n\nEvery model describes its input" }, { "info": { "name": "Delete a Model Version", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.replicate.com/v1/models/:model_owner/:model_name/versions/:version_id", "params": [ { "name": "model_owner", "value": "", "type": "path", "description": "The name of the user or organization that owns the model.\n" }, { "name": "model_name", "value": "", "type": "path", "description": "The name of the model.\n" }, { "name": "version_id", "value": "", "type": "path", "description": "The ID of the version.\n" } ] }, "docs": "Delete a model version and all associated predictions, including all output files.\n\nModel version deletion has some restrictions:\n\n- You can only delete versions from models you own.\n- You can only delete versions from private models.\n- You cannot delete a version if someone other than you has run predictions with it.\n- You cannot delete a version if it is being used as the base model for a fine tune/training.\n- You cannot delete a version if it has an associated deployment.\n- You cannot delete " }, { "info": { "name": "Create a Training", "type": "http" }, "http": { "method": "POST", "url": "https://api.replicate.com/v1/models/:model_owner/:model_name/versions/:version_id/trainings", "params": [ { "name": "model_owner", "value": "", "type": "path", "description": "The name of the user or organization that owns the model.\n" }, { "name": "model_name", "value": "", "type": "path", "description": "The name of the model.\n" }, { "name": "version_id", "value": "", "type": "path", "description": "The ID of the version.\n" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Start a new training of the model version you specify.\n\nExample request body:\n\n```json\n{\n \"destination\": \"{new_owner}/{new_name}\",\n \"input\": {\n \"train_data\": \"https://example.com/my-input-images.zip\",\n },\n \"webhook\": \"https://example.com/my-webhook\",\n}\n```\n\nExample cURL request:\n\n```console\ncurl -s -X POST \\\n -d '{\"destination\": \"{new_owner}/{new_name}\", \"input\": {\"input_images\": \"https://example.com/my-input-images.zip\"}}' \\\n -H \"Authorization: Bearer $REPLICATE_API_TOKEN\" \\\n -H 'Cont" } ] } ], "bundled": true }