Custom Compute Groups

You can join compute groups to run compute on them. You can also create your own compute group and run compute on it. This is useful if you want to run compute on a different compute group than the default compute group "main".

Join compute groups

You can head to the compute groups page to browse and join different compute groups. By default, you are a member of the "main" compute group when you first sign up.

Create your own compute group

You can create your own compute group by heading to the compute groups page and clicking on the "New Compute Group" button. You can then invite other users to join your compute group. Once the group is created, you can run a compute node that will run compute for the group (you need to have at least one compute node running to be able to run compute on the compute group).

You can also set the compute group to be free or paid. If the compute group is free, anyone can run compute on the compute group. If the compute group is paid, only users that you invite can run compute on the compute group.

Run compute on a different compute group

You can run compute on compute groups that you are a member of. To run compute on a different compute group, you just specify the X-API-Group header with the id of the compute group you want to use. Or pass the compute group id as the argument to getInstance. If you don't specify a compute group, the default compute group "main" will be used.

Request

curl -X POST https://api.peer-ai.com/v1/pipeline \
  -H "X-API-Group: {YOUR_COMPUTE_GROUP}" \
  -H "X-API-Key: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d "{\"task\": \"sentiment-analysis\", \"inputs\": [\"I love transformers!\"]}"