Models

Update OpenAI-compatible custom model

Updates an OpenAI-compatible custom model. Live-re-probes the target API when base_url or model_id changes, using the stored encrypted api_key. Metadata is merged (existing preserved, new overrides).

patch/v2/models/openai-like/{id}

Path parameters

idstring required

The ID of the model

The ID of the model

Request body

base_urlstring
cost_per_imagenumber double
descriptionstring
display_namestring required
has_reasoningboolean
input_costnumber double
max_tokensinteger
model_idstring
model_typestring required
output_costnumber double
regionstring required
supports_image_editboolean
supports_strict_toolboolean
supports_tool_callingboolean
supports_visionboolean
temperaturenumber double

Response

OpenAI-like model updated successfully

createdstring required
descriptionstring nullable required
display_namestring required
docs_urlstring nullable required
enabledboolean required
enabled_for_endpointsboolean required
enabled_for_playgroundboolean required
has_cpu_pricingboolean required
has_functionsboolean required
idstring required
input_costnumber double nullable required
input_currencystring required
is_activeboolean required
legacy_uuidstring
model_developerstring
model_familystring
model_idstring required
model_typestring required
output_costnumber double nullable required
output_currencystring required
ownerstring required
pricing_urlstring nullable required
providerstring required
refIdstring required
updatedstring required

Changes

Changed in 31 of the 253 revisions of this API.107785

    • added the optional property metadata/pricing/audio_input to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/pricing/audio_output to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/pricing/variants/items/audio_input to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/pricing/variants/items/audio_output to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/supports_google_realtime_api to the response with the 200 status

      response-optional-property-added

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

    • added the optional property metadata/supported_embedding_dimensions to the response with the 200 status

      response-optional-property-added

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

    • removed the optional property metadata/autorouter/models from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_creator from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_evaluations from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_median_output_tokens_per_second from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_median_time_to_first_answer_token from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_median_time_to_first_token_seconds from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_model_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_name from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_pricing from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_release_date from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/max_temperature from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/supports_service_tier from the response with the 200 status

      response-optional-property-removed

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

    • added the optional property metadata/max_temperature to the response with the 200 status

      response-optional-property-added

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

    • added the optional property metadata/supports_service_tier to the response with the 200 status

      response-optional-property-added

  • 3128fb112d66210See the full diff
    • the created response's property type/format changed from string/date-time to string/ for status 200

      response-property-type-changed

    • the updated response's property type/format changed from string/date-time to string/ for status 200

      response-property-type-changed

    • added the optional property metadata/autorouter/models to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_creator to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_evaluations to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_median_output_tokens_per_second to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_median_time_to_first_answer_token to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_median_time_to_first_token_seconds to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_model_id to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_name to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_pricing to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_release_date to the response with the 200 status

      response-optional-property-added

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

    • removed the optional property metadata/autorouter/models from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_creator from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_evaluations from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_median_output_tokens_per_second from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_median_time_to_first_answer_token from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_median_time_to_first_token_seconds from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_model_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_name from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_pricing from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_release_date from the response with the 200 status

      response-optional-property-removed

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

  • 81dd5e8c8ae5210See the full diff
    • the created response's property type/format changed from string/date-time to string/ for status 200

      response-property-type-changed

    • the updated response's property type/format changed from string/date-time to string/ for status 200

      response-property-type-changed

    • added the optional property metadata/autorouter/models to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_creator to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_evaluations to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_median_output_tokens_per_second to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_median_time_to_first_answer_token to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_median_time_to_first_token_seconds to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_model_id to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_name to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_pricing to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_release_date to the response with the 200 status

      response-optional-property-added

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

    • removed the optional property metadata/autorouter/models from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_creator from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_evaluations from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_median_output_tokens_per_second from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_median_time_to_first_answer_token from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_median_time_to_first_token_seconds from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_model_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_name from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_pricing from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/autorouter/v2/aa_release_date from the response with the 200 status

      response-optional-property-removed

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

  • 81f63764455c210See the full diff
    • the created response's property type/format changed from string/date-time to string/ for status 200

      response-property-type-changed

    • the updated response's property type/format changed from string/date-time to string/ for status 200

      response-property-type-changed

    • added the optional property metadata/autorouter/models to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_creator to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_evaluations to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_median_output_tokens_per_second to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_median_time_to_first_answer_token to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_median_time_to_first_token_seconds to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_model_id to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_name to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_pricing to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/autorouter/v2/aa_release_date to the response with the 200 status

      response-optional-property-added

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

Of the 253 revisions, 71 have no diff computed.