v1
chat

Create Chat Completion

Create a chat completion.

Generates a model response for the given conversation and configuration. Supports OpenAI-compatible parameters and provider-specific extensions.

Headers:

  • Authorization: bearer key for the calling account.
  • Optional BYOK or provider headers if applicable.

Behavior:

  • If multiple models are supplied, the first one is used, and the agent may hand off to another model.
  • Tools may be invoked on the server or signaled for the client to run.
  • Streaming responses emit incremental deltas; non-streaming returns a single object.
  • Usage metrics are computed when available and returned in the response.

Responses:

  • 200 OK: JSON completion object with choices, message content, and usage.
  • 400 Bad Request: validation error.
  • 401 Unauthorized: authentication failed.
  • 402 Payment Required or 429 Too Many Requests: quota, balance, or rate limit issue.
  • 500 Internal Server Error: unexpected failure.

Billing:

  • Token usage metered by the selected model(s).
  • Tool calls and MCP sessions may be billed separately.
  • Streaming is settled after the stream ends via an async task.

Example (non-streaming HTTP): POST /v1/chat/completions Content-Type: application/json Authorization: Bearer <key>

{ "model": "provider/model-name", "messages": [{"role": "user", "content": "Hello"}] }

200 OK { "id": "cmpl_123", "object": "chat.completion", "choices": [ {"index": 0, "message": {"role": "assistant", "content": "Hi there!"}, "finish_reason": "stop"} ], "usage": {"prompt_tokens": 3, "completion_tokens": 4, "total_tokens": 7} }

Example (streaming over SSE): POST /v1/chat/completions Accept: text/event-stream

data: {"id":"cmpl_123","choices":[{"index":0,"delta":{"content":"Hi"}}]} data: {"id":"cmpl_123","choices":[{"index":0,"delta":{"content":" there!"}}]} data: [DONE]

post/v1/chat/completions

Request body

audioobject nullable

Parameters for audio output. Required when audio output is requested with `mo...

frequency_penaltynumber nullable

Number between -2.0 and 2.0. Positive values penalize new tokens based on the...

function_callstring nullable

Deprecated in favor of tool_choice. Controls which (if any) function is ca...

logit_biasobject nullable

Modify the likelihood of specified tokens appearing in the completion. Accep...

logprobsboolean nullable

Whether to return log probabilities of the output tokens or not. If true, ret...

max_completion_tokensinteger nullable

Maximum tokens in completion (newer parameter name)

max_tokensinteger nullable

Maximum tokens in completion

metadataobject nullable

Set of 16 key-value pairs that can be attached to an object. This can be usef...

modalitiesstring[] nullable

Output types that you would like the model to generate. Most models are capab...

ninteger nullable

How many chat completion choices to generate for each input message. Note tha...

parallel_tool_callsboolean nullable

Whether to enable parallel tool calls (Anthropic uses inverted polarity)

presence_penaltynumber nullable

Number between -2.0 and 2.0. Positive values penalize new tokens based on whe...

prompt_cache_keystring nullable

Used by OpenAI to cache responses for similar requests to optimize your cache...

prompt_cache_retentionstring nullable

The retention policy for the prompt cache. Set to 24h to enable extended pr...

reasoning_effortstring nullable

Constrains effort on reasoning for [reasoning models](https://platform.openai...

safety_identifierstring nullable

A stable identifier used to help detect users of your application that may be...

seedinteger nullable

Random seed for deterministic output

service_tierstring nullable

Service tier for request processing

storeboolean nullable

Whether or not to store the output of this chat completion request for use in...

streamboolean nullable

Enable streaming response

stream_optionsobject nullable

Options for streaming response. Only set this when you set stream: true.

temperaturenumber nullable

Sampling temperature (0-2 for most providers)

top_kinteger nullable

Top-k sampling parameter

top_logprobsinteger nullable

An integer between 0 and 20 specifying the number of most likely tokens to re...

top_pnumber nullable

Nucleus sampling threshold

userstring nullable

This field is being replaced by safety_identifier and prompt_cache_key. U...

verbositystring nullable

Constrains the verbosity of the model's response. Lower values will result in...

web_search_optionsobject nullable

This tool searches the web for relevant results to use in a response. Learn m...

cachedContentstring nullable

Optional. The name of the content [cached](https://ai.google.dev/gemini-api/d...

deferredboolean nullable

If set to true, the request returns a request_id. You can then get the de...

generation_configobject nullable

Generation parameters wrapper (Google-specific)

prompt_modeobject nullable

Allows toggling between the reasoning mode and no system prompt. When set to ...

safe_promptboolean nullable

Whether to inject a safety prompt before all conversations.

search_parametersobject nullable

Set the parameters to be used for searched data. If not set, no data will be ...

stop_sequencesstring[] nullable

Custom text sequences that will cause the model to stop generating. Our mode...

tool_configobject nullable

Tool calling configuration (Google-specific)

guardrailsobject[] nullable

Content filtering and safety policy configuration.

handoff_configobject nullable

Configuration for multi-model handoffs.

model_attributesobject nullable

Model attributes for routing. Maps model IDs to attribute dictionaries with values in [0.0, 1.0].

agent_attributesobject nullable

Agent attributes. Values in [0.0, 1.0].

max_turnsinteger nullable

Maximum conversation turns.

automatic_tool_executionboolean

Execute tools server-side. If false, returns raw tool calls for manual handling.

Example request

{
  "model_attributes": {
    "gpt-5": {
      "accuracy": 0.95,
      "speed": 0.6
    }
  },
  "agent_attributes": {
    "accuracy": 0.9,
    "complexity": 0.8
  },
  "max_turns": 5
}

Response

JSON or SSE stream of ChatCompletionChunk events

idstring required

A unique identifier for the chat completion.

createdinteger required

The Unix timestamp (in seconds) of when the chat completion was created.

modelstring required

The model used for the chat completion.

service_tier'auto' | 'default' | 'flex' | 'scale' | 'priority' nullable

Specifies the processing type used for serving the request.

  • If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
  • If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
  • If set to 'flex' or 'priority', then the request will be processed with the corresponding service tier.
  • When not set, the default behavior is 'auto'.

When the service_tier parameter is set, the response body will include the service_tier value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.

system_fingerprintstring

This fingerprint represents the backend configuration that the model runs with.

Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.

object'chat.completion' required

The object type, which is always chat.completion.

tools_executedstring[] nullable

List of tool names that were executed server-side (e.g., MCP tools). Only present when tools were executed on the server rather than returned for client-side execution.

mcp_server_errorsobject nullable

Information about MCP server failures, if any occurred during the request. Contains details about which servers failed and why, along with recommendations for the user. Only present when MCP server failures occurred.

Example response

{
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "message": {
        "content": "The next Warriors game is tomorrow at 7:30 PM.",
        "role": "assistant"
      }
    }
  ],
  "created": 1677652288,
  "id": "chatcmpl-123",
  "model": "gpt-4o-mini",
  "object": "chat.completion",
  "tools_executed": [
    "search_events",
    "get_event_details"
  ],
  "usage": {
    "completion_tokens": 12,
    "prompt_tokens": 9,
    "total_tokens": 21
  }
}

Changes

Changed in 19 of the 39 revisions of this API.8876180

  • 81ffcde15f4c42720See the full diff
    • removed ResponseFormatJsonSchemaSchema subschema #2 from the response_format/anyOf[subschema #1]/oneOf[subschema #2: ResponseFormatJsonSchema]/json_schema/schema request property anyOf list

      request-property-any-of-removed

    • removed subschema #1: Responsemodalities from the modalities request property anyOf list

      request-property-any-of-removed

    • removed subschema #2: Stopconfiguration from the stop request property anyOf list

      request-property-any-of-removed

    • the request property prediction/anyOf[subschema #1]/oneOf[subschema #1: PredictionContent]/type became required

      request-property-became-required

    • the request property response_format/anyOf[subschema #1]/oneOf[subschema #1: ResponseFormatText]/type became required

      request-property-became-required

    • the request property response_format/anyOf[subschema #1]/oneOf[subschema #2: ResponseFormatJsonSchema]/type became required

      request-property-became-required

    • the request property response_format/anyOf[subschema #1]/oneOf[subschema #3: ResponseFormatJsonObject]/type became required

      request-property-became-required

    • the request property thinking/anyOf[subschema #1]/oneOf[subschema #1: ThinkingConfigEnabled]/type became required

      request-property-became-required

    • the request property thinking/anyOf[subschema #1]/oneOf[subschema #2: ThinkingConfigDisabled]/type became required

      request-property-became-required

    • the request property tool_choice/anyOf[subschema #1]/oneOf[subschema #1: ToolChoiceAuto]/type became required

      request-property-became-required

    • the request property tool_choice/anyOf[subschema #1]/oneOf[subschema #2: ToolChoiceAny]/type became required

      request-property-became-required

    • the request property tool_choice/anyOf[subschema #1]/oneOf[subschema #3: ToolChoiceTool]/type became required

      request-property-became-required

    • the request property tool_choice/anyOf[subschema #1]/oneOf[subschema #4: ToolChoiceNone]/type became required

      request-property-became-required

    • removed the enum value 24h of the request property prompt_cache_retention/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value auto of the request property function_call/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value auto of the request property service_tier/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value default of the request property service_tier/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value flex of the request property service_tier/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value high of the request property reasoning_effort/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value high of the request property verbosity/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value in-memory of the request property prompt_cache_retention/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value low of the request property reasoning_effort/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value low of the request property verbosity/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value medium of the request property reasoning_effort/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value medium of the request property verbosity/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value minimal of the request property reasoning_effort/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value none of the request property function_call/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value none of the request property reasoning_effort/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value priority of the request property service_tier/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value scale of the request property service_tier/anyOf[subschema #1]/

      request-property-enum-value-removed

    • removed the enum value standard_only of the request property service_tier/anyOf[subschema #1]/

      request-property-enum-value-removed

    • request property messages list-of-types was narrowed by removing types string from media type application/json

      request-property-list-of-types-narrowed

    • request property prediction/anyOf[subschema #1]/oneOf[subschema #1: PredictionContent]/content list-of-types was narrowed by removing types object from media type application/json

      request-property-list-of-types-narrowed

    • request property response_format/anyOf[subschema #1]/oneOf[subschema #2: ResponseFormatJsonSchema]/json_schema/description list-of-types was narrowed by removing types null from media type application/json

      request-property-list-of-types-narrowed

    • request property response_format/anyOf[subschema #1]/oneOf[subschema #2: ResponseFormatJsonSchema]/json_schema/strict list-of-types was narrowed by removing types object from media type application/json

      request-property-list-of-types-narrowed

    • request property tool_choice/anyOf[subschema #1]/oneOf[subschema #1: ToolChoiceAuto]/disable_parallel_tool_use list-of-types was narrowed by removing types null from media type application/json

      request-property-list-of-types-narrowed

    • request property tool_choice/anyOf[subschema #1]/oneOf[subschema #2: ToolChoiceAny]/disable_parallel_tool_use list-of-types was narrowed by removing types null from media type application/json

      request-property-list-of-types-narrowed

    • request property tool_choice/anyOf[subschema #1]/oneOf[subschema #3: ToolChoiceTool]/disable_parallel_tool_use list-of-types was narrowed by removing types null from media type application/json

      request-property-list-of-types-narrowed

    • the response_format/anyOf[subschema #1]/oneOf[subschema #2: ResponseFormatJsonSchema]/json_schema/schema request property type/format changed from / to object/

      request-property-type-changed

    • the response_format/anyOf[subschema #1]/oneOf[subschema #2: ResponseFormatJsonSchema]/json_schema/strict/anyOf[subschema #1]/ request property type/format changed from object/ to boolean/

      request-property-type-changed

    • the tools/anyOf[subschema #1]/items/ request property type/format changed from object/ to /

      request-property-type-changed

    • added ChatCompletionMessageCustomToolCall to the choices/items/message/tool_calls/items/ response property oneOf list for the response status 200 (media type: application/json)

      response-property-one-of-added

    • the thinking/anyOf[subschema #1]/oneOf[subschema #1: ThinkingConfigEnabled]/budget_tokens request property's min was set to 1024.00

      request-property-min-set

    • removed the request property auto_execute_tools

      request-property-removed

    • removed the request property disable_automatic_function_calling

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/disable_automatic_function_calling

      request-property-removed

    • removed the request property model/anyOf[subschema #2]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/disable_automatic_function_calling

      request-property-removed

    • removed the request property tools/anyOf[subschema #1]/items/function

      request-property-removed

    • removed the request property tools/anyOf[subschema #1]/items/type

      request-property-removed

    • added the new optional request property automatic_tool_execution

      new-optional-request-property

    • added the new optional request property stop_sequences

      new-optional-request-property

    • added subschema #1 to the modalities request property anyOf list

      request-property-any-of-added

    • added subschema #1 to the stop request property anyOf list

      request-property-any-of-added

    • the type request property default value any was removed

      request-property-default-value-removed

    • the type request property default value auto was removed

      request-property-default-value-removed

    • the type request property default value content was removed

      request-property-default-value-removed

    • the type request property default value disabled was removed

      request-property-default-value-removed

    • the type request property default value enabled was removed

      request-property-default-value-removed

    • the type request property default value json_object was removed

      request-property-default-value-removed

    • the type request property default value json_schema was removed

      request-property-default-value-removed

    • the type request property default value none was removed

      request-property-default-value-removed

    • the type request property default value text was removed

      request-property-default-value-removed

    • the type request property default value tool was removed

      request-property-default-value-removed

    • added discriminator to tools/anyOf[subschema #1]/items/ request property

      request-property-discriminator-added

    • added ChatCompletionTool CustomToolChatCompletions to the tools/anyOf[subschema #1]/items/ request property oneOf list

      request-property-one-of-added

    • added Audio-Output to the choices/items/message/audio response property anyOf list for the response status 200 (media type: application/json)

      response-property-any-of-added

    • removed Audio from the choices/items/message/audio response property anyOf list for the response status 200 (media type: application/json)

      response-property-any-of-removed

    • mapped value for discriminator key custom changed from ChatCompletionMessageCustomToolCall-Output to ChatCompletionMessageCustomToolCall for choices/items/message/tool_calls/items/ response property for the response status 200 (media type: application/json)

      response-property-discriminator-mapping-changed

    • removed ChatCompletionMessageCustomToolCall-Output from the choices/items/message/tool_calls/items/ response property oneOf list for the response status 200 (media type: application/json)

      response-property-one-of-removed

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

  • ebf92e9f188716545See the full diff
    • added the new required request property functions/anyOf[subschema #1]/items/name

      new-required-request-property

    • added the new required request property safety_settings/anyOf[subschema #1]/items/category

      new-required-request-property

    • added the new required request property safety_settings/anyOf[subschema #1]/items/threshold

      new-required-request-property

    • added the new required request property tools/anyOf[subschema #1]/items/function

      new-required-request-property

    • added the new required request property tools/anyOf[subschema #1]/items/type

      new-required-request-property

    • removed Models from the model request property anyOf list

      request-property-any-of-removed

    • removed ResponseFormatText ResponseFormatJsonObject ResponseFormatJsonSchema from the response_format request property anyOf list

      request-property-any-of-removed

    • removed subschema #1 from the messages request property anyOf list

      request-property-any-of-removed

    • removed subschema #1 from the modalities request property anyOf list

      request-property-any-of-removed

    • removed subschema #1 subschema #2 from the tool_choice request property anyOf list

      request-property-any-of-removed

    • request property disable_automatic_function_calling list-of-types was narrowed by removing types null from media type application/json

      request-property-list-of-types-narrowed

    • request property function_call list-of-types was narrowed by removing types object from media type application/json

      request-property-list-of-types-narrowed

    • the temperature/anyOf[subschema #1]/ request property's max was decreased to 1.00

      request-property-max-decreased

    • the top_logprobs/anyOf[subschema #1]/ request property's max was decreased to 8.00

      request-property-max-decreased

    • the prediction/anyOf[subschema #1]/ request property type/format changed from object/ to /

      request-property-type-changed

    • added ChatCompletionMessageToolCall-Output ChatCompletionMessageCustomToolCall-Output to the choices/items/message/tool_calls/items/ response property oneOf list for the response status 200

      response-property-one-of-added

    • the seed/anyOf[subschema #1]/ request property's max was set to 9223372036854775808.00

      request-property-max-set

    • the seed/anyOf[subschema #1]/ request property's min was set to 0.00

      request-property-min-set

    • removed the request property input

      request-property-removed

    • removed the request property instructions

      request-property-removed

    • removed the request property system

      request-property-removed

    • added the new optional request property cachedContent

      new-optional-request-property

    • added the new optional request property functions/anyOf[subschema #1]/items/description

      new-optional-request-property

    • added the new optional request property functions/anyOf[subschema #1]/items/parameters

      new-optional-request-property

    • added the new optional request property prompt_cache_retention

      new-optional-request-property

    • added the new optional request property prompt_mode

      new-optional-request-property

    • added the new optional request property safe_prompt

      new-optional-request-property

    • added the new optional request property system_instruction

      new-optional-request-property

    • added subschema #1 to the response_format request property anyOf list

      request-property-any-of-added

    • added subschema #1 to the tool_choice request property anyOf list

      request-property-any-of-added

    • added subschema #1: Messages to the messages request property anyOf list

      request-property-any-of-added

    • added subschema #1: Responsemodalities to the modalities request property anyOf list

      request-property-any-of-added

    • added subschema #2 to the model request property anyOf list

      request-property-any-of-added

    • the request property thinking/anyOf[subschema #1]/oneOf[subschema #1: ThinkingConfigDisabled -> subschema #2: ThinkingConfigDisabled]/type became optional

      request-property-became-optional

    • the request property thinking/anyOf[subschema #1]/oneOf[subschema #2: ThinkingConfigEnabled -> subschema #1: ThinkingConfigEnabled]/type became optional

      request-property-became-optional

    • the deferred request property default value false was added

      request-property-default-value-added

    • the disable_automatic_function_calling request property default value true was added

      request-property-default-value-added

    • the frequency_penalty request property default value 0 was added

      request-property-default-value-added

    • the logprobs request property default value false was added

      request-property-default-value-added

    • the n request property default value 1 was added

      request-property-default-value-added

    • the parallel_tool_calls request property default value true was added

      request-property-default-value-added

    • the presence_penalty request property default value 0 was added

      request-property-default-value-added

    • the reasoning_effort request property default value medium was added

      request-property-default-value-added

    • the service_tier request property default value auto was added

      request-property-default-value-added

    • the stop request property default value <|endoftext|> was added

      request-property-default-value-added

    • the store request property default value false was added

      request-property-default-value-added

    • the temperature request property default value 1 was added

      request-property-default-value-added

    • the tool_choice request property default value auto was added

      request-property-default-value-added

    • the top_p request property default value 1 was added

      request-property-default-value-added

    • the type request property default value disabled was added

      request-property-default-value-added

    • the type request property default value enabled was added

      request-property-default-value-added

    • the verbosity request property default value medium was added

      request-property-default-value-added

    • added discriminator to prediction/anyOf[subschema #1]/ request property

      request-property-discriminator-added

    • added the new flex enum value to the request property service_tier/anyOf[subschema #1]/

      request-property-enum-value-added

    • added the new minimal enum value to the request property reasoning_effort/anyOf[subschema #1]/

      request-property-enum-value-added

    • added the new none enum value to the request property reasoning_effort/anyOf[subschema #1]/

      request-property-enum-value-added

    • added the new priority enum value to the request property service_tier/anyOf[subschema #1]/

      request-property-enum-value-added

    • added the new scale enum value to the request property service_tier/anyOf[subschema #1]/

      request-property-enum-value-added

    • added the new standard_only enum value to the request property service_tier/anyOf[subschema #1]/

      request-property-enum-value-added

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

      request-property-list-of-types-widened

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

      request-property-list-of-types-widened

    • added PredictionContent to the prediction/anyOf[subschema #1]/ request property oneOf list

      request-property-one-of-added

    • mapped value for discriminator key custom changed from ChatCompletionMessageCustomToolCall to ChatCompletionMessageCustomToolCall-Output for choices/items/message/tool_calls/items/ response property for the response status 200

      response-property-discriminator-mapping-changed

    • mapped value for discriminator key function changed from ChatCompletionMessageToolCall to ChatCompletionMessageToolCall-Output for choices/items/message/tool_calls/items/ response property for the response status 200

      response-property-discriminator-mapping-changed

    • response property choices/items/message/content list-of-types was narrowed by removing types array from media type application/json of response 200

      response-property-list-of-types-narrowed

    • removed ChatCompletionMessageToolCall ChatCompletionMessageCustomToolCall from the choices/items/message/tool_calls/items/ response property oneOf list for the response status 200

      response-property-one-of-removed

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

  • 5ea14da15b0111See the full diff
    • removed ResponseFormatJSONObject ResponseFormatJSONSchema from the response_format request property anyOf list

      request-property-any-of-removed

    • added ResponseFormatJsonObject ResponseFormatJsonSchema to the response_format request property anyOf list

      request-property-any-of-added

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

  • d29ad65af3ff11See the full diff
    • removed subschema #1 from the response_format request property anyOf list

      request-property-any-of-removed

    • added ResponseFormatText ResponseFormatJSONObject ResponseFormatJSONSchema to the response_format request property anyOf list

      request-property-any-of-added

    • response property choices/items/message/content list-of-types was widened by adding types array to media type application/json of response 200

      response-property-list-of-types-widened

    • the request property messages became optional

      request-property-became-optional

    • added the new web_search_call.action.sources enum value to the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/response_include/anyOf[subschema #1]/items/

      request-property-enum-value-added

    • added the new web_search_call.action.sources enum value to the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/response_include/anyOf[subschema #1]/items/

      request-property-enum-value-added

    • added the new web_search_call.results enum value to the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/response_include/anyOf[subschema #1]/items/

      request-property-enum-value-added

    • added the new web_search_call.results enum value to the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/response_include/anyOf[subschema #1]/items/

      request-property-enum-value-added

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

      request-property-list-of-types-widened

  • d22d228c90a1437See the full diff
    • removed MCPServers MCPServerChoice from the mcp_servers request property anyOf list

      request-property-any-of-removed

    • the object response property const value changed from chat.completion.chunk to chat.completion for the status 200 (media type: application/json)

      response-property-const-changed

    • the usage response's property type/format changed from / to object/ for status 200 (media type: application/json)

      response-property-type-changed

    • removed the required property choices/items/delta from the response with the 200 status (media type: application/json)

      response-required-property-removed

    • added the new optional request property deferred

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/deferred

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/search_parameters

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/deferred

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/search_parameters

      new-optional-request-property

    • added the new optional request property search_parameters

      new-optional-request-property

    • added subschema #1 subschema #2 to the mcp_servers request property anyOf list

      request-property-any-of-added

    • added subschema #3 to the model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/tool_choice/anyOf[ToolChoice]/ request property anyOf list

      request-property-any-of-added

    • added subschema #3 to the model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/tool_choice/anyOf[ToolChoice]/ request property anyOf list

      request-property-any-of-added

    • added the optional property mcp_server_errors to the response with the 200 status (media type: application/json)

      response-optional-property-added

    • added the optional property tools_executed to the response with the 200 status (media type: application/json)

      response-optional-property-added

    • added the optional property usage/anyOf[subschema #1: CompletionUsage]/completion_tokens_details/accepted_prediction_tokens to the response with the 200 status (media type: text/event-stream)

      response-optional-property-added

    • added the optional property usage/anyOf[subschema #1: CompletionUsage]/completion_tokens_details/audio_tokens to the response with the 200 status (media type: text/event-stream)

      response-optional-property-added

    • added the optional property usage/anyOf[subschema #1: CompletionUsage]/completion_tokens_details/reasoning_tokens to the response with the 200 status (media type: text/event-stream)

      response-optional-property-added

    • added the optional property usage/anyOf[subschema #1: CompletionUsage]/completion_tokens_details/rejected_prediction_tokens to the response with the 200 status (media type: text/event-stream)

      response-optional-property-added

    • added the optional property usage/anyOf[subschema #1: CompletionUsage]/prompt_tokens_details/audio_tokens to the response with the 200 status (media type: text/event-stream)

      response-optional-property-added

    • added the optional property usage/anyOf[subschema #1: CompletionUsage]/prompt_tokens_details/cached_tokens to the response with the 200 status (media type: text/event-stream)

      response-optional-property-added

    • added the optional property usage/completion_tokens_details to the response with the 200 status (media type: application/json)

      response-optional-property-added

    • added the optional property usage/prompt_tokens_details to the response with the 200 status (media type: application/json)

      response-optional-property-added

    • removed CompletionTokensDetails subschema #2 from the usage/anyOf[subschema #1: CompletionUsage]/completion_tokens_details response property anyOf list for the response status 200 (media type: text/event-stream)

      response-property-any-of-removed

    • removed CompletionUsage subschema #2 from the usage response property anyOf list for the response status 200 (media type: application/json)

      response-property-any-of-removed

    • removed PromptTokensDetails subschema #2 from the usage/anyOf[subschema #1: CompletionUsage]/prompt_tokens_details response property anyOf list for the response status 200 (media type: text/event-stream)

      response-property-any-of-removed

    • the response property choices/items/logprobs/anyOf[subschema #1: ChoiceLogprobs]/content/anyOf[subschema #1]/items/bytes became required for the status 200 (media type: application/json)

      response-property-became-required

    • the response property choices/items/logprobs/anyOf[subschema #1: ChoiceLogprobs]/content/anyOf[subschema #1]/items/bytes became required for the status 200 (media type: text/event-stream)

      response-property-became-required

    • the response property choices/items/logprobs/anyOf[subschema #1: ChoiceLogprobs]/content/anyOf[subschema #1]/items/top_logprobs/items/bytes became required for the status 200 (media type: application/json)

      response-property-became-required

    • the response property choices/items/logprobs/anyOf[subschema #1: ChoiceLogprobs]/content/anyOf[subschema #1]/items/top_logprobs/items/bytes became required for the status 200 (media type: text/event-stream)

      response-property-became-required

    • the response property choices/items/logprobs/anyOf[subschema #1: ChoiceLogprobs]/refusal/anyOf[subschema #1]/items/bytes became required for the status 200 (media type: application/json)

      response-property-became-required

    • the response property choices/items/logprobs/anyOf[subschema #1: ChoiceLogprobs]/refusal/anyOf[subschema #1]/items/bytes became required for the status 200 (media type: text/event-stream)

      response-property-became-required

    • the response property choices/items/logprobs/anyOf[subschema #1: ChoiceLogprobs]/refusal/anyOf[subschema #1]/items/top_logprobs/items/bytes became required for the status 200 (media type: application/json)

      response-property-became-required

    • the response property choices/items/logprobs/anyOf[subschema #1: ChoiceLogprobs]/refusal/anyOf[subschema #1]/items/top_logprobs/items/bytes became required for the status 200 (media type: text/event-stream)

      response-property-became-required

    • the response property object became required for the status 200 (media type: application/json)

      response-property-became-required

    • the object response's property default value chat.completion.chunk was removed for the status 200 (media type: application/json)

      response-property-default-value-removed

    • response property system_fingerprint list-of-types was narrowed by removing types null from media type application/json of response 200

      response-property-list-of-types-narrowed

    • added the required property choices/items/message to the response with the 200 status (media type: application/json)

      response-required-property-added

    • added the required property usage/completion_tokens to the response with the 200 status (media type: application/json)

      response-required-property-added

    • added the required property usage/prompt_tokens to the response with the 200 status (media type: application/json)

      response-required-property-added

    • added the required property usage/total_tokens to the response with the 200 status (media type: application/json)

      response-required-property-added

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

    • added the new optional request property auto_execute_tools

      new-optional-request-property

  • fd2453a7fe65220See the full diff
    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/extra_body

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/extra_body

      request-property-removed

    • added the new optional request property disable_automatic_function_calling

      new-optional-request-property

    • added the new optional request property input

      new-optional-request-property

    • added the new optional request property instructions

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/disable_automatic_function_calling

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/prompt_cache_key

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/safety_identifier

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/structured_output

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/timeout

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/tool_config

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/verbosity

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/web_search_options

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/disable_automatic_function_calling

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/prompt_cache_key

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/safety_identifier

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/structured_output

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/timeout

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/tool_config

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/verbosity

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings/anyOf[subschema #1: ModelSettings]/web_search_options

      new-optional-request-property

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

      request-property-list-of-types-widened

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

  • 1b31e64d16b564633See the full diff
    • added the new required request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/model

      new-required-request-property

    • added the new required request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/model

      new-required-request-property

    • removed subschema #1 from the mcp_servers request property anyOf list

      request-property-any-of-removed

    • removed subschema #3 from the model request property anyOf list

      request-property-any-of-removed

    • the request property model became required

      request-property-became-required

    • the messages request property's minItems was increased to 1

      request-property-min-items-increased

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/attributes

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/frequency_penalty

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/logit_bias

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/logprobs

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/max_completion_tokens

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/max_tokens

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/metadata

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/n

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/name

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/parallel_tool_calls

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/presence_penalty

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/response_format

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/seed

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/service_tier

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/stop

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/stream

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/stream_options

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/temperature

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/tool_choice

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/tools

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/top_logprobs

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/top_p

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/user

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/attributes

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/frequency_penalty

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/logit_bias

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/logprobs

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/max_completion_tokens

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/max_tokens

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/metadata

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/n

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/name

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/parallel_tool_calls

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/presence_penalty

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/response_format

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/seed

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/service_tier

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/stop

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/stream

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/stream_options

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/temperature

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/tool_choice

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/tools

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/top_logprobs

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/top_p

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/user

      request-property-removed

    • api operation id create_v1_chat_completions_post removed and replaced with create_chat_completion_v1_chat_completions_post

      api-operation-id-removed

    • the endpoint scheme security Bearer was added to the API

      api-security-added

    • the endpoint scheme security HTTPBearer was removed from the API

      api-security-removed

    • api tag chat added

      api-tag-added

    • added the new optional request property audio

      new-optional-request-property

    • added the new optional request property function_call

      new-optional-request-property

    • added the new optional request property functions

      new-optional-request-property

    • added the new optional request property generation_config

      new-optional-request-property

    • added the new optional request property logprobs

      new-optional-request-property

    • added the new optional request property max_completion_tokens

      new-optional-request-property

    • added the new optional request property metadata

      new-optional-request-property

    • added the new optional request property modalities

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/settings

      new-optional-request-property

    • added the new optional request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/settings

      new-optional-request-property

    • added the new optional request property parallel_tool_calls

      new-optional-request-property

    • added the new optional request property prediction

      new-optional-request-property

    • added the new optional request property prompt_cache_key

      new-optional-request-property

    • added the new optional request property reasoning_effort

      new-optional-request-property

    • added the new optional request property response_format

      new-optional-request-property

    • added the new optional request property safety_identifier

      new-optional-request-property

    • added the new optional request property safety_settings

      new-optional-request-property

    • added the new optional request property seed

      new-optional-request-property

    • added the new optional request property service_tier

      new-optional-request-property

    • added the new optional request property store

      new-optional-request-property

    • added the new optional request property stream_options

      new-optional-request-property

    • added the new optional request property system

      new-optional-request-property

    • added the new optional request property thinking

      new-optional-request-property

    • added the new optional request property tool_config

      new-optional-request-property

    • added the new optional request property top_k

      new-optional-request-property

    • added the new optional request property top_logprobs

      new-optional-request-property

    • added the new optional request property verbosity

      new-optional-request-property

    • added the new optional request property web_search_options

      new-optional-request-property

    • added MCPServers MCPServerChoice to the mcp_servers request property anyOf list

      request-property-any-of-added

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

  • 546479d9468d68See the full diff
    • the request property messages became required

      request-property-became-required

    • the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/name became required

      request-property-became-required

    • the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/name became required

      request-property-became-required

    • request property messages list-of-types was narrowed by removing types null from media type application/json

      request-property-list-of-types-narrowed

    • request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/name list-of-types was narrowed by removing types null from media type application/json

      request-property-list-of-types-narrowed

    • request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/name list-of-types was narrowed by removing types null from media type application/json

      request-property-list-of-types-narrowed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/created

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/id

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/object

      request-property-removed

    • removed the request property model/anyOf[subschema #1: DedalusModelChoice]/anyOf[subschema #2: DedalusModel]/owned_by

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/created

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/id

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/object

      request-property-removed

    • removed the request property model/anyOf[subschema #2: Models]/items/anyOf[subschema #2: DedalusModel]/owned_by

      request-property-removed

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