{"openapi":"3.0.0","info":{"description":"AI model hosting and inference","version":[{"name":"v1","value":"v1"}]},"servers":[{"description":"AI model hosting and inference","url":"https://api.apirails.com/replicate"}],"paths":{"/v1/models/{model_owner}/{model_name}":{"get":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"The name of the model","required":true,"schema":{"type":"string","example":""}},{"name":"model_owner","in":"path","description":"The name of the user or organization that owns the model","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#models.get","api_endpoint":"https://api.replicate.com/v1/models/{model_owner}/{model_name}"},"summary":"Get a model","description":"Get a model.","security":[{"bearerAuth":[]}]},"delete":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"The name of the model","required":true,"schema":{"type":"string","example":""}},{"name":"model_owner","in":"path","description":"The name of the user or organization that owns the model","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#models.delete","api_endpoint":"https://api.replicate.com/v1/models/{model_owner}/{model_name}"},"summary":"Delete a model","description":"Delete a model.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}},"patch":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"The name of the model","required":true,"schema":{"type":"string","example":""}},{"name":"model_owner","in":"path","description":"The name of the user or organization that owns the model","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#models.update","api_endpoint":"https://api.replicate.com/v1/models/{model_owner}/{model_name}"},"summary":"Update a model","description":"Update a model.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"cover_image_url":{"type":"string","description":"A URL for the model's cover image"},"description":{"type":"string","description":"A description of the model"},"github_url":{"type":"string","description":"A URL for the model's source code on GitHub"},"license_url":{"type":"string","description":"A URL for the model's license"},"paper_url":{"type":"string","description":"A URL for the model's paper"},"visibility":{"type":"string","description":"Model visibility: public or private"}}},"example":{"cover_image_url":"","description":"","github_url":"","license_url":"","paper_url":"","visibility":""}}}}}},"/v1/collections/{collection_slug}":{"get":{"tags":["Models"],"parameters":[{"name":"collection_slug","in":"path","description":"The slug of the collection like `super-resolution` or `image-restoration`","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#collections.get","api_endpoint":"https://api.replicate.com/v1/collections/{collection_slug}"},"summary":"Get a collection of models","description":"Get a collection of models.","security":[{"bearerAuth":[]}]}},"/v1/models/{model_owner}/{model_name}/versions":{"get":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"The name of the model","required":true,"schema":{"type":"string","example":""}},{"name":"model_owner","in":"path","description":"The name of the user or organization that owns the model","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#models.versions.list","api_endpoint":"https://api.replicate.com/v1/models/{model_owner}/{model_name}/versions"},"summary":"List model versions","description":"List model versions.","security":[{"bearerAuth":[]}]}},"/v1/models/{model_owner}/{model_name}/versions/{version_id}":{"delete":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"The name of the model","required":true,"schema":{"type":"string","example":""}},{"name":"model_owner","in":"path","description":"The name of the user or organization that owns the model","required":true,"schema":{"type":"string","example":""}},{"name":"version_id","in":"path","description":"The ID of the version","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#models.versions.delete","api_endpoint":"https://api.replicate.com/v1/models/{model_owner}/{model_name}/versions/{version_id}"},"summary":"Delete a model version","description":"Delete a model version.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}},"get":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"The name of the model","required":true,"schema":{"type":"string","example":""}},{"name":"model_owner","in":"path","description":"The name of the user or organization that owns the model","required":true,"schema":{"type":"string","example":""}},{"name":"version_id","in":"path","description":"The ID of the version","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#models.versions.get","api_endpoint":"https://api.replicate.com/v1/models/{model_owner}/{model_name}/versions/{version_id}"},"summary":"Get a model version","description":"Get a model version.","security":[{"bearerAuth":[]}]}},"/v1/collections":{"get":{"tags":["Models"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#collections.list","api_endpoint":"https://api.replicate.com/v1/collections"},"summary":"List collections of models","description":"List collections of models.","security":[{"bearerAuth":[]}]}},"/v1/predictions":{"get":{"tags":["Predictions"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#predictions.list","api_endpoint":"https://api.replicate.com/v1/predictions"},"summary":"List predictions","description":"List predictions.","security":[{"bearerAuth":[]}]},"post":{"tags":["Predictions"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#predictions.create","api_endpoint":"https://api.replicate.com/v1/predictions"},"summary":"Create a prediction","description":"Create a prediction.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"input":{"type":"object","description":"The model's input as a JSON object","properties":{}},"version":{"type":"string","description":"The ID of the model version that you want to run"},"webhook":{"type":"string","description":"An HTTPS URL for receiving a webhook when the prediction has new output"},"webhook_events_filter":{"type":"array","description":"By default we will send requests to your webhook URL whenever there are new logs new outputs or the prediction has finished","items":{"type":"string"}}}},"example":{"input":{},"version":"","webhook":"","webhook_events_filter":[]}}}}}},"/v1/models/{model_owner}/{model_name}/versions/{version_id}/trainings":{"post":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"The name of the model","required":true,"schema":{"type":"string","example":""}},{"name":"model_owner","in":"path","description":"The name of the user or organization that owns the model","required":true,"schema":{"type":"string","example":""}},{"name":"version_id","in":"path","description":"The ID of the version","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#trainings.create","api_endpoint":"https://api.replicate.com/v1/models/{model_owner}/{model_name}/versions/{version_id}/trainings"},"summary":"Create a training","description":"Create a training.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"destination":{"type":"string","description":"A string representing the desired model to push to in the format `{destination_model_owner}/{destination_model_name}`"},"input":{"type":"object","description":"An object containing inputs to the Cog model's `train()` function","properties":{}},"webhook":{"type":"string","description":"An HTTPS URL for receiving a webhook when the training completes"}}},"example":{"destination":"","input":{},"webhook":""}}}}}},"/v1/predictions/{prediction_id}":{"get":{"tags":["Predictions"],"parameters":[{"name":"prediction_id","in":"path","description":"The ID of the prediction you want to get","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#predictions.get","api_endpoint":"https://api.replicate.com/v1/predictions/{prediction_id}"},"summary":"Get a prediction","description":"Get a prediction.","security":[{"bearerAuth":[]}]}},"/v1/predictions/{prediction_id}/cancel":{"post":{"tags":["Predictions"],"parameters":[{"name":"prediction_id","in":"path","description":"The ID of the prediction you want to cancel","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#predictions.cancel","api_endpoint":"https://api.replicate.com/v1/predictions/{prediction_id}/cancel"},"summary":"Cancel a prediction","description":"Cancel a prediction.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/trainings":{"get":{"tags":["Trainings"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#trainings.list","api_endpoint":"https://api.replicate.com/v1/trainings"},"summary":"List trainings","description":"List trainings.","security":[{"bearerAuth":[]}]}},"/v1/trainings/{training_id}":{"get":{"tags":["Trainings"],"parameters":[{"name":"training_id","in":"path","description":"The ID of the training you want to get","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#trainings.get","api_endpoint":"https://api.replicate.com/v1/trainings/{training_id}"},"summary":"Get a training","description":"Get a training.","security":[{"bearerAuth":[]}]}},"/v1/trainings/{training_id}/cancel":{"post":{"tags":["Trainings"],"parameters":[{"name":"training_id","in":"path","description":"The ID of the training you want to cancel","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#trainings.cancel","api_endpoint":"https://api.replicate.com/v1/trainings/{training_id}/cancel"},"summary":"Cancel a training","description":"Cancel a training.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/webhooks/default/secret":{"get":{"tags":["Webhooks"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#webhooks.default.secret.get","api_endpoint":"https://api.replicate.com/v1/webhooks/default/secret"},"summary":"Get the signing secret for the default webhook","description":"Get the signing secret for the default webhook endpoint. This is used to verify that webhook requests are coming from Replicate.","security":[{"bearerAuth":[]}]}},"/v1/models/{model_owner}/{model_name}/predictions":{"post":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"The name of the model","required":true,"schema":{"type":"string","example":""}},{"name":"model_owner","in":"path","description":"The name of the user or organization that owns the model","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#models.predictions.create","api_endpoint":"https://api.replicate.com/v1/models/{model_owner}/{model_name}/predictions"},"summary":"Create a prediction using an official model","description":"Create a prediction for the model and inputs you provide.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"input":{"type":"object","description":"The model's input as a JSON object","properties":{}},"webhook":{"type":"string","description":"An HTTPS URL for receiving a webhook when the prediction has new output"},"webhook_events_filter":{"type":"array","description":"By default we will send requests to your webhook URL whenever there are new logs new outputs or the prediction has finished","items":{"type":"string"}}}},"example":{"input":{},"webhook":"","webhook_events_filter":[]}}}}}},"/v1/models":{"post":{"tags":["Models"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http","api_endpoint":"https://api.replicate.com/v1/models"},"summary":"Create a model","description":"Create a model.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"cover_image_url":{"type":"string","description":"A URL for the model's cover image. This should be an image file."},"description":{"type":"string","description":"A description of the model."},"github_url":{"type":"string","description":"A URL for the model's source code on GitHub."},"hardware":{"type":"string","description":"Hardware SKU: The identifier for the hardware running the model. Available options can be fetched via the hardware.list endpoint.","required":true},"license_url":{"type":"string","description":"A URL for the model's license."},"name":{"type":"string","description":"The name of the model. This must be unique among all models owned by the user or organization.","required":true},"owner":{"type":"string","description":"Model Owner: The user or organization owning the model, matching the API token holder making the request.","required":true},"paper_url":{"type":"string","description":"A URL for the model's paper."},"visibility":{"type":"string","description":"Model Visibility: Determines if the model is public (accessible to all) or private (restricted to the owner and organization members).","required":true}}},"example":{"cover_image_url":"","description":"","github_url":"","hardware":"","license_url":"","name":"","owner":"","paper_url":"","visibility":""}}}}},"get":{"tags":["Models"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#models.list","api_endpoint":"https://api.replicate.com/v1/models"},"summary":"List models","description":"List models.","security":[{"bearerAuth":[]}]}},"/v1/account":{"get":{"tags":["Account"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#account.get","api_endpoint":"https://api.replicate.com/v1/account"},"summary":"Get the authenticated account","description":"Returns information about the user or organization associated with the provided API token.","security":[{"bearerAuth":[]}]}},"/v1/models/{model_owner}/{model_name}/examples":{"get":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"The name of the model","required":true,"schema":{"type":"string","example":""}},{"name":"model_owner","in":"path","description":"The name of the user or organization that owns the model","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#models.examples.get","api_endpoint":"https://api.replicate.com/v1/models/{model_owner}/{model_name}/examples"},"summary":"Get model examples","description":"Get examples for a model.","security":[{"bearerAuth":[]}]}},"/v1/models/{model_owner}/{model_name}/readme":{"get":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"The name of the model","required":true,"schema":{"type":"string","example":""}},{"name":"model_owner","in":"path","description":"The name of the user or organization that owns the model","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#models.readme.get","api_endpoint":"https://api.replicate.com/v1/models/{model_owner}/{model_name}/readme"},"summary":"Get model readme","description":"Get the README for a model.","security":[{"bearerAuth":[]}]}},"/v1/deployments":{"get":{"tags":["Deployments"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#deployments.list","api_endpoint":"https://api.replicate.com/v1/deployments"},"summary":"List deployments","description":"List deployments.","security":[{"bearerAuth":[]}]},"post":{"tags":["Deployments"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#deployments.create","api_endpoint":"https://api.replicate.com/v1/deployments"},"summary":"Create a deployment","description":"Create a deployment.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"hardware":{"type":"string","description":"The hardware SKU to run the deployment on","required":true},"model":{"type":"string","description":"The model to deploy in the format {owner}/{model_name}","required":true},"name":{"type":"string","description":"The name of the deployment","required":true},"version":{"type":"string","description":"The version ID of the model to deploy","required":true}}},"example":{"hardware":"","model":"","name":"","version":""}}}}}},"/v1/deployments/{deployment_owner}/{deployment_name}":{"get":{"tags":["Deployments"],"parameters":[{"name":"deployment_name","in":"path","description":"The name of the deployment","required":true,"schema":{"type":"string","example":""}},{"name":"deployment_owner","in":"path","description":"The name of the user or organization that owns the deployment","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#deployments.get","api_endpoint":"https://api.replicate.com/v1/deployments/{deployment_owner}/{deployment_name}"},"summary":"Get a deployment","description":"Get a deployment.","security":[{"bearerAuth":[]}]},"patch":{"tags":["Deployments"],"parameters":[{"name":"deployment_name","in":"path","description":"The name of the deployment","required":true,"schema":{"type":"string","example":""}},{"name":"deployment_owner","in":"path","description":"The name of the user or organization that owns the deployment","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#deployments.update","api_endpoint":"https://api.replicate.com/v1/deployments/{deployment_owner}/{deployment_name}"},"summary":"Update a deployment","description":"Update a deployment.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"hardware":{"type":"string","description":"The hardware SKU to run the deployment on"},"version":{"type":"string","description":"The version ID of the model to deploy"}}},"example":{"hardware":"","version":""}}}}},"delete":{"tags":["Deployments"],"parameters":[{"name":"deployment_name","in":"path","description":"The name of the deployment","required":true,"schema":{"type":"string","example":""}},{"name":"deployment_owner","in":"path","description":"The name of the user or organization that owns the deployment","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#deployments.delete","api_endpoint":"https://api.replicate.com/v1/deployments/{deployment_owner}/{deployment_name}"},"summary":"Delete a deployment","description":"Delete a deployment.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/deployments/{deployment_owner}/{deployment_name}/predictions":{"post":{"tags":["Deployments"],"parameters":[{"name":"deployment_name","in":"path","description":"The name of the deployment","required":true,"schema":{"type":"string","example":""}},{"name":"deployment_owner","in":"path","description":"The name of the user or organization that owns the deployment","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#deployments.predictions.create","api_endpoint":"https://api.replicate.com/v1/deployments/{deployment_owner}/{deployment_name}/predictions"},"summary":"Create a deployment prediction","description":"Create a prediction for the deployment and inputs you provide.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"input":{"type":"object","description":"The model's input as a JSON object","properties":{}},"webhook":{"type":"string","description":"An HTTPS URL for receiving a webhook when the prediction has new output"},"webhook_events_filter":{"type":"array","description":"By default we will send requests to your webhook URL whenever there are new logs new outputs or the prediction has finished","items":{"type":"string"}}}},"example":{"input":{},"webhook":"","webhook_events_filter":[]}}}}}},"/v1/files":{"get":{"tags":["Files"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#files.list","api_endpoint":"https://api.replicate.com/v1/files"},"summary":"List files","description":"List files.","security":[{"bearerAuth":[]}]},"post":{"tags":["Files"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#files.create","api_endpoint":"https://api.replicate.com/v1/files"},"summary":"Upload a file","description":"Upload a file.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":false,"content":{"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"file":{"type":"string","format":"binary","description":"The file to upload","required":true}}},"example":{"file":"(binary)"}}}}}},"/v1/files/{file_id}":{"get":{"tags":["Files"],"parameters":[{"name":"file_id","in":"path","description":"The ID of the file","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#files.get","api_endpoint":"https://api.replicate.com/v1/files/{file_id}"},"summary":"Get a file","description":"Get a file.","security":[{"bearerAuth":[]}]},"delete":{"tags":["Files"],"parameters":[{"name":"file_id","in":"path","description":"The ID of the file","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#files.delete","api_endpoint":"https://api.replicate.com/v1/files/{file_id}"},"summary":"Delete a file","description":"Delete a file.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/files/{file_id}/download":{"get":{"tags":["Files"],"parameters":[{"name":"file_id","in":"path","description":"The ID of the file","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#files.download","api_endpoint":"https://api.replicate.com/v1/files/{file_id}/download"},"summary":"Download a file","description":"Download a file.","security":[{"bearerAuth":[]}]}},"/v1/hardware":{"get":{"tags":["Hardware"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#hardware.list","api_endpoint":"https://api.replicate.com/v1/hardware"},"summary":"List hardware","description":"List available hardware options.","security":[{"bearerAuth":[]}]}},"/v1/search":{"get":{"tags":["Search"],"parameters":[{"name":"q","in":"query","description":"The search query","schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://replicate.com/docs/reference/http#search","api_endpoint":"https://api.replicate.com/v1/search"},"summary":"Search models","description":"Search for models.","security":[{"bearerAuth":[]}]}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"security":[{"bearerAuth":[]}]}