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/workspaces/{workspace}/provider-configs/discover-preview

Path parameters

workspacestring required

Slug of the workspace the request acts in

Slug of the workspace the request acts in

Request body

api_keystring nullable
endpoint_urlstring nullable
provider_keystring required

Response

Successful Response

discoveredinteger required
new_modelsinteger required

Changes

Changed in 1 of the 51 revisions of this API.1