Replicate's API now has an endpoint for creating models.
You can use it to automate the creation of models, including fine-tunes of SDXL and Llama 2.
Here's an example that uses cURL to create a model with a given owner, name, visibility, and hardware:
The response is a JSON object of the created model:
To see all the hardware available for your model to run, consult our endpoint for listing hardware.
To compare the price and specifications of these hardware types, check out the pricing page.
We've added this new operation to the Replicate JavaScript client:
Then:
We've added this new operation to the Replicate Python client:
Then:
We've added this new operation to the Replicate Elixir client:
Then:
Check out the HTTP API reference for more detailed documentation about this new endpoint.