v1
protected
provider-configs

Discover Models Preview

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

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

Changed in 4 of the 22 revisions of this API.46

  • ce40e8663ec333See the full diff
    • response property models/items/input_cost_per_token list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property models/items/max_output_tokens list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property models/items/output_cost_per_token list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • the input_cost_per_token response's property default value 0 was removed for the status 200

      response-property-default-value-removed

    • the max_output_tokens response's property default value 4096 was removed for the status 200

      response-property-default-value-removed

    • the output_cost_per_token response's property default value 0 was removed for the status 200

      response-property-default-value-removed

    • the request property api_key became optional

      request-property-became-optional

    • request property api_key list-of-types was widened by adding types null to media type application/json

      request-property-list-of-types-widened

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 133 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog