v1
protected
provider-configs

Discover Models Preview

Discover models from a provider API using the provided API key, without requiring a saved config.

Not a dry run: the discovered specs, prices included, are persisted so the caller can pick models by id. That makes it a price write.

post/v1/provider-configs/discover-preview

Request body

api_keystring nullable
endpoint_urlstring nullable
provider_keystring required

Response

Successful Response

discoveredinteger required
new_modelsinteger required

Changes