Change a hosted agent's model

Switches the agent’s model in place (no redeploy). Use provider to point the agent at EmpirioLabs, Poe, or a custom OpenAI/Anthropic-compatible public HTTPS endpoint.

Authentication

AuthorizationBearer

Pass your EmpirioLabs API key as a bearer token. The Anthropic-style x-api-key header is also accepted on every endpoint.

Path parameters

instance_idstringRequired

Request

This endpoint expects an object.
providerenumRequired
Allowed values:
modelstringRequired
custom_providerobjectOptional
Required when provider is custom. The public HTTPS base URL, model, API key, and protocol of your endpoint.

Response

Model changed.