Use metadata-based rules to route to cheaper models for users on a free plan.
model
condition and the model you make requests withChange model to
and the downgraded modelmetadata
typevalue
you want to trigger, e.g. “free”, and the field
you want to check, e.g. “tier” or “plan”metadata
field to identify users and apply the arbitrary metadata you define to them.
To assign user metadata, simply add the user’s unique ID in your application to the Waystone request
and provide their tier in the metadata. This is sent as a JSON string in the metadata
field of the request.