{"components":{"parameters":{"AppCategories":{"in":"header","name":"X-OpenRouter-Categories","schema":{"type":"string"},"x-speakeasy-name-override":"appCategories"},"AppDisplayName":{"in":"header","name":"X-OpenRouter-Title","schema":{"type":"string"},"x-speakeasy-name-override":"appTitle"},"AppIdentifier":{"in":"header","name":"HTTP-Referer","schema":{"type":"string"}}},"schemas":{"AABenchmarkEntry":{"example":{"agentic_index":55.8,"coding_index":63.2,"intelligence_index":71.4},"properties":{"agentic_index":{"example":55.8,"format":"double","type":["number","null"]},"coding_index":{"example":63.2,"format":"double","type":["number","null"]},"intelligence_index":{"example":71.4,"format":"double","type":["number","null"]}},"required":["intelligence_index","coding_index","agentic_index"],"type":"object"},"ActivityItem":{"example":{"byok_usage_inference":0.012,"completion_tokens":125,"date":"2025-08-24","endpoint_id":"550e8400-e29b-41d4-a716-446655440000","model":"openai/gpt-4.1","model_permaslug":"openai/gpt-4.1-2025-04-14","prompt_tokens":50,"provider_name":"OpenAI","reasoning_tokens":25,"requests":5,"usage":0.015},"properties":{"byok_usage_inference":{"example":0.012,"format":"double","type":"number"},"completion_tokens":{"example":125,"type":"integer"},"date":{"example":"2025-08-24","type":"string"},"endpoint_id":{"example":"550e8400-e29b-41d4-a716-446655440000","type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"openai/gpt-4.1","type":"string"},"model_permaslug":{"example":"openai/gpt-4.1-2025-04-14","type":"string"},"prompt_tokens":{"example":50,"type":"integer"},"provider_name":{"example":"OpenAI","type":"string"},"reasoning_tokens":{"example":25,"type":"integer"},"requests":{"example":5,"type":"integer"},"usage":{"description":"Сведения об использованных токенах и стоимости.","example":0.015,"format":"double","type":"number"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","type":"string"}},"required":["date","model","model_permaslug","endpoint_id","provider_name","usage","byok_usage_inference","requests","prompt_tokens","completion_tokens","reasoning_tokens"],"type":"object"},"ActivityResponse":{"example":{"data":[{"byok_usage_inference":0.012,"completion_tokens":125,"date":"2025-08-24","endpoint_id":"550e8400-e29b-41d4-a716-446655440000","model":"openai/gpt-4.1","model_permaslug":"openai/gpt-4.1-2025-04-14","prompt_tokens":50,"provider_name":"OpenAI","reasoning_tokens":25,"requests":5,"usage":0.015}]},"properties":{"data":{"items":{"$ref":"#/components/schemas/ActivityItem"},"type":"array"}},"required":["data"],"type":"object"},"AdditionalToolsItem":{"example":{"role":"developer","tools":[{"name":"get_weather","parameters":{"properties":{"location":{"type":"string"}},"type":"object"},"type":"function"}],"type":"additional_tools"},"properties":{"id":{"type":["string","null"]},"role":{"description":"Роль участника диалога.","enum":["unknown","user","assistant","system","critic","discriminator","developer","tool"],"type":"string","x-speakeasy-unknown-values":"allow"},"tools":{"description":"Инструменты, которые модель может вызвать.","items":{"anyOf":[{"allOf":[{"$ref":"#/components/schemas/FunctionTool","description":"Инструменты, которые модель может вызвать."},{"description":"Инструменты, которые модель может вызвать.","properties":{"defer_loading":{"example":true,"type":"boolean"}},"type":"object"}],"description":"Инструменты, которые модель может вызвать.","example":{"name":"get_weather","parameters":{"description":"Инструменты, которые модель может вызвать.","properties":{"location":{"type":"string"},"unit":{"enum":["celsius","fahrenheit"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["location"],"type":"object"},"type":"function"}},{"$ref":"#/components/schemas/Preview_WebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/Preview_20250311_WebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/Legacy_WebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/WebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/FileSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ComputerUseServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/CodeInterpreterServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/McpServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ImageGenerationServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/CodexLocalShellTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ShellServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ApplyPatchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/CustomTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/NamespaceTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/AdvisorServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/SubagentServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/DatetimeServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/FilesServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/FusionServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ImageGenerationServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/SearchModelsServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/WebFetchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/WebSearchServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ApplyPatchServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/BashServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ShellServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ToolSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"additionalProperties":{"description":"Инструменты, которые модель может вызвать."},"description":"Инструменты, которые модель может вызвать.","properties":{"type":{"type":"string"}},"required":["type"],"type":"object"}],"description":"Инструменты, которые модель может вызвать."},"type":"array"},"type":{"enum":["additional_tools"],"type":"string"}},"required":["type","role","tools"],"type":"object"},"AdvisorReasoning":{"example":{"effort":"high"},"properties":{"effort":{"enum":["max","xhigh","high","medium","low","minimal","none"],"type":"string","x-speakeasy-unknown-values":"allow"},"max_tokens":{"description":"Максимальное количество токенов в ответе.","type":"integer"}},"type":"object"},"AdvisorServerToolConfig":{"example":{"model":"~anthropic/claude-opus-latest","name":"reviewer"},"properties":{"forward_transcript":{"example":false,"type":"boolean"},"instructions":{"description":"Дополнительные инструкции для модели.","example":"You are a senior staff engineer. Give a focused, decisive plan.","type":"string"},"max_completion_tokens":{"description":"Максимальное количество токенов завершения.","example":2048,"type":"integer"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"~anthropic/claude-opus-latest","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"reviewer","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9 _-]+$","type":"string"},"reasoning":{"$ref":"#/components/schemas/AdvisorReasoning","description":"Настройки рассуждения модели."},"stream":{"description":"Возвращать ответ постепенно в виде потока событий.","example":false,"type":"boolean"},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","example":0.7,"format":"double","type":"number"}},"type":"object"},"AdvisorServerTool_OpenRouter":{"example":{"parameters":{"model":"~anthropic/claude-opus-latest","name":"reviewer"},"type":"openrouter:advisor"},"properties":{"parameters":{"$ref":"#/components/schemas/AdvisorServerToolConfig"},"type":{"enum":["openrouter:advisor"],"type":"string"}},"required":["type"],"type":"object"},"AgentMessageItem":{"additionalProperties":{},"example":{"author":"/root/worker","content":[{"text":"Task complete.","type":"input_text"}],"recipient":"/root","type":"agent_message"},"properties":{"agent":{"additionalProperties":{},"properties":{"agent_name":{"type":"string"}},"required":["agent_name"],"type":["object","null"]},"author":{"description":"Автор или организация модели.","type":"string"},"content":{"description":"Содержимое сообщения или входные данные.","items":{"description":"Содержимое сообщения или входные данные.","oneOf":[{"$ref":"#/components/schemas/InputText","description":"Содержимое сообщения или входные данные."},{"allOf":[{"$ref":"#/components/schemas/InputImage","description":"Содержимое сообщения или входные данные."},{"description":"Содержимое сообщения или входные данные.","properties":{},"type":"object"}],"description":"Содержимое сообщения или входные данные.","example":{"description":"Содержимое сообщения или входные данные.","detail":"auto","image_url":"https://example.com/image.jpg","type":"input_image"}},{"additionalProperties":{"description":"Содержимое сообщения или входные данные."},"description":"Содержимое сообщения или входные данные.","properties":{"encrypted_content":{"type":"string"},"type":{"enum":["encrypted_content"],"type":"string"}},"required":["type","encrypted_content"],"type":"object"}]},"type":"array"},"id":{"type":["string","null"]},"recipient":{"type":"string"},"type":{"enum":["agent_message"],"type":"string"}},"required":["type","author","recipient","content"],"type":"object"},"AnnotationAddedEvent":{"allOf":[{"$ref":"#/components/schemas/BaseAnnotationAddedEvent"},{"properties":{},"type":"object"}],"example":{"annotation":{"end_index":7,"start_index":0,"title":"Example","type":"url_citation","url":"https://example.com"},"annotation_index":0,"content_index":0,"item_id":"item-1","output_index":0,"sequence_number":5,"type":"response.output_text.annotation.added"}},"AnthropicAdvisorMessageUsageIteration":{"allOf":[{"$ref":"#/components/schemas/AnthropicBaseUsageIteration"},{"properties":{"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"type":{"enum":["advisor_message"],"type":"string"}},"required":["type","model"],"type":"object"}],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":823,"model":"claude-opus-4-6","output_tokens":1612,"type":"advisor_message"}},"AnthropicAdvisorToolResult":{"example":{"content":{"text":"Advisor response text","type":"advisor_result"},"tool_use_id":"srvtoolu_01abc","type":"advisor_tool_result"},"properties":{"content":{"additionalProperties":{"description":"Содержимое сообщения или входные данные."},"description":"Содержимое сообщения или входные данные.","type":"object"},"tool_use_id":{"type":"string"},"type":{"enum":["advisor_tool_result"],"type":"string"}},"required":["type","tool_use_id","content"],"type":"object"},"AnthropicAllowedCallers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":"array"},"AnthropicBase64ImageSource":{"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string"},"media_type":{"$ref":"#/components/schemas/AnthropicImageMimeType"},"type":{"enum":["base64"],"type":"string"}},"required":["type","media_type","data"],"type":"object"},"AnthropicBase64PdfSource":{"example":{"data":"JVBERi0x...","media_type":"application/pdf","type":"base64"},"properties":{"data":{"type":"string"},"media_type":{"enum":["application/pdf"],"type":"string"},"type":{"enum":["base64"],"type":"string"}},"required":["type","media_type","data"],"type":"object"},"AnthropicBaseUsageIteration":{"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50},"properties":{"cache_creation":{"$ref":"#/components/schemas/AnthropicIterationCacheCreation"},"cache_creation_input_tokens":{"type":"integer"},"cache_read_input_tokens":{"type":"integer"},"input_tokens":{"type":"integer"},"output_tokens":{"type":"integer"}},"type":"object"},"AnthropicBashCodeExecutionContent":{"discriminator":{"mapping":{"bash_code_execution_result":"#/components/schemas/AnthropicBashCodeExecutionResult","bash_code_execution_tool_result_error":"#/components/schemas/AnthropicBashCodeExecutionToolResultError"},"propertyName":"type"},"example":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"bash_code_execution_result"},"oneOf":[{"$ref":"#/components/schemas/AnthropicBashCodeExecutionToolResultError"},{"$ref":"#/components/schemas/AnthropicBashCodeExecutionResult"}]},"AnthropicBashCodeExecutionOutput":{"example":{"file_id":"file_01abc","type":"bash_code_execution_output"},"properties":{"file_id":{"type":"string"},"type":{"enum":["bash_code_execution_output"],"type":"string"}},"required":["file_id","type"],"type":"object"},"AnthropicBashCodeExecutionResult":{"example":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"bash_code_execution_result"},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/AnthropicBashCodeExecutionOutput","description":"Содержимое сообщения или входные данные."},"type":"array"},"return_code":{"type":"integer"},"stderr":{"type":"string"},"stdout":{"type":"string"},"type":{"enum":["bash_code_execution_result"],"type":"string"}},"required":["content","return_code","stderr","stdout","type"],"type":"object"},"AnthropicBashCodeExecutionToolResult":{"example":{"content":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"bash_code_execution_result"},"tool_use_id":"srvtoolu_01abc","type":"bash_code_execution_tool_result"},"properties":{"content":{"$ref":"#/components/schemas/AnthropicBashCodeExecutionContent","description":"Содержимое сообщения или входные данные."},"tool_use_id":{"type":"string"},"type":{"enum":["bash_code_execution_tool_result"],"type":"string"}},"required":["type","content","tool_use_id"],"type":"object"},"AnthropicBashCodeExecutionToolResultError":{"example":{"error_code":"unavailable","type":"bash_code_execution_tool_result_error"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded","output_file_too_large"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["bash_code_execution_tool_result_error"],"type":"string"}},"required":["error_code","type"],"type":"object"},"AnthropicCacheControlDirective":{"example":{"type":"ephemeral"},"properties":{"ttl":{"$ref":"#/components/schemas/AnthropicCacheControlTtl"},"type":{"enum":["ephemeral"],"type":"string"}},"required":["type"],"type":"object"},"AnthropicCacheControlTtl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow"},"AnthropicCacheCreation":{"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":100},"properties":{"ephemeral_1h_input_tokens":{"type":"integer"},"ephemeral_5m_input_tokens":{"type":"integer"}},"required":["ephemeral_5m_input_tokens","ephemeral_1h_input_tokens"],"type":["object","null"]},"AnthropicCaller":{"discriminator":{"mapping":{"code_execution_20250825":"#/components/schemas/AnthropicCodeExecution20250825Caller","code_execution_20260120":"#/components/schemas/AnthropicCodeExecution20260120Caller","direct":"#/components/schemas/AnthropicDirectCaller"},"propertyName":"type"},"example":{"type":"direct"},"oneOf":[{"$ref":"#/components/schemas/AnthropicDirectCaller"},{"$ref":"#/components/schemas/AnthropicCodeExecution20250825Caller"},{"$ref":"#/components/schemas/AnthropicCodeExecution20260120Caller"}]},"AnthropicCitationCharLocation":{"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"file_id":null,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"type":["string","null"]},"end_char_index":{"type":"integer"},"file_id":{"type":["string","null"]},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}},"required":["type","cited_text","document_index","document_title","start_char_index","end_char_index","file_id"],"type":"object"},"AnthropicCitationCharLocationParam":{"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"type":["string","null"]},"end_char_index":{"type":"integer"},"start_char_index":{"type":"integer"},"type":{"enum":["char_location"],"type":"string"}},"required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"type":"object"},"AnthropicCitationContentBlockLocation":{"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"file_id":null,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"type":["string","null"]},"end_block_index":{"type":"integer"},"file_id":{"type":["string","null"]},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}},"required":["type","cited_text","document_index","document_title","start_block_index","end_block_index","file_id"],"type":"object"},"AnthropicCitationContentBlockLocationParam":{"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"type":["string","null"]},"end_block_index":{"type":"integer"},"start_block_index":{"type":"integer"},"type":{"enum":["content_block_location"],"type":"string"}},"required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"type":"object"},"AnthropicCitationPageLocation":{"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"file_id":null,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"type":["string","null"]},"end_page_number":{"type":"integer"},"file_id":{"type":["string","null"]},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}},"required":["type","cited_text","document_index","document_title","start_page_number","end_page_number","file_id"],"type":"object"},"AnthropicCitationPageLocationParam":{"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string"},"document_index":{"type":"integer"},"document_title":{"type":["string","null"]},"end_page_number":{"type":"integer"},"start_page_number":{"type":"integer"},"type":{"enum":["page_location"],"type":"string"}},"required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"type":"object"},"AnthropicCitationSearchResultLocation":{"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"type":["string","null"]},"type":{"enum":["search_result_location"],"type":"string"}},"required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"type":"object"},"AnthropicCitationSearchResultLocationParam":{"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string"},"end_block_index":{"type":"integer"},"search_result_index":{"type":"integer"},"source":{"type":"string"},"start_block_index":{"type":"integer"},"title":{"type":["string","null"]},"type":{"enum":["search_result_location"],"type":"string"}},"required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"type":"object"},"AnthropicCitationWebSearchResultLocation":{"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"type":["string","null"]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["type","cited_text","encrypted_index","title","url"],"type":"object"},"AnthropicCitationWebSearchResultLocationParam":{"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string"},"encrypted_index":{"type":"string"},"title":{"type":["string","null"]},"type":{"enum":["web_search_result_location"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["type","cited_text","encrypted_index","title","url"],"type":"object"},"AnthropicCitationsConfig":{"default":null,"example":{"enabled":true},"properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"type":["object","null"]},"AnthropicCodeExecution20250825Caller":{"example":{"tool_id":"toolu_01abc","type":"code_execution_20250825"},"properties":{"tool_id":{"type":"string"},"type":{"enum":["code_execution_20250825"],"type":"string"}},"required":["type","tool_id"],"type":"object"},"AnthropicCodeExecution20260120Caller":{"example":{"tool_id":"toolu_01abc","type":"code_execution_20260120"},"properties":{"tool_id":{"type":"string"},"type":{"enum":["code_execution_20260120"],"type":"string"}},"required":["type","tool_id"],"type":"object"},"AnthropicCodeExecutionContent":{"discriminator":{"mapping":{"code_execution_result":"#/components/schemas/AnthropicCodeExecutionResult","code_execution_tool_result_error":"#/components/schemas/AnthropicCodeExecutionToolResultError","encrypted_code_execution_result":"#/components/schemas/AnthropicEncryptedCodeExecutionResult"},"propertyName":"type"},"example":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"code_execution_result"},"oneOf":[{"$ref":"#/components/schemas/AnthropicCodeExecutionToolResultError"},{"$ref":"#/components/schemas/AnthropicCodeExecutionResult"},{"$ref":"#/components/schemas/AnthropicEncryptedCodeExecutionResult"}]},"AnthropicCodeExecutionOutput":{"example":{"file_id":"file_01abc","type":"code_execution_output"},"properties":{"file_id":{"type":"string"},"type":{"enum":["code_execution_output"],"type":"string"}},"required":["file_id","type"],"type":"object"},"AnthropicCodeExecutionResult":{"example":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"code_execution_result"},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/AnthropicCodeExecutionOutput","description":"Содержимое сообщения или входные данные."},"type":"array"},"return_code":{"type":"integer"},"stderr":{"type":"string"},"stdout":{"type":"string"},"type":{"enum":["code_execution_result"],"type":"string"}},"required":["content","return_code","stderr","stdout","type"],"type":"object"},"AnthropicCodeExecutionToolResult":{"example":{"content":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"code_execution_result"},"tool_use_id":"srvtoolu_01abc","type":"code_execution_tool_result"},"properties":{"content":{"$ref":"#/components/schemas/AnthropicCodeExecutionContent","description":"Содержимое сообщения или входные данные."},"tool_use_id":{"type":"string"},"type":{"enum":["code_execution_tool_result"],"type":"string"}},"required":["type","content","tool_use_id"],"type":"object"},"AnthropicCodeExecutionToolResultError":{"example":{"error_code":"unavailable","type":"code_execution_tool_result_error"},"properties":{"error_code":{"$ref":"#/components/schemas/AnthropicServerToolErrorCode"},"type":{"enum":["code_execution_tool_result_error"],"type":"string"}},"required":["error_code","type"],"type":"object"},"AnthropicCompactionBlock":{"example":{"content":"Compacted summary of conversation.","type":"compaction"},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","type":["string","null"]},"encrypted_content":{"type":["string","null"]},"type":{"enum":["compaction"],"type":"string"}},"required":["type","content"],"type":"object"},"AnthropicCompactionUsageIteration":{"allOf":[{"$ref":"#/components/schemas/AnthropicBaseUsageIteration"},{"properties":{"type":{"enum":["compaction"],"type":"string"}},"required":["type"],"type":"object"}],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":50,"output_tokens":25,"type":"compaction"}},"AnthropicContainer":{"example":{"expires_at":"2026-04-08T00:00:00Z","id":"ctr_01abc","skills":null},"properties":{"expires_at":{"type":"string"},"id":{"type":"string"},"skills":{"default":null,"items":{"$ref":"#/components/schemas/AnthropicContainerSkill"},"type":["array","null"]}},"required":["id","expires_at"],"type":["object","null"]},"AnthropicContainerSkill":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string"},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow"},"version":{"type":"string"}},"required":["skill_id","type","version"],"type":"object"},"AnthropicContainerUpload":{"example":{"file_id":"file_01abc","type":"container_upload"},"properties":{"file_id":{"type":"string"},"type":{"enum":["container_upload"],"type":"string"}},"required":["type","file_id"],"type":"object"},"AnthropicDirectCaller":{"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string"}},"required":["type"],"type":"object"},"AnthropicDocumentBlock":{"example":{"citations":null,"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"properties":{"citations":{"$ref":"#/components/schemas/AnthropicCitationsConfig"},"source":{"anyOf":[{"$ref":"#/components/schemas/AnthropicBase64PdfSource"},{"$ref":"#/components/schemas/AnthropicPlainTextSource"}]},"title":{"type":["string","null"]},"type":{"enum":["document"],"type":"string"}},"required":["source","title","type"],"type":"object"},"AnthropicDocumentBlockParam":{"example":{"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"type":"document"},"properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"citations":{"properties":{"enabled":{"type":"boolean"}},"type":["object","null"]},"context":{"type":["string","null"]},"source":{"oneOf":[{"$ref":"#/components/schemas/AnthropicBase64PdfSource"},{"$ref":"#/components/schemas/AnthropicPlainTextSource"},{"properties":{"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","type":"string"},{"description":"Содержимое сообщения или входные данные.","items":{"description":"Содержимое сообщения или входные данные.","discriminator":{"description":"Содержимое сообщения или входные данные.","mapping":{"description":"Содержимое сообщения или входные данные.","image":"#/components/schemas/AnthropicImageBlockParam","text":"#/components/schemas/AnthropicTextBlockParam"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/AnthropicTextBlockParam","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/AnthropicImageBlockParam","description":"Содержимое сообщения или входные данные."}]},"type":"array"}],"description":"Содержимое сообщения или входные данные."},"type":{"enum":["content"],"type":"string"}},"required":["type","content"],"type":"object"},{"$ref":"#/components/schemas/AnthropicUrlPdfSource"},{"$ref":"#/components/schemas/AnthropicFileDocumentSource"}]},"title":{"type":["string","null"]},"type":{"enum":["document"],"type":"string"}},"required":["type","source"],"type":"object"},"AnthropicEncryptedCodeExecutionResult":{"example":{"content":[],"encrypted_stdout":"enc_stdout","return_code":0,"stderr":"","type":"encrypted_code_execution_result"},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/AnthropicCodeExecutionOutput","description":"Содержимое сообщения или входные данные."},"type":"array"},"encrypted_stdout":{"type":"string"},"return_code":{"type":"integer"},"stderr":{"type":"string"},"type":{"enum":["encrypted_code_execution_result"],"type":"string"}},"required":["content","encrypted_stdout","return_code","stderr","type"],"type":"object"},"AnthropicFile":{"example":{"_shape":"anthropic","created_at":"2025-01-01T00:00:00Z","downloadable":false,"filename":"document.pdf","id":"or_file_011CNha8iCJcU1wXNR6q4V8w","mime_type":"application/pdf","size_bytes":1024000,"type":"file"},"properties":{"_shape":{"enum":["anthropic"],"type":"string"},"created_at":{"type":"string"},"downloadable":{"type":"boolean"},"filename":{"type":"string"},"id":{"type":"string"},"mime_type":{"type":"string"},"size_bytes":{"type":"integer"},"type":{"enum":["file"],"type":"string"}},"required":["_shape","id","type","filename","mime_type","size_bytes","created_at","downloadable"],"type":"object"},"AnthropicFileDeleted":{"example":{"_shape":"anthropic","id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file_deleted"},"properties":{"_shape":{"enum":["anthropic"],"type":"string"},"id":{"type":"string"},"type":{"enum":["file_deleted"],"type":"string"}},"required":["_shape","id","type"],"type":"object"},"AnthropicFileDocumentSource":{"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string"},"type":{"enum":["file"],"type":"string"}},"required":["type","file_id"],"type":"object"},"AnthropicFileList":{"example":{"_shape":"anthropic","data":[],"first_id":null,"has_more":false,"last_id":null},"properties":{"_shape":{"enum":["anthropic"],"type":"string"},"data":{"items":{"$ref":"#/components/schemas/AnthropicFile"},"type":"array"},"first_id":{"type":["string","null"]},"has_more":{"type":"boolean"},"last_id":{"type":["string","null"]}},"required":["_shape","data","has_more","first_id","last_id"],"type":"object"},"AnthropicImageBlockParam":{"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"source":{"discriminator":{"mapping":{"base64":"#/components/schemas/AnthropicBase64ImageSource","url":"#/components/schemas/AnthropicUrlImageSource"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/AnthropicBase64ImageSource"},{"$ref":"#/components/schemas/AnthropicUrlImageSource"}]},"type":{"enum":["image"],"type":"string"}},"required":["type","source"],"type":"object"},"AnthropicImageMimeType":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string","x-speakeasy-unknown-values":"allow"},"AnthropicInputTokensClearAtLeast":{"example":{"type":"input_tokens","value":50000},"properties":{"type":{"enum":["input_tokens"],"type":"string"},"value":{"type":"integer"}},"required":["type","value"],"type":["object","null"]},"AnthropicInputTokensTrigger":{"example":{"type":"input_tokens","value":100000},"properties":{"type":{"enum":["input_tokens"],"type":"string"},"value":{"type":"integer"}},"required":["type","value"],"type":"object"},"AnthropicInputTransformation":{"additionalProperties":{},"example":{"path":"messages.1.content.0","reason":"prefix_binding_mismatch","type":"thinking_dropped"},"properties":{"path":{"type":["string","null"]},"reason":{"type":["string","null"]},"type":{"type":"string"}},"required":["type"],"type":"object"},"AnthropicIterationCacheCreation":{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer"},"ephemeral_5m_input_tokens":{"type":"integer"}},"type":["object","null"]},"AnthropicMessageOutputConfig":{"additionalProperties":false,"example":{"effort":"low"},"properties":{"effort":{"$ref":"#/components/schemas/AnthropicOutputEffort"}},"type":["object","null"]},"AnthropicMessageUsageIteration":{"allOf":[{"$ref":"#/components/schemas/AnthropicBaseUsageIteration"},{"properties":{"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"type":{"enum":["message"],"type":"string"}},"required":["type"],"type":"object"}],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"}},"AnthropicMessagesErrorResponse":{"example":{"error":{"error_type":"invalid_request","message":"Invalid request: messages field is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"properties":{"error":{"properties":{"error_type":{"$ref":"#/components/schemas/ApiErrorType"},"message":{"type":"string"},"type":{"enum":["invalid_request_error","authentication_error","permission_error","not_found_error","rate_limit_error","api_error","overloaded_error","billing_error","timeout_error"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["type","message"],"type":"object"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":"object"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"request_id":{"type":["string","null"]},"type":{"enum":["error"],"type":"string"}},"required":["type","error","request_id"],"type":"object"},"AnthropicOutputEffort":{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"AnthropicOutputTokensDetails":{"example":{"thinking_tokens":0},"properties":{"thinking_tokens":{"type":"integer"}},"required":["thinking_tokens"],"type":["object","null"]},"AnthropicPlainTextSource":{"example":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"properties":{"data":{"type":"string"},"media_type":{"enum":["text/plain"],"type":"string"},"type":{"enum":["text"],"type":"string"}},"required":["type","media_type","data"],"type":"object"},"AnthropicRedactedThinkingBlock":{"example":{"data":"cmVkYWN0ZWQ=","type":"redacted_thinking"},"properties":{"data":{"type":"string"},"type":{"enum":["redacted_thinking"],"type":"string"}},"required":["type","data"],"type":"object"},"AnthropicRefusalStopDetails":{"example":{"category":"cyber","explanation":"The request was refused due to policy.","type":"refusal"},"properties":{"category":{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":["string","null"],"x-speakeasy-unknown-values":"allow"},"explanation":{"type":["string","null"]},"type":{"enum":["refusal"],"type":"string"}},"required":["type","category","explanation"],"type":["object","null"]},"AnthropicSearchResultBlockParam":{"example":{"content":[{"text":"Result content","type":"text"}],"source":"example_source","title":"Example Result","type":"search_result"},"properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"citations":{"properties":{"enabled":{"type":"boolean"}},"type":"object"},"content":{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/AnthropicTextBlockParam","description":"Содержимое сообщения или входные данные."},"type":"array"},"source":{"type":"string"},"title":{"type":"string"},"type":{"enum":["search_result"],"type":"string"}},"required":["type","source","title","content"],"type":"object"},"AnthropicServerToolErrorCode":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded"],"example":"unavailable","type":"string","x-speakeasy-unknown-values":"allow"},"AnthropicServerToolUsage":{"example":{"web_fetch_requests":0,"web_search_requests":1},"properties":{"web_fetch_requests":{"type":"integer"},"web_search_requests":{"type":"integer"}},"required":["web_search_requests","web_fetch_requests"],"type":["object","null"]},"AnthropicServiceTier":{"enum":["standard","priority","batch",null],"example":"standard","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"AnthropicSpeed":{"enum":["fast","standard",null],"example":"standard","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"AnthropicSystemClearAt":{"enum":["next_user_message","never",null],"example":"next_user_message","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"AnthropicTextBlock":{"example":{"citations":null,"text":"Hello, world!","type":"text"},"properties":{"citations":{"items":{"$ref":"#/components/schemas/AnthropicTextCitation"},"type":["array","null"]},"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"required":["type","text","citations"],"type":"object"},"AnthropicTextBlockParam":{"example":{"text":"Hello, world!","type":"text"},"properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"citations":{"items":{"discriminator":{"mapping":{"char_location":"#/components/schemas/AnthropicCitationCharLocationParam","content_block_location":"#/components/schemas/AnthropicCitationContentBlockLocationParam","page_location":"#/components/schemas/AnthropicCitationPageLocationParam","search_result_location":"#/components/schemas/AnthropicCitationSearchResultLocationParam","web_search_result_location":"#/components/schemas/AnthropicCitationWebSearchResultLocationParam"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/AnthropicCitationCharLocationParam"},{"$ref":"#/components/schemas/AnthropicCitationPageLocationParam"},{"$ref":"#/components/schemas/AnthropicCitationContentBlockLocationParam"},{"$ref":"#/components/schemas/AnthropicCitationWebSearchResultLocationParam"},{"$ref":"#/components/schemas/AnthropicCitationSearchResultLocationParam"}]},"type":["array","null"]},"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"required":["type","text"],"type":"object"},"AnthropicTextCitation":{"discriminator":{"mapping":{"char_location":"#/components/schemas/AnthropicCitationCharLocation","content_block_location":"#/components/schemas/AnthropicCitationContentBlockLocation","page_location":"#/components/schemas/AnthropicCitationPageLocation","search_result_location":"#/components/schemas/AnthropicCitationSearchResultLocation","web_search_result_location":"#/components/schemas/AnthropicCitationWebSearchResultLocation"},"propertyName":"type"},"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_char_index":10,"file_id":null,"start_char_index":0,"type":"char_location"},"oneOf":[{"$ref":"#/components/schemas/AnthropicCitationCharLocation"},{"$ref":"#/components/schemas/AnthropicCitationPageLocation"},{"$ref":"#/components/schemas/AnthropicCitationContentBlockLocation"},{"$ref":"#/components/schemas/AnthropicCitationWebSearchResultLocation"},{"$ref":"#/components/schemas/AnthropicCitationSearchResultLocation"}]},"AnthropicTextEditorCodeExecutionContent":{"discriminator":{"mapping":{"text_editor_code_execution_create_result":"#/components/schemas/AnthropicTextEditorCodeExecutionCreateResult","text_editor_code_execution_str_replace_result":"#/components/schemas/AnthropicTextEditorCodeExecutionStrReplaceResult","text_editor_code_execution_tool_result_error":"#/components/schemas/AnthropicTextEditorCodeExecutionToolResultError","text_editor_code_execution_view_result":"#/components/schemas/AnthropicTextEditorCodeExecutionViewResult"},"propertyName":"type"},"example":{"content":"file content","file_type":"text","num_lines":10,"start_line":1,"total_lines":10,"type":"text_editor_code_execution_view_result"},"oneOf":[{"$ref":"#/components/schemas/AnthropicTextEditorCodeExecutionToolResultError"},{"$ref":"#/components/schemas/AnthropicTextEditorCodeExecutionViewResult"},{"$ref":"#/components/schemas/AnthropicTextEditorCodeExecutionCreateResult"},{"$ref":"#/components/schemas/AnthropicTextEditorCodeExecutionStrReplaceResult"}]},"AnthropicTextEditorCodeExecutionCreateResult":{"example":{"is_file_update":false,"type":"text_editor_code_execution_create_result"},"properties":{"is_file_update":{"type":"boolean"},"type":{"enum":["text_editor_code_execution_create_result"],"type":"string"}},"required":["is_file_update","type"],"type":"object"},"AnthropicTextEditorCodeExecutionStrReplaceResult":{"example":{"lines":null,"new_lines":null,"new_start":null,"old_lines":null,"old_start":null,"type":"text_editor_code_execution_str_replace_result"},"properties":{"lines":{"items":{"type":"string"},"type":["array","null"]},"new_lines":{"type":["integer","null"]},"new_start":{"type":["integer","null"]},"old_lines":{"type":["integer","null"]},"old_start":{"type":["integer","null"]},"type":{"enum":["text_editor_code_execution_str_replace_result"],"type":"string"}},"required":["lines","new_lines","new_start","old_lines","old_start","type"],"type":"object"},"AnthropicTextEditorCodeExecutionToolResult":{"example":{"content":{"content":"file content","file_type":"text","num_lines":10,"start_line":1,"total_lines":10,"type":"text_editor_code_execution_view_result"},"tool_use_id":"srvtoolu_01abc","type":"text_editor_code_execution_tool_result"},"properties":{"content":{"$ref":"#/components/schemas/AnthropicTextEditorCodeExecutionContent","description":"Содержимое сообщения или входные данные."},"tool_use_id":{"type":"string"},"type":{"enum":["text_editor_code_execution_tool_result"],"type":"string"}},"required":["type","content","tool_use_id"],"type":"object"},"AnthropicTextEditorCodeExecutionToolResultError":{"example":{"error_code":"unavailable","error_message":null,"type":"text_editor_code_execution_tool_result_error"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded","file_not_found"],"type":"string","x-speakeasy-unknown-values":"allow"},"error_message":{"type":["string","null"]},"type":{"enum":["text_editor_code_execution_tool_result_error"],"type":"string"}},"required":["error_code","error_message","type"],"type":"object"},"AnthropicTextEditorCodeExecutionViewResult":{"example":{"content":"file content","file_type":"text","num_lines":10,"start_line":1,"total_lines":10,"type":"text_editor_code_execution_view_result"},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","type":"string"},"file_type":{"enum":["text","image","pdf"],"type":"string","x-speakeasy-unknown-values":"allow"},"num_lines":{"type":["integer","null"]},"start_line":{"type":["integer","null"]},"total_lines":{"type":["integer","null"]},"type":{"enum":["text_editor_code_execution_view_result"],"type":"string"}},"required":["content","file_type","num_lines","start_line","total_lines","type"],"type":"object"},"AnthropicThinkingBlock":{"example":{"signature":"sig_abc123","thinking":"Let me think about this...","type":"thinking"},"properties":{"signature":{"type":"string"},"thinking":{"type":"string"},"type":{"enum":["thinking"],"type":"string"}},"required":["type","thinking","signature"],"type":"object"},"AnthropicThinkingBlockBinding":{"additionalProperties":false,"example":{"prefix_mismatch_behavior":"drop_block"},"properties":{"mismatch_behavior":{"deprecated":true,"enum":["error","drop_block",null],"type":["string","null"],"x-speakeasy-unknown-values":"allow"},"prefix_mismatch_behavior":{"enum":["error","drop_block",null],"type":["string","null"],"x-speakeasy-unknown-values":"allow"}},"type":["object","null"]},"AnthropicThinkingDisplay":{"enum":["summarized","omitted","updates",null],"example":"summarized","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"AnthropicThinkingTurns":{"example":{"type":"thinking_turns","value":3},"properties":{"type":{"enum":["thinking_turns"],"type":"string"},"value":{"type":"integer"}},"required":["type","value"],"type":"object"},"AnthropicToolReference":{"example":{"tool_name":"my_tool","type":"tool_reference"},"properties":{"tool_name":{"type":"string"},"type":{"enum":["tool_reference"],"type":"string"}},"required":["tool_name","type"],"type":"object"},"AnthropicToolSearchContent":{"discriminator":{"mapping":{"tool_search_tool_result_error":"#/components/schemas/AnthropicToolSearchResultError","tool_search_tool_search_result":"#/components/schemas/AnthropicToolSearchResult"},"propertyName":"type"},"example":{"tool_references":[{"tool_name":"my_tool","type":"tool_reference"}],"type":"tool_search_tool_search_result"},"oneOf":[{"$ref":"#/components/schemas/AnthropicToolSearchResultError"},{"$ref":"#/components/schemas/AnthropicToolSearchResult"}]},"AnthropicToolSearchResult":{"example":{"tool_references":[{"tool_name":"my_tool","type":"tool_reference"}],"type":"tool_search_tool_search_result"},"properties":{"tool_references":{"items":{"$ref":"#/components/schemas/AnthropicToolReference"},"type":"array"},"type":{"enum":["tool_search_tool_search_result"],"type":"string"}},"required":["tool_references","type"],"type":"object"},"AnthropicToolSearchResultError":{"example":{"error_code":"unavailable","error_message":null,"type":"tool_search_tool_result_error"},"properties":{"error_code":{"$ref":"#/components/schemas/AnthropicServerToolErrorCode"},"error_message":{"type":["string","null"]},"type":{"enum":["tool_search_tool_result_error"],"type":"string"}},"required":["error_code","error_message","type"],"type":"object"},"AnthropicToolSearchToolBm25":{"properties":{"allowed_callers":{"$ref":"#/components/schemas/AnthropicAllowedCallers"},"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"defer_loading":{"type":"boolean"},"name":{"description":"Необязательное имя участника или инструмента.","enum":["tool_search_tool_bm25"],"type":"string"},"strict":{"type":"boolean"},"type":{"enum":["tool_search_tool_bm25_20251119","tool_search_tool_bm25"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["type","name"],"type":"object"},"AnthropicToolSearchToolRegex":{"properties":{"allowed_callers":{"$ref":"#/components/schemas/AnthropicAllowedCallers"},"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"defer_loading":{"type":"boolean"},"name":{"description":"Необязательное имя участника или инструмента.","enum":["tool_search_tool_regex"],"type":"string"},"strict":{"type":"boolean"},"type":{"enum":["tool_search_tool_regex_20251119","tool_search_tool_regex"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["type","name"],"type":"object"},"AnthropicToolSearchToolResult":{"example":{"content":{"tool_references":[{"tool_name":"my_tool","type":"tool_reference"}],"type":"tool_search_tool_search_result"},"tool_use_id":"srvtoolu_01abc","type":"tool_search_tool_result"},"properties":{"content":{"$ref":"#/components/schemas/AnthropicToolSearchContent","description":"Содержимое сообщения или входные данные."},"tool_use_id":{"type":"string"},"type":{"enum":["tool_search_tool_result"],"type":"string"}},"required":["type","content","tool_use_id"],"type":"object"},"AnthropicToolUseBlock":{"example":{"caller":{"type":"direct"},"id":"toolu_01abc","input":{"location":"San Francisco"},"name":"get_weather","type":"tool_use"},"properties":{"caller":{"$ref":"#/components/schemas/AnthropicCaller"},"id":{"type":"string"},"input":{"description":"Входной текст или массив входных данных."},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"type":{"enum":["tool_use"],"type":"string"}},"required":["type","id","caller","name"],"type":"object"},"AnthropicToolUsesKeep":{"example":{"type":"tool_uses","value":5},"properties":{"type":{"enum":["tool_uses"],"type":"string"},"value":{"type":"integer"}},"required":["type","value"],"type":"object"},"AnthropicToolUsesTrigger":{"example":{"type":"tool_uses","value":10},"properties":{"type":{"enum":["tool_uses"],"type":"string"},"value":{"type":"integer"}},"required":["type","value"],"type":"object"},"AnthropicUnknownUsageIteration":{"allOf":[{"$ref":"#/components/schemas/AnthropicBaseUsageIteration"},{"properties":{"type":{"type":"string"}},"required":["type"],"type":"object"}],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"unknown"}},"AnthropicUrlImageSource":{"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["type","url"],"type":"object"},"AnthropicUrlPdfSource":{"example":{"type":"url","url":"https://example.com/document.pdf"},"properties":{"type":{"enum":["url"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["type","url"],"type":"object"},"AnthropicUsage":{"example":{"cache_creation":null,"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"inference_geo":null,"input_tokens":100,"output_tokens":50,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"},"properties":{"cache_creation":{"$ref":"#/components/schemas/AnthropicCacheCreation"},"cache_creation_input_tokens":{"type":["integer","null"]},"cache_read_input_tokens":{"type":["integer","null"]},"inference_geo":{"type":["string","null"]},"input_tokens":{"type":"integer"},"output_tokens":{"type":"integer"},"output_tokens_details":{"$ref":"#/components/schemas/AnthropicOutputTokensDetails"},"server_tool_use":{"$ref":"#/components/schemas/AnthropicServerToolUsage"},"service_tier":{"$ref":"#/components/schemas/AnthropicServiceTier","description":"Желаемый уровень обслуживания запроса."}},"required":["input_tokens","output_tokens","output_tokens_details","cache_creation_input_tokens","cache_read_input_tokens","cache_creation","inference_geo","server_tool_use","service_tier"],"type":"object"},"AnthropicUsageIteration":{"anyOf":[{"$ref":"#/components/schemas/AnthropicCompactionUsageIteration"},{"$ref":"#/components/schemas/AnthropicMessageUsageIteration"},{"$ref":"#/components/schemas/AnthropicAdvisorMessageUsageIteration"},{"$ref":"#/components/schemas/AnthropicUnknownUsageIteration"}],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"}},"AnthropicWebFetchBlock":{"example":{"content":{"citations":null,"source":{"data":"","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"retrieved_at":null,"type":"web_fetch_result","url":"https://example.com"},"properties":{"content":{"$ref":"#/components/schemas/AnthropicDocumentBlock","description":"Содержимое сообщения или входные данные."},"retrieved_at":{"type":["string","null"]},"type":{"enum":["web_fetch_result"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["content","retrieved_at","type","url"],"type":"object"},"AnthropicWebFetchContent":{"discriminator":{"mapping":{"web_fetch_result":"#/components/schemas/AnthropicWebFetchBlock","web_fetch_tool_result_error":"#/components/schemas/AnthropicWebFetchToolResultError"},"propertyName":"type"},"example":{"content":{"citations":null,"source":{"data":"","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"retrieved_at":null,"type":"web_fetch_result","url":"https://example.com"},"oneOf":[{"$ref":"#/components/schemas/AnthropicWebFetchToolResultError"},{"$ref":"#/components/schemas/AnthropicWebFetchBlock"}]},"AnthropicWebFetchToolResult":{"example":{"caller":{"type":"direct"},"content":{"content":{"citations":null,"source":{"data":"","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"retrieved_at":null,"type":"web_fetch_result","url":"https://example.com"},"tool_use_id":"srvtoolu_01abc","type":"web_fetch_tool_result"},"properties":{"caller":{"$ref":"#/components/schemas/AnthropicCaller"},"content":{"$ref":"#/components/schemas/AnthropicWebFetchContent","description":"Содержимое сообщения или входные данные."},"tool_use_id":{"type":"string"},"type":{"enum":["web_fetch_tool_result"],"type":"string"}},"required":["type","caller","content","tool_use_id"],"type":"object"},"AnthropicWebFetchToolResultError":{"example":{"error_code":"unavailable","type":"web_fetch_tool_result_error"},"properties":{"error_code":{"enum":["invalid_tool_input","url_too_long","url_not_allowed","url_not_accessible","unsupported_content_type","too_many_requests","max_uses_exceeded","unavailable"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["web_fetch_tool_result_error"],"type":"string"}},"required":["type","error_code"],"type":"object"},"AnthropicWebSearchResult":{"example":{"encrypted_content":"enc_content_0","page_age":null,"title":"Example Page","type":"web_search_result","url":"https://example.com"},"properties":{"encrypted_content":{"type":"string"},"page_age":{"type":["string","null"]},"title":{"type":"string"},"type":{"enum":["web_search_result"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["type","encrypted_content","page_age","title","url"],"type":"object"},"AnthropicWebSearchResultBlockParam":{"example":{"encrypted_content":"enc_content_0","title":"Example Page","type":"web_search_result","url":"https://example.com"},"properties":{"encrypted_content":{"type":"string"},"page_age":{"type":["string","null"]},"title":{"type":"string"},"type":{"enum":["web_search_result"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["type","encrypted_content","title","url"],"type":"object"},"AnthropicWebSearchToolResult":{"example":{"caller":{"type":"direct"},"content":[],"tool_use_id":"srvtoolu_01abc","type":"web_search_tool_result"},"properties":{"caller":{"$ref":"#/components/schemas/AnthropicCaller"},"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/AnthropicWebSearchResult","description":"Содержимое сообщения или входные данные."},"type":"array"},{"$ref":"#/components/schemas/AnthropicWebSearchToolResultError","description":"Содержимое сообщения или входные данные."}],"description":"Содержимое сообщения или входные данные."},"tool_use_id":{"type":"string"},"type":{"enum":["web_search_tool_result"],"type":"string"}},"required":["type","caller","tool_use_id","content"],"type":"object"},"AnthropicWebSearchToolResultError":{"example":{"error_code":"unavailable","type":"web_search_tool_result_error"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","max_uses_exceeded","too_many_requests","query_too_long","request_too_large"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["web_search_tool_result_error"],"type":"string"}},"required":["type","error_code"],"type":"object"},"AnthropicWebSearchToolUserLocation":{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"type":["string","null"]},"country":{"type":["string","null"]},"region":{"type":["string","null"]},"timezone":{"type":["string","null"]},"type":{"enum":["approximate"],"type":"string"}},"required":["type"],"type":["object","null"]},"ApiErrorType":{"enum":["context_length_exceeded","max_tokens_exceeded","token_limit_exceeded","string_too_long","authentication","permission_denied","payment_required","rate_limit_exceeded","provider_overloaded","provider_unavailable","invalid_request","invalid_prompt","not_found","precondition_failed","payload_too_large","unprocessable","content_policy_violation","refusal","invalid_image","image_too_large","image_too_small","unsupported_image_format","image_not_found","image_download_failed","server","timeout","unmapped"],"example":"rate_limit_exceeded","type":"string","x-speakeasy-unknown-values":"allow"},"AppRankingsItem":{"example":{"app_id":12345,"app_name":"Cline","rank":1,"total_requests":4321,"total_tokens":"12345678"},"properties":{"app_id":{"example":12345,"type":"integer"},"app_name":{"example":"Cline","type":"string"},"rank":{"example":1,"type":"integer"},"total_requests":{"example":4321,"type":"integer"},"total_tokens":{"example":"12345678","type":"string"}},"required":["rank","app_id","app_name","total_tokens","total_requests"],"type":"object"},"AppRankingsResponse":{"example":{"data":[{"app_id":12345,"app_name":"Cline","rank":1,"total_requests":4321,"total_tokens":"12345678"},{"app_id":67890,"app_name":"Roo Code","rank":2,"total_requests":2109,"total_tokens":"9876543"}],"meta":{"as_of":"2026-05-12T02:00:00.000Z","end_date":"2026-05-11","start_date":"2026-04-12","version":"v1"}},"properties":{"data":{"items":{"$ref":"#/components/schemas/AppRankingsItem"},"type":"array"},"meta":{"$ref":"#/components/schemas/RankingsDailyMeta"}},"required":["data","meta"],"type":"object"},"ApplyPatchCallItem":{"example":{"call_id":"call_abc123","id":"apc_abc123","operation":{"diff":"@@ function main() {\n+  console.log(\"hi\");\n }","path":"/src/main.ts","type":"update_file"},"status":"completed","type":"apply_patch_call"},"properties":{"call_id":{"type":"string"},"id":{"type":["string","null"]},"operation":{"$ref":"#/components/schemas/ApplyPatchCallOperation"},"status":{"$ref":"#/components/schemas/ApplyPatchCallStatus"},"type":{"enum":["apply_patch_call"],"type":"string"}},"required":["type","call_id","status","operation"],"type":"object"},"ApplyPatchCallOperation":{"discriminator":{"mapping":{"create_file":"#/components/schemas/ApplyPatchCreateFileOperation","delete_file":"#/components/schemas/ApplyPatchDeleteFileOperation","update_file":"#/components/schemas/ApplyPatchUpdateFileOperation"},"propertyName":"type"},"example":{"diff":"@@ function main() {\n+  console.log(\"hi\");\n }","path":"/src/main.ts","type":"update_file"},"oneOf":[{"$ref":"#/components/schemas/ApplyPatchCreateFileOperation"},{"$ref":"#/components/schemas/ApplyPatchUpdateFileOperation"},{"$ref":"#/components/schemas/ApplyPatchDeleteFileOperation"}]},"ApplyPatchCallOperationDiffDeltaEvent":{"example":{"delta":"+console.log(\"hi\");\n","item_id":"apc_abc123","output_index":0,"sequence_number":5,"type":"response.apply_patch_call_operation_diff.delta"},"properties":{"delta":{"type":"string"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.apply_patch_call_operation_diff.delta"],"type":"string"}},"required":["type","item_id","output_index","delta","sequence_number"],"type":"object"},"ApplyPatchCallOperationDiffDoneEvent":{"example":{"diff":"@@\n+console.log(\"hi\");\n","item_id":"apc_abc123","output_index":0,"sequence_number":12,"type":"response.apply_patch_call_operation_diff.done"},"properties":{"diff":{"type":"string"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.apply_patch_call_operation_diff.done"],"type":"string"}},"required":["type","item_id","output_index","diff","sequence_number"],"type":"object"},"ApplyPatchCallOutputItem":{"example":{"call_id":"call_abc123","output":"Applied patch to /src/main.ts","status":"completed","type":"apply_patch_call_output"},"properties":{"call_id":{"type":"string"},"id":{"type":["string","null"]},"output":{"type":["string","null"]},"status":{"enum":["completed","failed"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["apply_patch_call_output"],"type":"string"}},"required":["type","call_id","status"],"type":"object"},"ApplyPatchCallStatus":{"enum":["in_progress","completed"],"example":"completed","type":"string","x-speakeasy-unknown-values":"allow"},"ApplyPatchCreateFileOperation":{"example":{"diff":"@@\n+console.log(\"hi\");\n","path":"/src/main.ts","type":"create_file"},"properties":{"diff":{"type":"string"},"path":{"type":"string"},"type":{"enum":["create_file"],"type":"string"}},"required":["type","path","diff"],"type":"object"},"ApplyPatchDeleteFileOperation":{"example":{"path":"/src/main.ts","type":"delete_file"},"properties":{"path":{"type":"string"},"type":{"enum":["delete_file"],"type":"string"}},"required":["type","path"],"type":"object"},"ApplyPatchEngineEnum":{"enum":["auto","native","openrouter"],"example":"auto","type":"string","x-speakeasy-unknown-values":"allow"},"ApplyPatchServerTool":{"example":{"type":"apply_patch"},"properties":{"type":{"enum":["apply_patch"],"type":"string"}},"required":["type"],"type":"object"},"ApplyPatchServerToolConfig":{"example":{"engine":"auto"},"properties":{"engine":{"$ref":"#/components/schemas/ApplyPatchEngineEnum"}},"type":"object"},"ApplyPatchServerTool_OpenRouter":{"example":{"type":"openrouter:apply_patch"},"properties":{"parameters":{"$ref":"#/components/schemas/ApplyPatchServerToolConfig"},"type":{"enum":["openrouter:apply_patch"],"type":"string"}},"required":["type"],"type":"object"},"ApplyPatchUpdateFileOperation":{"example":{"diff":"@@ function main() {\n+  console.log(\"hi\");\n }","path":"/src/main.ts","type":"update_file"},"properties":{"diff":{"type":"string"},"path":{"type":"string"},"type":{"enum":["update_file"],"type":"string"}},"required":["type","path","diff"],"type":"object"},"AutoBetaRouterPlugin":{"example":{"allowed_models":["anthropic/*","openai/*"],"cost_tier":"low","enabled":true,"excluded_models":["openai/gpt-4o"],"id":"auto-beta-router"},"properties":{"allowed_models":{"example":["anthropic/*","openai/gpt-4o","google/*"],"items":{"maxLength":1024,"type":"string"},"maxItems":1024,"type":"array"},"cost_quality_tradeoff":{"deprecated":true,"example":9,"maximum":10,"minimum":0,"type":"integer"},"cost_tier":{"enum":["low","medium","high","xhigh","max"],"example":"low","type":"string","x-speakeasy-unknown-values":"allow"},"enabled":{"type":"boolean"},"excluded_models":{"example":["openai/gpt-4o","meta-llama/*"],"items":{"maxLength":1024,"type":"string"},"maxItems":1024,"type":"array"},"id":{"enum":["auto-beta-router"],"type":"string"}},"required":["id"],"type":"object"},"AutoRouterPlugin":{"example":{"allowed_models":["anthropic/*","openai/*"],"cost_tier":"low","enabled":true,"excluded_models":["openai/gpt-4o"],"id":"auto-router","pin_model":false},"properties":{"allowed_models":{"example":["anthropic/*","openai/gpt-4o","google/*"],"items":{"maxLength":1024,"type":"string"},"maxItems":1024,"type":"array"},"cost_quality_tradeoff":{"deprecated":true,"example":9,"maximum":10,"minimum":0,"type":"integer"},"cost_tier":{"enum":["low","medium","high","xhigh","max"],"example":"low","type":"string","x-speakeasy-unknown-values":"allow"},"enabled":{"type":"boolean"},"excluded_models":{"example":["openai/gpt-4o","meta-llama/*"],"items":{"maxLength":1024,"type":"string"},"maxItems":1024,"type":"array"},"id":{"enum":["auto-router"],"type":"string"},"pin_model":{"example":false,"type":"boolean"}},"required":["id"],"type":"object"},"BYOKKey":{"example":{"allowed_api_key_hashes":null,"allowed_models":null,"allowed_user_ids":null,"created_at":"2025-08-24T10:30:00Z","disabled":false,"id":"11111111-2222-3333-4444-555555555555","is_byok_only":false,"is_fallback":false,"is_required":false,"label":"sk-...AbCd","name":"Production OpenAI Key","provider":"openai","sort_order":0,"workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"allowed_api_key_hashes":{"example":["f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943"],"items":{"type":"string"},"maxItems":100,"type":["array","null"]},"allowed_models":{"example":null,"items":{"type":"string"},"maxItems":100,"type":["array","null"]},"allowed_user_ids":{"example":null,"items":{"type":"string"},"maxItems":100,"type":["array","null"]},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"disabled":{"example":false,"type":"boolean"},"id":{"example":"11111111-2222-3333-4444-555555555555","format":"uuid","type":"string"},"is_byok_only":{"example":false,"type":"boolean"},"is_fallback":{"example":false,"type":"boolean"},"is_required":{"example":false,"type":"boolean"},"label":{"example":"sk-...AbCd","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production OpenAI Key","type":["string","null"]},"provider":{"$ref":"#/components/schemas/BYOKProviderSlug","description":"Настройки выбора и маршрутизации провайдера."},"sort_order":{"example":0,"type":"integer"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":["string","null"]}},"required":["id","provider","workspace_id","label","disabled","is_fallback","is_required","is_byok_only","allowed_models","allowed_api_key_hashes","allowed_user_ids","sort_order","created_at"],"type":"object"},"BYOKProviderSlug":{"enum":["ai21","aion-labs","akashml","alibaba","amazon-bedrock","amazon-nova","ambient","anthropic","arcee-ai","atlas-cloud","avian","azure","baidu","baseten","black-forest-labs","byteplus","cerebras","chutes","cirrascale","clarifai","cloudflare","cohere","coreweave","cosine","crusoe","darkbloom","databricks","decart","deepgram","deepinfra","deepseek","dekallm","digitalocean","featherless","fireworks","fish-audio","friendli","gmicloud","google-ai-studio","google-vertex","groq","heygen","inception","inceptron","inferact-vllm","inference-net","infermatic","inflection","io-net","ionstream","krea","liquid","makora","mancer","mara","meta","minimax","mistral","modal","modelrun","modular","moonshotai","morph","near-ai","nebius","nex-agi","nextbit","novita","nvidia","ollama","open-inference","openai","parasail","perceptron","perplexity","phala","poolside","primeintellect","quiver","recraft","reka","relace","runway","sail-research","sakana","sakana-ai","sambanova","seed","siliconflow","sourceful","stepfun","streamlake","switchpoint","tencent","tenstorrent","thinkingmachines","together","upstage","venice","voyageai","wafer","wandb","wandb-legacy","xai","xiaomi","z-ai"],"example":"openai","type":"string","x-speakeasy-unknown-values":"allow"},"BadGatewayResponse":{"example":{"error":{"code":502,"message":"Provider returned error"}},"properties":{"error":{"$ref":"#/components/schemas/BadGatewayResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"BadGatewayResponseErrorData":{"example":{"code":502,"message":"Provider returned error"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"BadRequestResponse":{"example":{"error":{"code":400,"message":"Invalid request parameters"}},"properties":{"error":{"$ref":"#/components/schemas/BadRequestResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"BadRequestResponseErrorData":{"example":{"code":400,"message":"Invalid request parameters"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"BaseAnnotationAddedEvent":{"example":{"annotation":{"end_index":7,"start_index":0,"title":"Example","type":"url_citation","url":"https://example.com"},"annotation_index":0,"content_index":0,"item_id":"item-1","output_index":0,"sequence_number":5,"type":"response.output_text.annotation.added"},"properties":{"annotation":{"$ref":"#/components/schemas/OpenAIResponsesAnnotation"},"annotation_index":{"type":"integer"},"content_index":{"type":"integer"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.output_text.annotation.added"],"type":"string"}},"required":["type","output_index","item_id","content_index","sequence_number","annotation_index","annotation"],"type":"object"},"BaseContentPartAddedEvent":{"example":{"content_index":0,"item_id":"item-1","output_index":0,"part":{"annotations":[],"text":"","type":"output_text"},"sequence_number":3,"type":"response.content_part.added"},"properties":{"content_index":{"type":"integer"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"part":{"anyOf":[{"$ref":"#/components/schemas/ResponseOutputText"},{"$ref":"#/components/schemas/OpenAIResponsesRefusalContent"}]},"sequence_number":{"type":"integer"},"type":{"enum":["response.content_part.added"],"type":"string"}},"required":["type","output_index","item_id","content_index","part","sequence_number"],"type":"object"},"BaseContentPartDoneEvent":{"example":{"content_index":0,"item_id":"item-1","output_index":0,"part":{"annotations":[],"text":"Hello! How can I help you?","type":"output_text"},"sequence_number":7,"type":"response.content_part.done"},"properties":{"content_index":{"type":"integer"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"part":{"anyOf":[{"$ref":"#/components/schemas/ResponseOutputText"},{"$ref":"#/components/schemas/OpenAIResponsesRefusalContent"}]},"sequence_number":{"type":"integer"},"type":{"enum":["response.content_part.done"],"type":"string"}},"required":["type","output_index","item_id","content_index","part","sequence_number"],"type":"object"},"BaseCustomToolCallInputDeltaEvent":{"example":{"delta":"*** Begin Patch","item_id":"item-1","output_index":0,"sequence_number":4,"type":"response.custom_tool_call_input.delta"},"properties":{"delta":{"type":"string"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.custom_tool_call_input.delta"],"type":"string"}},"required":["type","item_id","output_index","delta","sequence_number"],"type":"object"},"BaseCustomToolCallInputDoneEvent":{"example":{"input":"*** Begin Patch\n*** End Patch","item_id":"item-1","output_index":0,"sequence_number":6,"type":"response.custom_tool_call_input.done"},"properties":{"input":{"description":"Входной текст или массив входных данных.","type":"string"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.custom_tool_call_input.done"],"type":"string"}},"required":["type","item_id","output_index","input","sequence_number"],"type":"object"},"BaseErrorEvent":{"example":{"code":"rate_limit_exceeded","message":"Rate limit exceeded. Please try again later.","param":null,"sequence_number":2,"type":"error"},"properties":{"code":{"type":["string","null"]},"message":{"type":"string"},"param":{"type":["string","null"]},"sequence_number":{"type":"integer"},"type":{"enum":["error"],"type":"string"}},"required":["type","code","message","param","sequence_number"],"type":"object"},"BaseFunctionCallArgsDeltaEvent":{"example":{"delta":"{\"city\": \"...\"}","item_id":"item-1","output_index":0,"sequence_number":4,"type":"response.function_call_arguments.delta"},"properties":{"delta":{"type":"string"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.function_call_arguments.delta"],"type":"string"}},"required":["type","item_id","output_index","delta","sequence_number"],"type":"object"},"BaseFunctionCallArgsDoneEvent":{"example":{"arguments":"{\"city\": \"San Francisco\", \"units\": \"celsius\"}","item_id":"item-1","name":"get_weather","output_index":0,"sequence_number":6,"type":"response.function_call_arguments.done"},"properties":{"arguments":{"type":"string"},"item_id":{"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.function_call_arguments.done"],"type":"string"}},"required":["type","item_id","output_index","name","arguments","sequence_number"],"type":"object"},"BaseInputs":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"properties":{"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","items":{"description":"Содержимое сообщения или входные данные.","discriminator":{"description":"Содержимое сообщения или входные данные.","mapping":{"description":"Содержимое сообщения или входные данные.","input_audio":"#/components/schemas/InputAudio","input_file":"#/components/schemas/InputFile","input_image":"#/components/schemas/InputImage","input_text":"#/components/schemas/InputText"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/InputText","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/InputImage","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/InputFile","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/InputAudio","description":"Содержимое сообщения или входные данные."}]},"type":"array"},{"description":"Содержимое сообщения или входные данные.","type":"string"}],"description":"Содержимое сообщения или входные данные."},"phase":{"anyOf":[{"enum":["commentary"],"type":"string"},{"enum":["final_answer"],"type":"string"},{"type":"null"}]},"role":{"anyOf":[{"description":"Роль участника диалога.","enum":["user"],"type":"string"},{"description":"Роль участника диалога.","enum":["system"],"type":"string"},{"description":"Роль участника диалога.","enum":["assistant"],"type":"string"},{"description":"Роль участника диалога.","enum":["developer"],"type":"string"}],"description":"Роль участника диалога."},"type":{"enum":["message"],"type":"string"}},"required":["role","content"],"type":"object"},{"$ref":"#/components/schemas/OpenAIResponseInputMessageItem"},{"$ref":"#/components/schemas/OpenAIResponseFunctionToolCallOutput"},{"$ref":"#/components/schemas/OpenAIResponseFunctionToolCall"},{"$ref":"#/components/schemas/OutputItemImageGenerationCall"},{"$ref":"#/components/schemas/OutputMessage"},{"$ref":"#/components/schemas/OpenAIResponseCustomToolCall"},{"$ref":"#/components/schemas/OpenAIResponseCustomToolCallOutput"},{"$ref":"#/components/schemas/ApplyPatchCallItem"},{"$ref":"#/components/schemas/ApplyPatchCallOutputItem"},{"$ref":"#/components/schemas/ConfigurationUpdateItem"}]},"type":"array"},{"type":"null"}],"example":[{"content":"What is the weather today?","role":"user"}]},"BaseMessagesResult":{"example":{"container":null,"content":[{"citations":[],"text":"Hello!","type":"text"}],"id":"msg_01XFDUDYJgAACzvnptvVoYEL","model":"claude-sonnet-4-5-20250929","role":"assistant","stop_details":null,"stop_reason":"end_turn","stop_sequence":null,"type":"message","usage":{"cache_creation":null,"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"inference_geo":null,"input_tokens":12,"output_tokens":8,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"}},"properties":{"container":{"$ref":"#/components/schemas/AnthropicContainer"},"content":{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/ORAnthropicContentBlock","description":"Содержимое сообщения или входные данные."},"type":"array"},"id":{"type":"string"},"input_transformations":{"items":{"$ref":"#/components/schemas/AnthropicInputTransformation"},"type":["array","null"]},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"role":{"description":"Роль участника диалога.","enum":["assistant"],"type":"string"},"stop_details":{"$ref":"#/components/schemas/AnthropicRefusalStopDetails"},"stop_reason":{"$ref":"#/components/schemas/ORAnthropicStopReason"},"stop_sequence":{"type":["string","null"]},"type":{"enum":["message"],"type":"string"},"usage":{"allOf":[{"$ref":"#/components/schemas/AnthropicUsage","description":"Сведения об использованных токенах и стоимости."},{"description":"Сведения об использованных токенах и стоимости.","properties":{"iterations":{"items":{"$ref":"#/components/schemas/AnthropicUsageIteration"},"type":"array"},"speed":{"$ref":"#/components/schemas/AnthropicSpeed","description":"Скорость воспроизведения речи."}},"type":"object"}],"description":"Сведения об использованных токенах и стоимости.","example":{"cache_creation":null,"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"description":"Сведения об использованных токенах и стоимости.","inference_geo":null,"input_tokens":100,"output_tokens":50,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"}}},"required":["id","type","role","container","content","model","stop_reason","stop_details","stop_sequence","usage"],"type":"object"},"BaseReasoningConfig":{"example":{"effort":"medium","summary":"auto"},"properties":{"context":{"$ref":"#/components/schemas/ReasoningContext"},"effort":{"$ref":"#/components/schemas/ReasoningEffort"},"mode":{"$ref":"#/components/schemas/ReasoningMode"},"summary":{"$ref":"#/components/schemas/ReasoningSummaryVerbosity"}},"type":["object","null"]},"BaseReasoningDeltaEvent":{"example":{"content_index":0,"delta":"First, we need","item_id":"item-1","output_index":0,"sequence_number":4,"type":"response.reasoning_text.delta"},"properties":{"content_index":{"type":"integer"},"delta":{"type":"string"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.reasoning_text.delta"],"type":"string"}},"required":["type","output_index","item_id","content_index","delta","sequence_number"],"type":"object"},"BaseReasoningDoneEvent":{"example":{"content_index":0,"item_id":"item-1","output_index":0,"sequence_number":6,"text":"First, we need to identify the key components and then combine them logically.","type":"response.reasoning_text.done"},"properties":{"content_index":{"type":"integer"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"text":{"type":"string"},"type":{"enum":["response.reasoning_text.done"],"type":"string"}},"required":["type","output_index","item_id","content_index","text","sequence_number"],"type":"object"},"BaseReasoningSummaryPartAddedEvent":{"example":{"item_id":"item-1","output_index":0,"part":{"text":"","type":"summary_text"},"sequence_number":3,"summary_index":0,"type":"response.reasoning_summary_part.added"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"part":{"$ref":"#/components/schemas/ReasoningSummaryText"},"sequence_number":{"type":"integer"},"summary_index":{"type":"integer"},"type":{"enum":["response.reasoning_summary_part.added"],"type":"string"}},"required":["type","output_index","item_id","summary_index","part","sequence_number"],"type":"object"},"BaseReasoningSummaryPartDoneEvent":{"example":{"item_id":"item-1","output_index":0,"part":{"text":"Analyzing the problem step by step to find the optimal solution.","type":"summary_text"},"sequence_number":7,"summary_index":0,"type":"response.reasoning_summary_part.done"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"part":{"$ref":"#/components/schemas/ReasoningSummaryText"},"sequence_number":{"type":"integer"},"summary_index":{"type":"integer"},"type":{"enum":["response.reasoning_summary_part.done"],"type":"string"}},"required":["type","output_index","item_id","summary_index","part","sequence_number"],"type":"object"},"BaseReasoningSummaryTextDeltaEvent":{"example":{"delta":"Analyzing","item_id":"item-1","output_index":0,"sequence_number":4,"summary_index":0,"type":"response.reasoning_summary_text.delta"},"properties":{"delta":{"type":"string"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"summary_index":{"type":"integer"},"type":{"enum":["response.reasoning_summary_text.delta"],"type":"string"}},"required":["type","item_id","output_index","summary_index","delta","sequence_number"],"type":"object"},"BaseReasoningSummaryTextDoneEvent":{"example":{"item_id":"item-1","output_index":0,"sequence_number":6,"summary_index":0,"text":"Analyzing the problem step by step to find the optimal solution.","type":"response.reasoning_summary_text.done"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"summary_index":{"type":"integer"},"text":{"type":"string"},"type":{"enum":["response.reasoning_summary_text.done"],"type":"string"}},"required":["type","item_id","output_index","summary_index","text","sequence_number"],"type":"object"},"BaseRefusalDeltaEvent":{"example":{"content_index":0,"delta":"I'm sorry","item_id":"item-1","output_index":0,"sequence_number":4,"type":"response.refusal.delta"},"properties":{"content_index":{"type":"integer"},"delta":{"type":"string"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.refusal.delta"],"type":"string"}},"required":["type","output_index","item_id","content_index","delta","sequence_number"],"type":"object"},"BaseRefusalDoneEvent":{"example":{"content_index":0,"item_id":"item-1","output_index":0,"refusal":"I'm sorry, but I can't assist with that request.","sequence_number":6,"type":"response.refusal.done"},"properties":{"content_index":{"type":"integer"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"refusal":{"type":"string"},"sequence_number":{"type":"integer"},"type":{"enum":["response.refusal.done"],"type":"string"}},"required":["type","output_index","item_id","content_index","refusal","sequence_number"],"type":"object"},"BaseResponsesResult":{"example":{"completed_at":1704067210,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":null,"status":"completed","temperature":null,"tool_choice":"auto","tools":[],"top_p":null},"properties":{"background":{"description":"Параметры фона результата.","type":["boolean","null"]},"completed_at":{"type":["integer","null"]},"created_at":{"type":"integer"},"error":{"$ref":"#/components/schemas/ResponsesErrorField","nullable":true},"frequency_penalty":{"description":"Штраф за частое повторение токенов.","format":"double","type":["number","null"]},"id":{"type":"string"},"incomplete_details":{"$ref":"#/components/schemas/IncompleteDetails","nullable":true},"instructions":{"$ref":"#/components/schemas/BaseInputs","description":"Дополнительные инструкции для модели.","nullable":true},"max_output_tokens":{"description":"Максимальное количество токенов в результате.","nullable":true,"type":["integer","null"]},"max_tool_calls":{"nullable":true,"type":["integer","null"]},"metadata":{"$ref":"#/components/schemas/RequestMetadata","description":"Дополнительные метаданные запроса."},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"object":{"enum":["response"],"type":"string"},"output":{"items":{"discriminator":{"mapping":{"apply_patch_call":"#/components/schemas/OutputItemApplyPatchCall","code_interpreter_call":"#/components/schemas/OutputItemCodeInterpreterCall","custom_tool_call":"#/components/schemas/OutputItemCustomToolCall","file_search_call":"#/components/schemas/OutputItemFileSearchCall","function_call":"#/components/schemas/OutputItemFunctionCall","image_generation_call":"#/components/schemas/OutputItemImageGenerationCall","message":"#/components/schemas/OutputMessage","reasoning":"#/components/schemas/OutputItemReasoning","web_search_call":"#/components/schemas/OutputItemWebSearchCall"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/OutputMessage"},{"$ref":"#/components/schemas/OutputItemReasoning"},{"$ref":"#/components/schemas/OutputItemFunctionCall"},{"$ref":"#/components/schemas/OutputItemCustomToolCall"},{"$ref":"#/components/schemas/OutputItemWebSearchCall"},{"$ref":"#/components/schemas/OutputItemFileSearchCall"},{"$ref":"#/components/schemas/OutputItemImageGenerationCall"},{"$ref":"#/components/schemas/OutputItemApplyPatchCall"},{"$ref":"#/components/schemas/OutputItemCodeInterpreterCall"}]},"type":"array"},"output_text":{"type":"string"},"parallel_tool_calls":{"description":"Разрешить одновременный вызов нескольких инструментов.","type":"boolean"},"presence_penalty":{"description":"Штраф за повторное использование уже встречавшихся токенов.","format":"double","type":["number","null"]},"previous_response_id":{"type":["string","null"]},"prompt":{"$ref":"#/components/schemas/StoredPromptTemplate","description":"Текстовое описание желаемого результата."},"prompt_cache_key":{"type":["string","null"]},"prompt_cache_options":{"$ref":"#/components/schemas/PromptCacheOptions"},"reasoning":{"$ref":"#/components/schemas/BaseReasoningConfig","description":"Настройки рассуждения модели.","nullable":true},"safety_identifier":{"description":"Стабильный идентификатор для контроля безопасности.","type":["string","null"]},"service_tier":{"$ref":"#/components/schemas/ServiceTier","description":"Желаемый уровень обслуживания запроса."},"status":{"$ref":"#/components/schemas/OpenAIResponsesResponseStatus"},"store":{"description":"Разрешить провайдеру сохранить результат запроса.","type":"boolean"},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","format":"double","type":["number","null"]},"text":{"$ref":"#/components/schemas/TextConfig","nullable":true},"tool_choice":{"$ref":"#/components/schemas/OpenAIResponsesToolChoice","description":"Правило выбора инструмента моделью."},"tools":{"description":"Инструменты, которые модель может вызвать.","items":{"description":"Инструменты, которые модель может вызвать.","oneOf":[{"allOf":[{"$ref":"#/components/schemas/FunctionTool","description":"Инструменты, которые модель может вызвать."},{"description":"Инструменты, которые модель может вызвать.","properties":{"defer_loading":{"example":true,"type":"boolean"}},"type":"object"}],"description":"Инструменты, которые модель может вызвать.","example":{"name":"get_weather","parameters":{"description":"Инструменты, которые модель может вызвать.","properties":{"location":{"type":"string"},"unit":{"enum":["celsius","fahrenheit"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["location"],"type":"object"},"type":"function"}},{"$ref":"#/components/schemas/Preview_WebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/Preview_20250311_WebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/Legacy_WebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/WebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/FileSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ComputerUseServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/CodeInterpreterServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/McpServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ImageGenerationServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/CodexLocalShellTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ShellServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ApplyPatchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/CustomTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/NamespaceTool","description":"Инструменты, которые модель может вызвать."}]},"type":"array"},"top_logprobs":{"description":"Количество наиболее вероятных токенов с их логарифмами вероятностей.","nullable":true,"type":"integer"},"top_p":{"description":"Порог вероятностной выборки токенов.","format":"double","type":["number","null"]},"truncation":{"$ref":"#/components/schemas/Truncation","description":"Правило сокращения слишком длинного входного контекста.","nullable":true},"usage":{"$ref":"#/components/schemas/OpenAIResponsesUsage","description":"Сведения об использованных токенах и стоимости."},"user":{"description":"Идентификатор конечного пользователя.","type":["string","null"]}},"required":["id","object","created_at","model","status","completed_at","output","error","incomplete_details","temperature","top_p","presence_penalty","frequency_penalty","instructions","metadata","tools","tool_choice","parallel_tool_calls"],"type":"object"},"BaseTextDeltaEvent":{"example":{"content_index":0,"delta":"Hello","item_id":"item-1","logprobs":[],"output_index":0,"sequence_number":4,"type":"response.output_text.delta"},"properties":{"content_index":{"type":"integer"},"delta":{"type":"string"},"item_id":{"type":"string"},"logprobs":{"description":"Возвращать логарифмы вероятностей токенов.","items":{"$ref":"#/components/schemas/OpenResponsesLogProbs","description":"Возвращать логарифмы вероятностей токенов."},"type":"array"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.output_text.delta"],"type":"string"}},"required":["type","logprobs","output_index","item_id","content_index","delta","sequence_number"],"type":"object"},"BaseTextDoneEvent":{"example":{"content_index":0,"item_id":"item-1","logprobs":[],"output_index":0,"sequence_number":6,"text":"Hello! How can I help you?","type":"response.output_text.done"},"properties":{"content_index":{"type":"integer"},"item_id":{"type":"string"},"logprobs":{"description":"Возвращать логарифмы вероятностей токенов.","items":{"$ref":"#/components/schemas/OpenResponsesLogProbs","description":"Возвращать логарифмы вероятностей токенов."},"type":"array"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"text":{"type":"string"},"type":{"enum":["response.output_text.done"],"type":"string"}},"required":["type","output_index","item_id","content_index","text","sequence_number","logprobs"],"type":"object"},"BashServerTool":{"example":{"parameters":{"environment":{"type":"container_auto"}},"type":"openrouter:bash"},"properties":{"parameters":{"$ref":"#/components/schemas/BashServerToolConfig"},"type":{"enum":["openrouter:bash"],"type":"string"}},"required":["type"],"type":"object"},"BashServerToolConfig":{"example":{"environment":{"type":"container_auto"}},"properties":{"engine":{"$ref":"#/components/schemas/BashServerToolEngine"},"environment":{"$ref":"#/components/schemas/BashServerToolEnvironment"}},"type":"object"},"BashServerToolEngine":{"enum":["auto","native","openrouter"],"example":"auto","type":"string","x-speakeasy-unknown-values":"allow"},"BashServerToolEnvironment":{"discriminator":{"mapping":{"container_auto":"#/components/schemas/ContainerAutoEnvironment","container_reference":"#/components/schemas/ContainerReferenceEnvironment"},"propertyName":"type"},"example":{"type":"container_auto"},"oneOf":[{"$ref":"#/components/schemas/ContainerAutoEnvironment"},{"$ref":"#/components/schemas/ContainerReferenceEnvironment"}]},"BooleanCapability":{"example":{"type":"boolean"},"properties":{"type":{"enum":["boolean"],"type":"string"}},"required":["type"],"type":"object"},"BulkAddWorkspaceMembersRequest":{"example":{"user_ids":["user_abc123","user_def456"]},"properties":{"user_ids":{"example":["user_abc123","user_def456"],"items":{"type":"string"},"maxItems":100,"minItems":1,"type":"array"}},"required":["user_ids"],"type":"object"},"BulkAddWorkspaceMembersResponse":{"example":{"added_count":1,"data":[{"created_at":"2025-08-24T10:30:00Z","id":"660e8400-e29b-41d4-a716-446655440000","role":"member","user_id":"user_abc123","workspace_id":"550e8400-e29b-41d4-a716-446655440000"}]},"properties":{"added_count":{"example":2,"type":"integer"},"data":{"items":{"$ref":"#/components/schemas/WorkspaceMember"},"type":"array"}},"required":["data","added_count"],"type":"object"},"BulkAssignKeysRequest":{"example":{"key_hashes":["c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93"]},"properties":{"key_hashes":{"example":["c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93"],"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["key_hashes"],"type":"object"},"BulkAssignKeysResponse":{"example":{"assigned_count":3},"properties":{"assigned_count":{"example":3,"type":"integer"}},"required":["assigned_count"],"type":"object"},"BulkAssignMembersRequest":{"example":{"member_user_ids":["user_abc123","user_def456"]},"properties":{"member_user_ids":{"example":["user_abc123","user_def456"],"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["member_user_ids"],"type":"object"},"BulkAssignMembersResponse":{"example":{"assigned_count":2},"properties":{"assigned_count":{"example":2,"type":"integer"}},"required":["assigned_count"],"type":"object"},"BulkRemoveWorkspaceMembersRequest":{"example":{"user_ids":["user_abc123","user_def456"]},"properties":{"user_ids":{"example":["user_abc123","user_def456"],"items":{"type":"string"},"maxItems":100,"minItems":1,"type":"array"}},"required":["user_ids"],"type":"object"},"BulkRemoveWorkspaceMembersResponse":{"example":{"removed_count":2},"properties":{"removed_count":{"example":2,"type":"integer"}},"required":["removed_count"],"type":"object"},"BulkUnassignKeysRequest":{"example":{"key_hashes":["c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93"]},"properties":{"key_hashes":{"example":["c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93"],"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["key_hashes"],"type":"object"},"BulkUnassignKeysResponse":{"example":{"unassigned_count":3},"properties":{"unassigned_count":{"example":3,"type":"integer"}},"required":["unassigned_count"],"type":"object"},"BulkUnassignMembersRequest":{"example":{"member_user_ids":["user_abc123","user_def456"]},"properties":{"member_user_ids":{"example":["user_abc123","user_def456"],"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"required":["member_user_ids"],"type":"object"},"BulkUnassignMembersResponse":{"example":{"unassigned_count":2},"properties":{"unassigned_count":{"example":2,"type":"integer"}},"required":["unassigned_count"],"type":"object"},"CapabilityDescriptor":{"discriminator":{"mapping":{"boolean":"#/components/schemas/BooleanCapability","enum":"#/components/schemas/EnumCapability","range":"#/components/schemas/RangeCapability","x-speakeasy-unknown-values":"allow"},"propertyName":"type"},"example":{"type":"enum","values":["1K","2K","4K"]},"oneOf":[{"$ref":"#/components/schemas/EnumCapability"},{"$ref":"#/components/schemas/RangeCapability"},{"$ref":"#/components/schemas/BooleanCapability"}]},"ChatAssistantImages":{"example":[{"image_url":{"url":"data:image/png;base64,iVBORw0KGgo..."}}],"items":{"properties":{"image_url":{"description":"Ссылка на изображение или объект с параметрами изображения.","properties":{"url":{"description":"Адрес ресурса.","type":"string"}},"required":["url"],"type":"object"}},"required":["image_url"],"type":"object"},"type":"array"},"ChatAssistantMessage":{"example":{"content":"The capital of France is Paris.","model":"openai/gpt-4o","role":"assistant"},"properties":{"audio":{"$ref":"#/components/schemas/ChatAudioOutput","description":"Настройки аудио."},"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","type":"string"},{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/ChatContentItems","description":"Содержимое сообщения или входные данные."},"type":"array"},{"description":"Содержимое сообщения или входные данные.","type":"null"}],"description":"Содержимое сообщения или входные данные."},"images":{"description":"Изображения, созданные моделями с поддержкой графического вывода.","items":{"$ref":"#/components/schemas/LLMoraImageData"},"type":"array"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"openai/gpt-4o","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"reasoning":{"description":"Настройки рассуждения модели.","type":["string","null"]},"reasoning_details":{"$ref":"#/components/schemas/ChatReasoningDetails"},"refusal":{"type":["string","null"]},"role":{"description":"Роль участника диалога.","enum":["assistant"],"type":"string"},"tool_calls":{"items":{"$ref":"#/components/schemas/ChatToolCall"},"type":"array"}},"required":["role"],"type":"object"},"ChatAudioOutput":{"example":{"data":"UklGRnoGAABXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YQoGAACBhYqFbF1f","expires_at":1677652400,"id":"audio_abc123","transcript":"Hello! How can I help you today?"},"properties":{"data":{"type":"string"},"expires_at":{"type":"integer"},"id":{"type":"string"},"transcript":{"type":"string"}},"type":"object"},"ChatChoice":{"example":{"finish_reason":"stop","index":0,"logprobs":null,"message":{"content":"The capital of France is Paris.","role":"assistant"}},"properties":{"finish_reason":{"$ref":"#/components/schemas/ChatFinishReasonEnum"},"index":{"description":"Номер результата в задаче генерации.","example":0,"type":"integer"},"logprobs":{"$ref":"#/components/schemas/ChatTokenLogprobs","description":"Возвращать логарифмы вероятностей токенов."},"message":{"$ref":"#/components/schemas/ChatAssistantMessage"}},"required":["finish_reason","index","message"],"type":"object"},"ChatContentAudio":{"example":{"input_audio":{"data":"SGVsbG8gV29ybGQ=","format":"wav"},"type":"input_audio"},"properties":{"input_audio":{"properties":{"data":{"type":"string"},"format":{"type":"string"}},"required":["data","format"],"type":"object"},"type":{"enum":["input_audio"],"type":"string"}},"required":["type","input_audio"],"type":"object"},"ChatContentCacheControl":{"allOf":[{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},{"properties":{},"type":"object"}],"example":{"ttl":"5m","type":"ephemeral"}},"ChatContentFile":{"example":{"file":{"file_data":"https://example.com/document.pdf","filename":"document.pdf"},"type":"file"},"properties":{"file":{"description":"Файл для обработки.","properties":{"file_data":{"type":"string"},"file_id":{"type":"string"},"filename":{"type":"string"}},"type":"object"},"type":{"enum":["file"],"type":"string"}},"required":["type","file"],"type":"object"},"ChatContentImage":{"example":{"image_url":{"detail":"auto","url":"https://example.com/image.jpg"},"type":"image_url"},"properties":{"image_url":{"description":"Ссылка на изображение или объект с параметрами изображения.","properties":{"detail":{"description":"Уровень детализации обработки изображения.","enum":["auto","low","high","original"],"type":"string","x-speakeasy-unknown-values":"allow"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["url"],"type":"object"},"type":{"enum":["image_url"],"type":"string"}},"required":["type","image_url"],"type":"object"},"ChatContentItems":{"discriminator":{"mapping":{"file":"#/components/schemas/ChatContentFile","image_url":"#/components/schemas/ChatContentImage","input_audio":"#/components/schemas/ChatContentAudio","input_video":"#/components/schemas/Legacy_ChatContentVideo","text":"#/components/schemas/ChatContentText","video_url":"#/components/schemas/ChatContentVideo"},"propertyName":"type"},"example":{"text":"Hello, world!","type":"text"},"oneOf":[{"$ref":"#/components/schemas/ChatContentText"},{"$ref":"#/components/schemas/ChatContentImage"},{"$ref":"#/components/schemas/ChatContentAudio"},{"$ref":"#/components/schemas/Legacy_ChatContentVideo"},{"$ref":"#/components/schemas/ChatContentVideo"},{"$ref":"#/components/schemas/ChatContentFile"}]},"ChatContentText":{"example":{"text":"Hello, world!","type":"text"},"properties":{"cache_control":{"$ref":"#/components/schemas/ChatContentCacheControl"},"prompt_cache_breakpoint":{"$ref":"#/components/schemas/PromptCacheBreakpoint"},"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"required":["type","text"],"type":"object"},"ChatContentVideo":{"example":{"type":"video_url","video_url":{"url":"https://example.com/video.mp4"}},"properties":{"type":{"enum":["video_url"],"type":"string"},"video_url":{"$ref":"#/components/schemas/ChatContentVideoInput"}},"required":["type","video_url"],"type":"object"},"ChatContentVideoInput":{"example":{"url":"https://example.com/video.mp4"},"properties":{"processing":{"enum":["agentic","static"],"example":"agentic","type":"string","x-speakeasy-unknown-values":"allow"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["url"],"type":"object"},"ChatDebugOptions":{"example":{"echo_upstream_body":true},"properties":{"echo_upstream_body":{"example":true,"type":"boolean"}},"type":"object"},"ChatDeveloperMessage":{"example":{"content":"This is a message from the developer.","role":"developer"},"properties":{"configuration_update":{"additionalProperties":false,"example":{"reasoning":{"effort":"low"}},"properties":{"reasoning":{"$ref":"#/components/schemas/ConfigurationUpdateReasoning","description":"Настройки рассуждения модели."}},"required":["reasoning"],"type":["object","null"]},"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","type":"string"},{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/ChatContentText","description":"Содержимое сообщения или входные данные."},"type":"array"}],"description":"Содержимое сообщения или входные данные.","example":"This is a message from the developer."},"name":{"description":"Необязательное имя участника или инструмента.","example":"Developer","type":"string"},"role":{"description":"Роль участника диалога.","enum":["developer"],"type":"string"}},"required":["role","content"],"type":"object"},"ChatFinishReasonEnum":{"enum":["tool_calls","stop","length","content_filter","error",null],"example":"stop","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"ChatFormatGrammarConfig":{"example":{"grammar":"root ::= \"yes\" | \"no\"","type":"grammar"},"properties":{"grammar":{"example":"root ::= \"yes\" | \"no\"","type":"string"},"type":{"enum":["grammar"],"type":"string"}},"required":["type","grammar"],"type":"object"},"ChatFormatJsonObjectConfig":{"example":{"type":"json_object"},"properties":{"type":{"enum":["json_object"],"type":"string"}},"required":["type"],"type":"object"},"ChatFormatJsonSchemaConfig":{"example":{"json_schema":{"name":"math_response","schema":{"properties":{"answer":{"type":"number"}},"required":["answer"],"type":"object"}},"type":"json_schema"},"properties":{"json_schema":{"$ref":"#/components/schemas/ChatJsonSchemaConfig"},"type":{"enum":["json_schema"],"type":"string"}},"required":["type","json_schema"],"type":"object"},"ChatFormatPythonConfig":{"example":{"type":"python"},"properties":{"type":{"enum":["python"],"type":"string"}},"required":["type"],"type":"object"},"ChatFormatTextConfig":{"example":{"type":"text"},"properties":{"type":{"enum":["text"],"type":"string"}},"required":["type"],"type":"object"},"ChatFunctionTool":{"anyOf":[{"properties":{"cache_control":{"$ref":"#/components/schemas/ChatContentCacheControl"},"function":{"example":{"name":"get_weather","parameters":{"properties":{"location":{"type":"string"}},"required":["location"],"type":"object"}},"properties":{"description":{"example":"Get the current weather for a location","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"get_weather","maxLength":64,"type":"string"},"parameters":{"additionalProperties":{},"example":{"properties":{"location":{"type":"string"}},"required":["location"],"type":"object"},"type":"object"},"strict":{"example":false,"type":["boolean","null"]}},"required":["name"],"type":"object"},"type":{"enum":["function"],"type":"string"}},"required":["type","function"],"type":"object"},{"$ref":"#/components/schemas/AdvisorServerTool_OpenRouter"},{"$ref":"#/components/schemas/BashServerTool"},{"$ref":"#/components/schemas/DatetimeServerTool"},{"$ref":"#/components/schemas/FilesServerTool"},{"$ref":"#/components/schemas/FusionServerTool_OpenRouter"},{"$ref":"#/components/schemas/ImageGenerationServerTool_OpenRouter"},{"$ref":"#/components/schemas/ChatSearchModelsServerTool"},{"$ref":"#/components/schemas/SubagentServerTool_OpenRouter"},{"$ref":"#/components/schemas/WebFetchServerTool"},{"$ref":"#/components/schemas/OpenRouterWebSearchServerTool"},{"$ref":"#/components/schemas/ChatWebSearchShorthand"}],"example":{"function":{"name":"get_weather","parameters":{"properties":{"location":{"type":"string"},"unit":{"enum":["celsius","fahrenheit"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["location"],"type":"object"}},"type":"function"}},"ChatJsonSchemaConfig":{"example":{"name":"math_response","schema":{"properties":{"answer":{"type":"number"}},"required":["answer"],"type":"object"},"strict":true},"properties":{"description":{"example":"A mathematical response","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"math_response","maxLength":64,"type":"string"},"schema":{"additionalProperties":{},"example":{"properties":{"answer":{"type":"number"}},"required":["answer"],"type":"object"},"type":"object"},"strict":{"example":false,"type":["boolean","null"]}},"required":["name"],"type":"object"},"ChatMessages":{"discriminator":{"mapping":{"assistant":"#/components/schemas/ChatAssistantMessage","developer":"#/components/schemas/ChatDeveloperMessage","system":"#/components/schemas/ChatSystemMessage","tool":"#/components/schemas/ChatToolMessage","user":"#/components/schemas/ChatUserMessage"},"propertyName":"role"},"example":{"content":"What is the capital of France?","role":"user"},"oneOf":[{"$ref":"#/components/schemas/ChatSystemMessage"},{"$ref":"#/components/schemas/ChatUserMessage"},{"$ref":"#/components/schemas/ChatDeveloperMessage"},{"$ref":"#/components/schemas/ChatAssistantMessage"},{"$ref":"#/components/schemas/ChatToolMessage"}]},"ChatModelNames":{"example":["openai/gpt-4","openai/gpt-4o"],"items":{"allOf":[{"$ref":"#/components/schemas/ModelName"},{}]},"type":"array"},"ChatNamedToolChoice":{"example":{"function":{"name":"get_weather"},"type":"function"},"properties":{"function":{"properties":{"name":{"description":"Необязательное имя участника или инструмента.","example":"get_weather","type":"string"}},"required":["name"],"type":"object"},"type":{"enum":["function"],"type":"string"}},"required":["type","function"],"type":"object"},"ChatReasoningDetails":{"example":[{"text":"Let me work through this step by step...","type":"reasoning.text"}],"items":{"$ref":"#/components/schemas/ReasoningDetailUnion"},"type":"array"},"ChatReasoningSummaryVerbosityEnum":{"enum":["auto","concise","detailed",null],"example":"concise","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"ChatRequest":{"example":{"max_tokens":150,"messages":[{"content":"You are a helpful assistant.","role":"system"},{"content":"What is the capital of France?","role":"user"}],"model":"openai/gpt-4","temperature":0.7},"properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"debug":{"$ref":"#/components/schemas/ChatDebugOptions"},"frequency_penalty":{"description":"Штраф за частое повторение токенов.","example":0,"format":"double","type":["number","null"]},"image_config":{"$ref":"#/components/schemas/ImageConfig"},"logit_bias":{"additionalProperties":{"description":"Изменение вероятности отдельных токенов.","format":"double","type":"number"},"description":"Изменение вероятности отдельных токенов.","example":{"50256":-100,"description":"Изменение вероятности отдельных токенов."},"type":["object","null"]},"logprobs":{"description":"Возвращать логарифмы вероятностей токенов.","example":false,"type":["boolean","null"]},"max_completion_tokens":{"description":"Максимальное количество токенов завершения.","example":100,"type":["integer","null"]},"max_tokens":{"description":"Максимальное количество токенов в ответе.","example":100,"type":["integer","null"]},"messages":{"description":"История сообщений диалога.","example":[{"content":"Hello!","description":"История сообщений диалога.","role":"user"}],"items":{"$ref":"#/components/schemas/ChatMessages","description":"История сообщений диалога."},"minItems":1,"type":"array"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса.","type":"string"},"description":"Дополнительные метаданные запроса.","example":{"description":"Дополнительные метаданные запроса.","session_id":"session-456","user_id":"user-123"},"type":"object"},"min_p":{"description":"Минимальная относительная вероятность токена.","example":0.1,"format":"double","type":["number","null"]},"modalities":{"description":"Типы результата, которые должна вернуть модель.","example":["image","text"],"items":{"description":"Типы результата, которые должна вернуть модель.","enum":["text","image","audio"],"type":"string"},"type":"array"},"model":{"$ref":"#/components/schemas/ModelName","description":"Идентификатор модели, которая обработает запрос."},"models":{"$ref":"#/components/schemas/ChatModelNames","description":"Дополнительные модели для резервной маршрутизации."},"parallel_tool_calls":{"description":"Разрешить одновременный вызов нескольких инструментов.","example":true,"type":["boolean","null"]},"plugins":{"items":{"discriminator":{"mapping":{"auto-beta-router":"#/components/schemas/AutoBetaRouterPlugin","auto-router":"#/components/schemas/AutoRouterPlugin","context-compression":"#/components/schemas/ContextCompressionPlugin","file-parser":"#/components/schemas/FileParserPlugin","fusion":"#/components/schemas/FusionPlugin","moderation":"#/components/schemas/ModerationPlugin","pareto-router":"#/components/schemas/ParetoRouterPlugin","response-healing":"#/components/schemas/ResponseHealingPlugin","web":"#/components/schemas/WebSearchPlugin","web-fetch":"#/components/schemas/WebFetchPlugin"},"propertyName":"id"},"oneOf":[{"$ref":"#/components/schemas/AutoRouterPlugin"},{"$ref":"#/components/schemas/AutoBetaRouterPlugin"},{"$ref":"#/components/schemas/ModerationPlugin"},{"$ref":"#/components/schemas/WebSearchPlugin"},{"$ref":"#/components/schemas/WebFetchPlugin"},{"$ref":"#/components/schemas/FileParserPlugin"},{"$ref":"#/components/schemas/ResponseHealingPlugin"},{"$ref":"#/components/schemas/ContextCompressionPlugin"},{"$ref":"#/components/schemas/ParetoRouterPlugin"},{"$ref":"#/components/schemas/FusionPlugin"}]},"type":"array"},"prediction":{"$ref":"#/components/schemas/Prediction"},"presence_penalty":{"description":"Штраф за повторное использование уже встречавшихся токенов.","example":0,"format":"double","type":["number","null"]},"prompt_cache_key":{"type":["string","null"]},"prompt_cache_options":{"$ref":"#/components/schemas/PromptCacheOptions"},"provider":{"$ref":"#/components/schemas/ProviderPreferences","description":"Настройки выбора и маршрутизации провайдера."},"reasoning":{"description":"Настройки рассуждения модели.","example":{"description":"Настройки рассуждения модели.","effort":"medium","summary":"concise"},"properties":{"effort":{"enum":["max","xhigh","high","medium","low","minimal","none",null],"example":"medium","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"summary":{"$ref":"#/components/schemas/ChatReasoningSummaryVerbosityEnum"}},"type":"object"},"reasoning_effort":{"description":"Желаемая глубина рассуждения модели.","enum":["max","xhigh","high","medium","low","minimal","none",null],"example":"medium","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"repetition_penalty":{"description":"Штраф за повторения в ответе.","example":1,"format":"double","type":["number","null"]},"response_format":{"description":"Требуемый формат результата.","discriminator":{"description":"Требуемый формат результата.","mapping":{"description":"Требуемый формат результата.","grammar":"#/components/schemas/ChatFormatGrammarConfig","json_object":"#/components/schemas/ChatFormatJsonObjectConfig","json_schema":"#/components/schemas/ChatFormatJsonSchemaConfig","python":"#/components/schemas/ChatFormatPythonConfig","text":"#/components/schemas/ChatFormatTextConfig"},"propertyName":"type"},"example":{"description":"Требуемый формат результата.","type":"json_object"},"oneOf":[{"$ref":"#/components/schemas/ChatFormatTextConfig","description":"Требуемый формат результата."},{"$ref":"#/components/schemas/ChatFormatJsonObjectConfig","description":"Требуемый формат результата."},{"$ref":"#/components/schemas/ChatFormatJsonSchemaConfig","description":"Требуемый формат результата."},{"$ref":"#/components/schemas/ChatFormatGrammarConfig","description":"Требуемый формат результата."},{"$ref":"#/components/schemas/ChatFormatPythonConfig","description":"Требуемый формат результата."}]},"route":{"$ref":"#/components/schemas/DeprecatedRoute","description":"Правило маршрутизации запроса."},"seed":{"description":"Начальное значение для воспроизводимой генерации.","example":42,"type":["integer","null"]},"service_tier":{"description":"Желаемый уровень обслуживания запроса.","enum":["auto","default","fast","flex","priority","scale",null],"example":"auto","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"session_id":{"maxLength":256,"type":"string"},"stop":{"anyOf":[{"description":"Последовательности, при которых генерация должна остановиться.","type":"string"},{"description":"Последовательности, при которых генерация должна остановиться.","items":{"description":"Последовательности, при которых генерация должна остановиться.","type":"string"},"maxItems":4,"type":"array"},{"description":"Последовательности, при которых генерация должна остановиться.","type":"null"}],"description":"Последовательности, при которых генерация должна остановиться.","example":["\n"]},"stop_server_tools_when":{"$ref":"#/components/schemas/StopServerToolsWhen"},"stream":{"default":false,"description":"Возвращать ответ постепенно в виде потока событий.","example":false,"type":"boolean"},"stream_options":{"$ref":"#/components/schemas/ChatStreamOptions","description":"Дополнительные настройки потокового ответа."},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","example":0.7,"format":"double","type":["number","null"]},"tool_choice":{"$ref":"#/components/schemas/ChatToolChoice","description":"Правило выбора инструмента моделью."},"tools":{"description":"Инструменты, которые модель может вызвать.","example":[{"description":"Инструменты, которые модель может вызвать.","function":{"name":"get_weather"},"type":"function"}],"items":{"$ref":"#/components/schemas/ChatFunctionTool","description":"Инструменты, которые модель может вызвать."},"type":"array"},"top_a":{"example":0,"format":"double","type":["number","null"]},"top_k":{"description":"Количество наиболее вероятных токенов для выборки.","example":40,"type":["integer","null"]},"top_logprobs":{"description":"Количество наиболее вероятных токенов с их логарифмами вероятностей.","example":5,"type":["integer","null"]},"top_p":{"description":"Порог вероятностной выборки токенов.","example":1,"format":"double","type":["number","null"]},"trace":{"$ref":"#/components/schemas/TraceConfig"},"user":{"description":"Идентификатор конечного пользователя.","example":"user-123","type":"string"},"web_search":{"default":false,"description":"Включить веб-поиск OpenRouter перед формированием ответа. Доступно для моделей OpenRouter; поисковые вызовы тарифицируются отдельно.","type":"boolean"},"web_search_max_results":{"default":3,"description":"Количество результатов веб-поиска.","maximum":10,"minimum":1,"type":"integer"}},"required":["messages"],"type":"object"},"ChatResult":{"example":{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"The capital of France is Paris.","role":"assistant"}}],"created":1677652288,"id":"chatcmpl-123","model":"openai/gpt-4","object":"chat.completion","system_fingerprint":"fp_44709d6fcb","usage":{"completion_tokens":15,"prompt_tokens":10,"total_tokens":25}},"properties":{"choices":{"items":{"$ref":"#/components/schemas/ChatChoice"},"type":"array"},"created":{"example":1677652288,"type":"integer"},"id":{"example":"chatcmpl-123","type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"openai/gpt-4","type":"string"},"object":{"enum":["chat.completion"],"type":"string"},"openrouter_metadata":{"$ref":"#/components/schemas/OpenRouterMetadata"},"service_tier":{"description":"Желаемый уровень обслуживания запроса.","example":"default","type":["string","null"]},"system_fingerprint":{"example":"fp_44709d6fcb","type":["string","null"]},"usage":{"$ref":"#/components/schemas/ChatUsage","description":"Сведения об использованных токенах и стоимости."}},"required":["id","choices","created","model","object","system_fingerprint"],"type":"object"},"ChatSearchModelsServerTool":{"example":{"parameters":{"max_results":5},"type":"openrouter:experimental__search_models"},"properties":{"parameters":{"$ref":"#/components/schemas/SearchModelsServerToolConfig"},"type":{"enum":["openrouter:experimental__search_models"],"type":"string"}},"required":["type"],"type":"object"},"ChatServerToolChoice":{"example":{"type":"openrouter:web_search"},"properties":{"type":{"example":"openrouter:web_search","type":"string"}},"required":["type"],"type":"object"},"ChatStreamChoice":{"example":{"delta":{"content":"Hello","role":"assistant"},"finish_reason":null,"index":0},"properties":{"delta":{"$ref":"#/components/schemas/ChatStreamDelta"},"finish_reason":{"$ref":"#/components/schemas/ChatFinishReasonEnum"},"index":{"description":"Номер результата в задаче генерации.","example":0,"type":"integer"},"logprobs":{"$ref":"#/components/schemas/ChatTokenLogprobs","description":"Возвращать логарифмы вероятностей токенов."}},"required":["delta","finish_reason","index"],"type":"object"},"ChatStreamChunk":{"example":{"choices":[{"delta":{"content":"Hello","role":"assistant"},"finish_reason":null,"index":0}],"created":1677652288,"id":"chatcmpl-123","model":"openai/gpt-4","object":"chat.completion.chunk"},"properties":{"choices":{"items":{"$ref":"#/components/schemas/ChatStreamChoice"},"type":"array"},"created":{"example":1677652288,"type":"integer"},"error":{"example":{"code":429,"message":"Rate limit exceeded","metadata":{"error_type":"rate_limit_exceeded"}},"properties":{"code":{"example":429,"format":"int32","type":"integer"},"message":{"example":"Rate limit exceeded","type":"string"},"metadata":{"description":"Дополнительные метаданные запроса.","properties":{"error_type":{"$ref":"#/components/schemas/ApiErrorType"},"provider_code":{"type":"string"}},"required":["error_type"],"type":"object"}},"required":["message","code"],"type":"object"},"id":{"example":"chatcmpl-123","type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"openai/gpt-4","type":"string"},"object":{"enum":["chat.completion.chunk"],"type":"string"},"openrouter_metadata":{"$ref":"#/components/schemas/OpenRouterMetadata"},"service_tier":{"description":"Желаемый уровень обслуживания запроса.","example":"default","type":["string","null"]},"system_fingerprint":{"example":"fp_44709d6fcb","type":"string"},"usage":{"$ref":"#/components/schemas/ChatUsage","description":"Сведения об использованных токенах и стоимости."}},"required":["id","choices","created","model","object"],"type":"object","x-speakeasy-entity":"ChatStreamChunk"},"ChatStreamDelta":{"example":{"content":"Hello","role":"assistant"},"properties":{"audio":{"allOf":[{"$ref":"#/components/schemas/ChatAudioOutput","description":"Настройки аудио."},{"description":"Настройки аудио."}],"description":"Настройки аудио."},"content":{"description":"Содержимое сообщения или входные данные.","example":"Hello","type":["string","null"]},"reasoning":{"description":"Настройки рассуждения модели.","example":"I need to","type":["string","null"]},"reasoning_details":{"$ref":"#/components/schemas/ChatStreamReasoningDetails"},"refusal":{"example":null,"type":["string","null"]},"role":{"description":"Роль участника диалога.","enum":["assistant"],"example":"assistant","type":"string"},"tool_calls":{"items":{"$ref":"#/components/schemas/ChatStreamToolCall"},"type":"array"}},"type":"object"},"ChatStreamOptions":{"example":{"include_usage":true},"properties":{"include_usage":{"deprecated":true,"example":true,"type":"boolean"}},"type":["object","null"]},"ChatStreamReasoningDetails":{"example":[{"text":"Let me think about this...","type":"reasoning.text"}],"items":{"$ref":"#/components/schemas/ReasoningDetailUnion"},"type":"array"},"ChatStreamToolCall":{"example":{"function":{"arguments":"{\"location\": \"...\"}","name":"get_weather"},"id":"call_abc123","index":0,"type":"function"},"properties":{"function":{"properties":{"arguments":{"example":"{\"location\": \"...\"}","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"get_weather","type":"string"}},"type":"object"},"id":{"example":"call_abc123","type":"string"},"index":{"description":"Номер результата в задаче генерации.","example":0,"type":"integer"},"type":{"enum":["function"],"example":"function","type":"string"}},"required":["index"],"type":"object"},"ChatStreamingResponse":{"example":{"data":{"choices":[{"delta":{"content":"Hello","role":"assistant"},"finish_reason":null,"index":0}],"created":1677652288,"id":"chatcmpl-123","model":"openai/gpt-4","object":"chat.completion.chunk"}},"properties":{"data":{"$ref":"#/components/schemas/ChatStreamChunk"}},"required":["data"],"type":"object"},"ChatSystemMessage":{"example":{"content":"You are a helpful assistant.","name":"Assistant Config","role":"system"},"properties":{"configuration_update":{"additionalProperties":false,"example":{"reasoning":{"effort":"low"}},"properties":{"reasoning":{"$ref":"#/components/schemas/ConfigurationUpdateReasoning","description":"Настройки рассуждения модели."}},"required":["reasoning"],"type":["object","null"]},"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","type":"string"},{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/ChatContentText","description":"Содержимое сообщения или входные данные."},"type":"array"}],"description":"Содержимое сообщения или входные данные.","example":"You are a helpful assistant."},"name":{"description":"Необязательное имя участника или инструмента.","example":"Assistant Config","type":"string"},"role":{"description":"Роль участника диалога.","enum":["system"],"type":"string"}},"required":["role","content"],"type":"object"},"ChatTokenLogprob":{"example":{"bytes":null,"logprob":-0.612345,"token":" Hello","top_logprobs":[{"bytes":null,"logprob":-0.612345,"token":" Hello"}]},"properties":{"bytes":{"items":{"type":"integer"},"type":["array","null"]},"logprob":{"format":"double","type":"number"},"token":{"type":"string"},"top_logprobs":{"description":"Количество наиболее вероятных токенов с их логарифмами вероятностей.","items":{"description":"Количество наиболее вероятных токенов с их логарифмами вероятностей.","properties":{"bytes":{"items":{"type":"integer"},"type":["array","null"]},"logprob":{"format":"double","type":"number"},"token":{"type":"string"}},"required":["token","logprob","bytes"],"type":"object"},"type":"array"}},"required":["token","logprob","bytes","top_logprobs"],"type":"object"},"ChatTokenLogprobs":{"example":{"content":[{"bytes":null,"logprob":-0.612345,"token":" Hello","top_logprobs":[]}],"refusal":null},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/ChatTokenLogprob","description":"Содержимое сообщения или входные данные."},"type":["array","null"]},"refusal":{"items":{"$ref":"#/components/schemas/ChatTokenLogprob"},"type":["array","null"]}},"required":["content"],"type":["object","null"]},"ChatToolCall":{"example":{"function":{"arguments":"{\"location\": \"Boston, MA\"}","name":"get_current_weather"},"id":"call_abc123","type":"function"},"properties":{"function":{"properties":{"arguments":{"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"}},"required":["name","arguments"],"type":"object"},"id":{"type":"string"},"type":{"enum":["function"],"type":"string"}},"required":["id","type","function"],"type":"object"},"ChatToolChoice":{"anyOf":[{"enum":["none"],"type":"string"},{"enum":["auto"],"type":"string"},{"enum":["required"],"type":"string"},{"$ref":"#/components/schemas/ChatNamedToolChoice"},{"$ref":"#/components/schemas/ChatServerToolChoice"}],"example":"auto"},"ChatToolMessage":{"example":{"content":"The weather in San Francisco is 72°F and sunny.","role":"tool","tool_call_id":"call_abc123"},"properties":{"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","type":"string"},{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/ChatContentItems","description":"Содержимое сообщения или входные данные."},"type":"array"}],"description":"Содержимое сообщения или входные данные.","example":"The weather in San Francisco is 72°F and sunny."},"role":{"description":"Роль участника диалога.","enum":["tool"],"type":"string"},"tool_call_id":{"example":"call_abc123","type":"string"}},"required":["role","content","tool_call_id"],"type":"object"},"ChatUsage":{"example":{"completion_tokens":15,"completion_tokens_details":{"reasoning_tokens":5},"cost":0.0012,"cost_details":{"upstream_inference_completions_cost":0.0004,"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.0008},"is_byok":false,"prompt_tokens":10,"prompt_tokens_details":{"cached_tokens":2},"server_tool_use_details":{"tool_calls_executed":2,"tool_calls_requested":2},"total_tokens":25},"properties":{"completion_tokens":{"type":"integer"},"completion_tokens_details":{"properties":{"accepted_prediction_tokens":{"type":["integer","null"]},"audio_tokens":{"type":["integer","null"]},"reasoning_tokens":{"type":["integer","null"]},"rejected_prediction_tokens":{"type":["integer","null"]}},"type":["object","null"]},"cost":{"format":"double","type":["number","null"]},"cost_details":{"$ref":"#/components/schemas/CostDetails"},"is_byok":{"type":"boolean"},"prompt_tokens":{"type":"integer"},"prompt_tokens_details":{"properties":{"audio_tokens":{"type":"integer"},"cache_write_tokens":{"type":"integer"},"cached_tokens":{"type":"integer"},"video_tokens":{"type":"integer"}},"type":["object","null"]},"server_tool_use_details":{"$ref":"#/components/schemas/ServerToolUseDetails"},"total_tokens":{"type":"integer"}},"required":["completion_tokens","prompt_tokens","total_tokens"],"type":"object"},"ChatUserMessage":{"example":{"content":"What is the capital of France?","role":"user"},"properties":{"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","type":"string"},{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/ChatContentItems","description":"Содержимое сообщения или входные данные."},"type":"array"}],"description":"Содержимое сообщения или входные данные.","example":"What is the capital of France?"},"name":{"description":"Необязательное имя участника или инструмента.","example":"User","type":"string"},"role":{"description":"Роль участника диалога.","enum":["user"],"type":"string"}},"required":["role","content"],"type":"object"},"ChatWebSearchShorthand":{"example":{"type":"web_search_preview"},"properties":{"allowed_domains":{"items":{"type":"string"},"type":"array"},"engine":{"$ref":"#/components/schemas/WebSearchEngineEnum"},"excluded_domains":{"items":{"type":"string"},"type":"array"},"max_characters":{"example":2000,"type":"integer"},"max_results":{"example":5,"type":"integer"},"max_total_results":{"example":50,"type":"integer"},"max_uses":{"example":3,"type":"integer"},"mode":{"$ref":"#/components/schemas/WebSearchMode"},"parameters":{"$ref":"#/components/schemas/WebSearchConfig"},"search_context_size":{"$ref":"#/components/schemas/SearchQualityLevel"},"type":{"enum":["web_search","web_search_preview","web_search_preview_2025_03_11","web_search_2025_08_26"],"type":"string","x-speakeasy-unknown-values":"allow"},"user_location":{"$ref":"#/components/schemas/WebSearchUserLocationServerTool"}},"required":["type"],"type":"object"},"CodeInterpreterCallCodeDeltaEvent":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesCodeInterpreterCallCodeDelta"},{"properties":{},"type":"object"}],"example":{"delta":"print(\"hello\")","item_id":"ci-abc123","output_index":0,"sequence_number":3,"type":"response.code_interpreter_call_code.delta"}},"CodeInterpreterCallCodeDoneEvent":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesCodeInterpreterCallCodeDone"},{"properties":{},"type":"object"}],"example":{"code":"print(\"hello\")","item_id":"ci-abc123","output_index":0,"sequence_number":8,"type":"response.code_interpreter_call_code.done"}},"CodeInterpreterCallCompletedEvent":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesCodeInterpreterCallCompleted"},{"properties":{},"type":"object"}],"example":{"item_id":"ci-abc123","output_index":0,"sequence_number":10,"type":"response.code_interpreter_call.completed"}},"CodeInterpreterCallInProgressEvent":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesCodeInterpreterCallInProgress"},{"properties":{},"type":"object"}],"example":{"item_id":"ci-abc123","output_index":0,"sequence_number":2,"type":"response.code_interpreter_call.in_progress"}},"CodeInterpreterCallInterpretingEvent":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesCodeInterpreterCallInterpreting"},{"properties":{},"type":"object"}],"example":{"item_id":"ci-abc123","output_index":0,"sequence_number":9,"type":"response.code_interpreter_call.interpreting"}},"CodeInterpreterCallItem":{"allOf":[{"$ref":"#/components/schemas/OutputItemCodeInterpreterCall"},{"additionalProperties":{},"properties":{},"type":"object"}],"example":{"code":"print(\"Hello, World!\")","container_id":"container-xyz789","id":"code-abc123","outputs":[{"logs":"Hello, World!","type":"logs"}],"status":"completed","type":"code_interpreter_call"}},"CodeInterpreterFileOutput":{"example":{"download_url":"https://example.com/download/file_abc123","filename":"summary.txt","id":"file_abc123","type":"file"},"properties":{"download_url":{"type":"string"},"error_code":{"type":["string","null"]},"expires_at":{"type":"string"},"filename":{"type":"string"},"id":{"type":"string"},"media_type":{"type":"string"},"sha256":{"type":"string"},"size_bytes":{"type":"integer"},"status":{"type":"string"},"type":{"enum":["file"],"type":"string"}},"required":["type"],"type":"object"},"CodeInterpreterImageOutput":{"example":{"type":"image","url":"https://example.com/plot.png"},"properties":{"type":{"enum":["image"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["type","url"],"type":"object"},"CodeInterpreterLogsOutput":{"example":{"logs":"hello\n","type":"logs"},"properties":{"logs":{"type":"string"},"type":{"enum":["logs"],"type":"string"}},"required":["type","logs"],"type":"object"},"CodeInterpreterServerTool":{"example":{"container":"auto","type":"code_interpreter"},"properties":{"container":{"anyOf":[{"type":"string"},{"properties":{"file_ids":{"items":{"type":"string"},"type":"array"},"memory_limit":{"enum":["1g","4g","16g","64g",null],"type":["string","null"],"x-speakeasy-unknown-values":"allow"},"type":{"enum":["auto"],"type":"string"}},"required":["type"],"type":"object"}]},"type":{"enum":["code_interpreter"],"type":"string"}},"required":["type","container"],"type":"object"},"CodexLocalShellTool":{"example":{"type":"local_shell"},"properties":{"type":{"enum":["local_shell"],"type":"string"}},"required":["type"],"type":"object"},"CompactionItem":{"additionalProperties":{},"example":{"encrypted_content":"enc_abc123...","type":"compaction"},"properties":{"encrypted_content":{"type":"string"},"id":{"type":["string","null"]},"type":{"enum":["compaction"],"type":"string"}},"required":["type","encrypted_content"],"type":"object"},"CompletedEvent":{"example":{"response":{"completed_at":null,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[{"content":[{"annotations":[],"text":"Hello! How can I help you?","type":"output_text"}],"id":"item-1","role":"assistant","status":"completed","type":"message"}],"parallel_tool_calls":true,"presence_penalty":null,"status":"completed","temperature":null,"tool_choice":"auto","tools":[],"top_p":null},"sequence_number":10,"type":"response.completed"},"properties":{"response":{"$ref":"#/components/schemas/BaseResponsesResult"},"sequence_number":{"type":"integer"},"type":{"enum":["response.completed"],"type":"string"}},"required":["type","response","sequence_number"],"type":"object"},"CompoundFilter":{"example":{"filters":[{"key":"author","type":"eq","value":"Alice"}],"type":"and"},"properties":{"filters":{"items":{"additionalProperties":{},"type":"object"},"type":"array"},"type":{"enum":["and","or"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["type","filters"],"type":"object"},"ComputerUseServerTool":{"example":{"display_height":768,"display_width":1024,"environment":"linux","type":"computer_use_preview"},"properties":{"display_height":{"type":"integer"},"display_width":{"type":"integer"},"environment":{"enum":["windows","mac","linux","ubuntu","browser"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["computer_use_preview"],"type":"string"}},"required":["type","display_height","display_width","environment"],"type":"object"},"ConfigurationUpdateItem":{"example":{"reasoning":{"effort":"low"},"type":"configuration_update"},"properties":{"id":{"type":["string","null"]},"reasoning":{"$ref":"#/components/schemas/ConfigurationUpdateReasoning","description":"Настройки рассуждения модели."},"type":{"enum":["configuration_update"],"type":"string"}},"required":["type","reasoning"],"type":"object"},"ConfigurationUpdateReasoning":{"additionalProperties":false,"example":{"effort":"low"},"properties":{"effort":{"enum":["max","xhigh","high","medium","low","minimal","none"],"example":"low","type":"string","x-speakeasy-unknown-values":"allow"}},"required":["effort"],"type":"object"},"ConflictResponse":{"example":{"error":{"code":409,"message":"Resource conflict. Please try again later."}},"properties":{"error":{"$ref":"#/components/schemas/ConflictResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"ConflictResponseErrorData":{"example":{"code":409,"message":"Resource conflict. Please try again later."},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"ContainerAutoEnvironment":{"example":{"type":"container_auto"},"properties":{"file_ids":{"$ref":"#/components/schemas/ContainerFileIds"},"network_policy":{"$ref":"#/components/schemas/ContainerNetworkPolicy"},"type":{"enum":["container_auto"],"type":"string"}},"required":["type"],"type":"object"},"ContainerFile":{"properties":{"bytes":{"example":123,"type":"integer"},"container_id":{"example":"sess_abc123","type":"string"},"created_at":{"example":1755640000,"type":"integer"},"id":{"example":"cfile_b3V0L3JlcG9ydC5jc3Y","type":"string"},"object":{"enum":["container.file"],"example":"container.file","type":"string"},"path":{"example":"out/report.csv","type":"string"},"source":{"enum":["assistant"],"example":"assistant","type":"string"}},"required":["id","object","container_id","bytes","created_at","path","source"],"type":"object"},"ContainerFileIds":{"example":["or_file_011CNha8iCJcU1wXNR6q4V8w"],"items":{"minLength":1,"type":"string"},"maxItems":20,"type":"array"},"ContainerFileListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ContainerFile"},"type":"array"},"first_id":{"example":"cfile_b3V0L3JlcG9ydC5jc3Y","type":["string","null"]},"has_more":{"example":false,"type":"boolean"},"last_id":{"example":"cfile_b3V0L3JlcG9ydC5jc3Y","type":["string","null"]},"object":{"enum":["list"],"example":"list","type":"string"}},"required":["object","data","first_id","last_id","has_more"],"type":"object"},"ContainerNetworkPolicy":{"anyOf":[{"properties":{"type":{"enum":["disabled"],"type":"string"}},"required":["type"],"type":"object"},{"properties":{"allowed_domains":{"example":["pypi.org","files.pythonhosted.org"],"items":{"maxLength":253,"minLength":1,"pattern":"^[a-z0-9*]([a-z0-9*-]{0,61}[a-z0-9*])?(\\.[a-z0-9*]([a-z0-9*-]{0,61}[a-z0-9*])?)*$","type":"string"},"maxItems":50,"minItems":1,"type":"array"},"type":{"enum":["allowlist"],"type":"string"}},"required":["type","allowed_domains"],"type":"object"}],"example":{"allowed_domains":["pypi.org","files.pythonhosted.org"],"type":"allowlist"}},"ContainerReferenceEnvironment":{"example":{"container_id":"sess_abc123","type":"container_reference"},"properties":{"container_id":{"example":"sess_abc123","maxLength":40,"minLength":1,"pattern":"^[\\w-]+$","type":"string"},"file_ids":{"$ref":"#/components/schemas/ContainerFileIds"},"network_policy":{"$ref":"#/components/schemas/ContainerNetworkPolicy"},"type":{"enum":["container_reference"],"type":"string"}},"required":["type","container_id"],"type":"object"},"ContentFilterAction":{"enum":["redact","block","flag"],"example":"block","type":"string","x-speakeasy-unknown-values":"allow"},"ContentFilterBuiltinAction":{"enum":["redact","block","flag"],"example":"block","type":"string","x-speakeasy-unknown-values":"allow"},"ContentFilterBuiltinEntry":{"example":{"action":"redact","label":"[EMAIL]","slug":"email"},"properties":{"action":{"$ref":"#/components/schemas/ContentFilterBuiltinAction"},"label":{"example":"[EMAIL]","maxLength":100,"type":"string"},"scan_scope":{"$ref":"#/components/schemas/PromptInjectionScanScope"},"slug":{"$ref":"#/components/schemas/ContentFilterBuiltinSlug","description":"Короткий идентификатор модели."}},"required":["slug","action"],"type":"object"},"ContentFilterBuiltinEntryInput":{"example":{"action":"redact","slug":"email"},"properties":{"action":{"$ref":"#/components/schemas/ContentFilterBuiltinAction"},"label":{"deprecated":true,"maxLength":100,"type":"string"},"scan_scope":{"$ref":"#/components/schemas/PromptInjectionScanScope"},"slug":{"$ref":"#/components/schemas/ContentFilterBuiltinSlug","description":"Короткий идентификатор модели."}},"required":["slug","action"],"type":"object"},"ContentFilterBuiltinSlug":{"enum":["email","phone","ssn","credit-card","ip-address","secrets","person-name","address","regex-prompt-injection"],"example":"regex-prompt-injection","type":"string","x-speakeasy-unknown-values":"allow"},"ContentFilterEntry":{"example":{"action":"redact","label":"[API_KEY]","pattern":"\\b(sk-[a-zA-Z0-9]{48})\\b"},"properties":{"action":{"$ref":"#/components/schemas/ContentFilterAction"},"label":{"example":"[API_KEY]","maxLength":100,"type":["string","null"]},"pattern":{"example":"\\b(sk-[a-zA-Z0-9]{48})\\b","minLength":1,"type":"string"}},"required":["pattern","action"],"type":"object"},"ContentPartAddedEvent":{"allOf":[{"$ref":"#/components/schemas/BaseContentPartAddedEvent"},{"properties":{"part":{"anyOf":[{"$ref":"#/components/schemas/ResponseOutputText"},{"$ref":"#/components/schemas/ReasoningTextContent"},{"$ref":"#/components/schemas/OpenAIResponsesRefusalContent"}]}},"type":"object"}],"example":{"content_index":0,"item_id":"item-1","output_index":0,"part":{"annotations":[],"text":"","type":"output_text"},"sequence_number":3,"type":"response.content_part.added"}},"ContentPartAudio":{"example":{"audio_url":{"url":"https://example.com/audio.mp3"},"type":"audio_url"},"properties":{"audio_url":{"properties":{"url":{"description":"Адрес ресурса.","type":"string"}},"required":["url"],"type":"object"},"type":{"enum":["audio_url"],"type":"string"}},"required":["type","audio_url"],"type":"object"},"ContentPartDoneEvent":{"allOf":[{"$ref":"#/components/schemas/BaseContentPartDoneEvent"},{"properties":{"part":{"anyOf":[{"$ref":"#/components/schemas/ResponseOutputText"},{"$ref":"#/components/schemas/ReasoningTextContent"},{"$ref":"#/components/schemas/OpenAIResponsesRefusalContent"}]}},"type":"object"}],"example":{"content_index":0,"item_id":"item-1","output_index":0,"part":{"annotations":[],"text":"Hello! How can I help you?","type":"output_text"},"sequence_number":7,"type":"response.content_part.done"}},"ContentPartImage":{"example":{"image_url":{"url":"https://example.com/image.png"},"type":"image_url"},"properties":{"image_url":{"description":"Ссылка на изображение или объект с параметрами изображения.","properties":{"url":{"description":"Адрес ресурса.","type":"string"}},"required":["url"],"type":"object"},"type":{"enum":["image_url"],"type":"string"}},"required":["type","image_url"],"type":"object"},"ContentPartInputAudio":{"example":{"input_audio":{"data":"data:audio/wav;base64,UklGRiQAAABXQVZFZm10IBAAAAA...","format":"wav"},"type":"input_audio"},"properties":{"input_audio":{"$ref":"#/components/schemas/MultimodalMedia"},"type":{"enum":["input_audio"],"type":"string"}},"required":["type","input_audio"],"type":"object"},"ContentPartInputFile":{"example":{"input_file":{"data":"data:application/pdf;base64,JVBERi0xLjQKJeLjz9MKMyAw...","format":"pdf"},"type":"input_file"},"properties":{"input_file":{"$ref":"#/components/schemas/MultimodalMedia"},"type":{"enum":["input_file"],"type":"string"}},"required":["type","input_file"],"type":"object"},"ContentPartInputVideo":{"example":{"input_video":{"data":"data:video/mp4;base64,AAAAGGZ0eXBtcDQyAAAAAGlzb21tcDQy...","format":"mp4"},"type":"input_video"},"properties":{"input_video":{"$ref":"#/components/schemas/MultimodalMedia"},"type":{"enum":["input_video"],"type":"string"}},"required":["type","input_video"],"type":"object"},"ContentPartVideo":{"example":{"type":"video_url","video_url":{"url":"https://example.com/clip.mp4"}},"properties":{"type":{"enum":["video_url"],"type":"string"},"video_url":{"properties":{"url":{"description":"Адрес ресурса.","type":"string"}},"required":["url"],"type":"object"}},"required":["type","video_url"],"type":"object"},"ContextCompactionItem":{"additionalProperties":{},"example":{"encrypted_content":"enc_abc123...","type":"context_compaction"},"properties":{"encrypted_content":{"type":["string","null"]},"id":{"type":["string","null"]},"type":{"enum":["context_compaction"],"type":"string"}},"required":["type"],"type":"object"},"ContextCompressionEngine":{"enum":["middle-out"],"example":"middle-out","type":"string"},"ContextCompressionPlugin":{"example":{"enabled":true,"engine":"middle-out","id":"context-compression"},"properties":{"enabled":{"type":"boolean"},"engine":{"$ref":"#/components/schemas/ContextCompressionEngine"},"id":{"enum":["context-compression"],"type":"string"}},"required":["id"],"type":"object"},"CostDetails":{"example":{"upstream_inference_completions_cost":0.0004,"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.0008},"properties":{"server_tool_cost":{"format":"double","type":["number","null"]},"upstream_inference_completions_cost":{"format":"double","type":"number"},"upstream_inference_cost":{"format":"double","type":["number","null"]},"upstream_inference_prompt_cost":{"format":"double","type":"number"}},"required":["upstream_inference_prompt_cost","upstream_inference_completions_cost"],"type":["object","null"]},"CreateBYOKKeyRequest":{"example":{"key":"sk-proj-abc123...","name":"Production OpenAI Key","provider":"openai"},"properties":{"allowed_api_key_hashes":{"example":["f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943"],"items":{"pattern":"^[a-f0-9]{64}$","type":"string"},"maxItems":100,"minItems":1,"type":["array","null"]},"allowed_models":{"example":null,"items":{"type":"string"},"maxItems":100,"type":["array","null"]},"allowed_user_ids":{"example":null,"items":{"type":"string"},"maxItems":100,"type":["array","null"]},"disabled":{"example":false,"type":"boolean"},"is_byok_only":{"example":false,"type":"boolean"},"is_fallback":{"example":false,"type":"boolean"},"is_required":{"example":false,"type":"boolean"},"key":{"example":"sk-proj-abc123...","minLength":1,"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production OpenAI Key","maxLength":255,"type":["string","null"]},"provider":{"$ref":"#/components/schemas/BYOKProviderSlug","description":"Настройки выбора и маршрутизации провайдера."},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["provider","key"],"type":"object"},"CreateBYOKKeyResponse":{"example":{"data":{"allowed_api_key_hashes":null,"allowed_models":null,"allowed_user_ids":null,"created_at":"2025-08-24T10:30:00Z","disabled":false,"id":"11111111-2222-3333-4444-555555555555","is_byok_only":false,"is_fallback":false,"is_required":false,"label":"sk-...AbCd","name":"Production OpenAI Key","provider":"openai","sort_order":0,"workspace_id":"550e8400-e29b-41d4-a716-446655440000"}},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/BYOKKey"},{}]}},"required":["data"],"type":"object"},"CreateGuardrailRequest":{"example":{"allowed_models":null,"allowed_providers":["openai","anthropic","deepseek"],"content_filter_builtins":[{"action":"block","slug":"regex-prompt-injection"}],"content_filters":null,"enforce_zdr_anthropic":true,"enforce_zdr_google":false,"enforce_zdr_openai":true,"enforce_zdr_other":false,"enforce_zdr_xai":false,"ignored_models":null,"ignored_providers":null,"limit_usd":50,"name":"My New Guardrail","reset_interval":"monthly"},"properties":{"allowed_data_regions":{"example":["europe"],"items":{"$ref":"#/components/schemas/GuardrailDataRegion"},"minItems":1,"type":["array","null"]},"allowed_models":{"example":["openai/gpt-5.2","anthropic/claude-4.5-opus-20251124","deepseek/deepseek-r1-0528:free"],"items":{"type":"string"},"minItems":1,"type":["array","null"]},"allowed_providers":{"example":["openai","anthropic","deepseek"],"items":{"type":"string"},"minItems":1,"type":["array","null"]},"content_filter_builtins":{"example":[{"action":"block","slug":"regex-prompt-injection"}],"items":{"$ref":"#/components/schemas/ContentFilterBuiltinEntryInput"},"type":["array","null"]},"content_filters":{"example":[{"action":"redact","label":"[API_KEY]","pattern":"\\b(sk-[a-zA-Z0-9]{48})\\b"}],"items":{"$ref":"#/components/schemas/ContentFilterEntry"},"type":["array","null"]},"description":{"example":"A guardrail for limiting API usage","maxLength":1000,"type":["string","null"]},"enable_free_model_publication":{"example":false,"type":["boolean","null"]},"enable_free_model_training":{"example":true,"type":["boolean","null"]},"enable_paid_model_training":{"example":true,"type":["boolean","null"]},"enforce_zdr":{"deprecated":true,"example":false,"type":["boolean","null"]},"enforce_zdr_anthropic":{"example":false,"type":["boolean","null"]},"enforce_zdr_google":{"example":false,"type":["boolean","null"]},"enforce_zdr_openai":{"example":false,"type":["boolean","null"]},"enforce_zdr_other":{"example":false,"type":["boolean","null"]},"enforce_zdr_xai":{"example":false,"type":["boolean","null"]},"ignored_models":{"example":["openai/gpt-4o-mini"],"items":{"type":"string"},"minItems":1,"type":["array","null"]},"ignored_providers":{"example":["azure"],"items":{"type":"string"},"minItems":1,"type":["array","null"]},"include_byok_in_budgets":{"example":false,"type":"boolean"},"limit_usd":{"example":50,"format":"double","type":["number","null"]},"name":{"description":"Необязательное имя участника или инструмента.","example":"My New Guardrail","maxLength":200,"minLength":1,"type":"string"},"reset_interval":{"$ref":"#/components/schemas/GuardrailInterval"},"workspace_id":{"example":"0df9e665-d932-5740-b2c7-b52af166bc11","format":"uuid","type":"string"}},"required":["name"],"type":"object"},"CreateGuardrailResponse":{"example":{"data":{"allowed_models":null,"allowed_providers":["openai","anthropic","google"],"content_filter_builtins":[{"action":"redact","label":"[EMAIL]","slug":"email"}],"content_filters":null,"created_at":"2025-08-24T10:30:00Z","enable_free_model_publication":false,"enable_free_model_training":true,"enable_paid_model_training":true,"enforce_zdr":null,"enforce_zdr_anthropic":true,"enforce_zdr_google":false,"enforce_zdr_openai":true,"enforce_zdr_other":false,"enforce_zdr_xai":false,"id":"550e8400-e29b-41d4-a716-446655440000","ignored_models":null,"ignored_providers":null,"include_byok_in_budgets":false,"limit_usd":50,"name":"My New Guardrail","reset_interval":"monthly","updated_at":null,"workspace_id":"0df9e665-d932-5740-b2c7-b52af166bc11"}},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/Guardrail"},{}]}},"required":["data"],"type":"object"},"CreateObservabilityDestinationRequest":{"example":{"config":{"baseUrl":"https://us.cloud.langfuse.com","publicKey":"pk-l...EfGh","secretKey":"sk-l...AbCd"},"name":"Production Langfuse","type":"langfuse"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"minItems":1,"type":["array","null"]},"broadcast_generation_cost":{"default":false,"example":false,"type":"boolean"},"broadcast_generation_identity":{"default":false,"example":false,"type":"boolean"},"broadcast_generation_request_context":{"default":false,"example":false,"type":"boolean"},"config":{"additionalProperties":{},"example":{"baseUrl":"https://us.cloud.langfuse.com","publicKey":"pk-l...EfGh","secretKey":"sk-l...AbCd"},"type":"object"},"enabled":{"default":true,"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfigNullable"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":"string"},"privacy_mode":{"default":false,"example":false,"type":"boolean"},"regions":{"default":["global"],"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegionInput"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["arize","braintrust","clickhouse","datadog","grafana","langfuse","langsmith","newrelic","opik","otel-collector","posthog","ramp","s3","sentry","snowflake","weave","webhook"],"example":"langfuse","type":"string","x-speakeasy-unknown-values":"allow"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["type","name","config"],"type":"object"},"CreateObservabilityDestinationResponse":{"example":{"data":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"baseUrl":"https://us.cloud.langfuse.com","publicKey":"pk-l...EfGh","secretKey":"sk-l...AbCd"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Langfuse","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"langfuse","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"}},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/ObservabilityDestination"},{}]}},"required":["data"],"type":"object"},"CreatePresetFromInferenceResponse":{"example":{"data":{"created_at":"2026-04-20T10:00:00Z","creator_user_id":"user_2dHFtVWx2n56w6HkM0000000000","description":null,"designated_version":{"config":{"model":"openai/gpt-4o","temperature":0.7},"created_at":"2026-04-20T10:00:00Z","creator_id":"user_2dHFtVWx2n56w6HkM0000000000","id":"550e8400-e29b-41d4-a716-446655440000","preset_id":"650e8400-e29b-41d4-a716-446655440001","system_prompt":"You are a helpful assistant.","updated_at":"2026-04-20T10:00:00Z","version":1},"designated_version_id":"550e8400-e29b-41d4-a716-446655440000","id":"650e8400-e29b-41d4-a716-446655440001","name":"my-preset","slug":"my-preset","status":"active","status_updated_at":null,"updated_at":"2026-04-20T10:00:00Z","workspace_id":"750e8400-e29b-41d4-a716-446655440002"}},"properties":{"data":{"$ref":"#/components/schemas/PresetWithDesignatedVersion"}},"required":["data"],"type":"object"},"CreateScimGroupMappingRequest":{"properties":{"role":{"description":"Роль участника диалога.","enum":["admin","member"],"type":"string","x-speakeasy-unknown-values":"allow"},"scim_group_id":{"format":"uuid","type":"string"},"workspace_id":{"format":"uuid","type":"string"}},"required":["scim_group_id","workspace_id","role"],"type":"object"},"CreateScimGroupMappingResponse":{"properties":{"data":{"$ref":"#/components/schemas/ScimGroupMapping"}},"required":["data"],"type":"object"},"CreateScimSyncJobResponse":{"properties":{"data":{"$ref":"#/components/schemas/ScimSyncJob"}},"required":["data"],"type":"object"},"CreateWorkspaceRequest":{"example":{"default_image_model":"openai/dall-e-3","default_provider_sort":"price","default_text_model":"openai/gpt-4o","name":"Production","slug":"production"},"properties":{"default_image_model":{"example":"openai/dall-e-3","type":["string","null"]},"default_provider_sort":{"example":"price","type":["string","null"]},"default_text_model":{"example":"openai/gpt-4o","type":["string","null"]},"description":{"example":"Production environment workspace","maxLength":500,"type":["string","null"]},"io_logging_api_key_ids":{"example":null,"items":{"type":"integer"},"type":["array","null"]},"io_logging_sampling_rate":{"example":1,"format":"double","type":"number"},"is_data_discount_logging_enabled":{"example":true,"type":"boolean"},"is_observability_broadcast_enabled":{"example":false,"type":"boolean"},"is_observability_io_logging_enabled":{"example":false,"type":"boolean"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production","maxLength":100,"minLength":1,"type":"string"},"slug":{"description":"Короткий идентификатор модели.","example":"production","maxLength":50,"minLength":1,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"}},"required":["name","slug"],"type":"object"},"CreateWorkspaceResponse":{"example":{"data":{"created_at":"2025-08-24T10:30:00Z","created_by":"user_abc123","default_guardrail_id":"595d5849-7e86-51fd-a7c0-705c34e4afff","default_image_model":"openai/dall-e-3","default_provider_sort":"price","default_text_model":"openai/gpt-4o","id":"550e8400-e29b-41d4-a716-446655440000","include_byok_in_budgets":false,"io_logging_api_key_ids":null,"io_logging_sampling_rate":1,"is_data_discount_logging_enabled":true,"is_observability_broadcast_enabled":false,"is_observability_io_logging_enabled":false,"name":"Production","slug":"production","updated_at":null}},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/Workspace"},{}]}},"required":["data"],"type":"object"},"CreatedEvent":{"example":{"response":{"completed_at":null,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":null,"status":"in_progress","temperature":null,"tool_choice":"auto","tools":[],"top_p":null},"sequence_number":0,"type":"response.created"},"properties":{"response":{"$ref":"#/components/schemas/BaseResponsesResult"},"sequence_number":{"type":"integer"},"type":{"enum":["response.created"],"type":"string"}},"required":["type","response","sequence_number"],"type":"object"},"CustomTool":{"example":{"name":"my_tool","type":"custom"},"properties":{"description":{"type":"string"},"format":{"anyOf":[{"properties":{"type":{"enum":["text"],"type":"string"}},"required":["type"],"type":"object"},{"properties":{"definition":{"type":"string"},"syntax":{"enum":["lark","regex"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["grammar"],"type":"string"}},"required":["type","definition","syntax"],"type":"object"}]},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"type":{"enum":["custom"],"type":"string"}},"required":["type","name"],"type":"object"},"CustomToolCallInputDeltaEvent":{"allOf":[{"$ref":"#/components/schemas/BaseCustomToolCallInputDeltaEvent"},{"properties":{},"type":"object"}],"example":{"delta":"*** Begin Patch","item_id":"item-1","output_index":0,"sequence_number":4,"type":"response.custom_tool_call_input.delta"}},"CustomToolCallInputDoneEvent":{"allOf":[{"$ref":"#/components/schemas/BaseCustomToolCallInputDoneEvent"},{"properties":{},"type":"object"}],"example":{"input":"*** Begin Patch\n*** End Patch","item_id":"item-1","output_index":0,"sequence_number":6,"type":"response.custom_tool_call_input.done"}},"CustomToolCallItem":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponseCustomToolCall"},{"properties":{"status":{"$ref":"#/components/schemas/ToolCallStatus"}},"type":"object"}],"example":{"call_id":"call-abc123","id":"ctc-abc123","input":"*** Begin Patch\n*** End Patch","name":"apply_patch","type":"custom_tool_call"}},"CustomToolCallOutputItem":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponseCustomToolCallOutput"},{"properties":{"output":{"anyOf":[{"type":"string"},{"items":{"oneOf":[{"$ref":"#/components/schemas/InputText"},{"allOf":[{"$ref":"#/components/schemas/InputImage"},{"properties":{},"type":"object"}],"example":{"detail":"auto","image_url":"https://example.com/image.jpg","type":"input_image"}},{"$ref":"#/components/schemas/InputFile"}]},"type":"array"}]}},"type":"object"}],"example":{"call_id":"call-abc123","id":"ctco-abc123","output":"patch applied successfully","type":"custom_tool_call_output"}},"DABenchmarkEntry":{"example":{"arena":"models","category":"website","elo":1385.2,"rank":5,"win_rate":62.5},"properties":{"arena":{"example":"models","type":"string"},"category":{"example":"website","type":"string"},"elo":{"example":1385.2,"format":"double","type":"number"},"rank":{"example":5,"type":"integer"},"win_rate":{"example":62.5,"format":"double","type":"number"}},"required":["arena","category","elo","win_rate","rank"],"type":"object"},"DatetimeServerTool":{"example":{"parameters":{"timezone":"America/New_York"},"type":"openrouter:datetime"},"properties":{"parameters":{"$ref":"#/components/schemas/DatetimeServerToolConfig"},"type":{"enum":["openrouter:datetime"],"type":"string"}},"required":["type"],"type":"object"},"DatetimeServerToolConfig":{"example":{"timezone":"America/New_York"},"properties":{"timezone":{"example":"America/New_York","type":"string"}},"type":"object"},"DebugEvent":{"example":{"debug":{"echo_upstream_body":{"messages":[],"model":"anthropic/claude-sonnet-4"}},"sequence_number":1,"type":"response.debug"},"properties":{"debug":{"properties":{"echo_upstream_body":{"additionalProperties":{},"type":"object"},"timings":{"properties":{"epoch_ms":{"type":"integer"},"event":{"enum":["adapter_request","upstream_headers_received","first_token_received","upstream_body_ended"],"type":"string","x-speakeasy-unknown-values":"allow"},"start_ms":{"type":"integer"}},"required":["start_ms","event","epoch_ms"],"type":"object"}},"type":"object"},"sequence_number":{"type":"integer"},"type":{"enum":["response.debug"],"type":"string"}},"required":["type","debug","sequence_number"],"type":"object"},"DefaultParameters":{"additionalProperties":false,"example":{"frequency_penalty":0,"presence_penalty":0,"repetition_penalty":1,"temperature":0.7,"top_k":0,"top_p":0.9},"properties":{"frequency_penalty":{"description":"Штраф за частое повторение токенов.","format":"double","nullable":true,"type":["number","null"]},"presence_penalty":{"description":"Штраф за повторное использование уже встречавшихся токенов.","format":"double","nullable":true,"type":["number","null"]},"repetition_penalty":{"description":"Штраф за повторения в ответе.","format":"double","nullable":true,"type":["number","null"]},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","format":"double","nullable":true,"type":["number","null"]},"top_k":{"description":"Количество наиболее вероятных токенов для выборки.","type":["integer","null"]},"top_p":{"description":"Порог вероятностной выборки токенов.","format":"double","nullable":true,"type":["number","null"]}},"type":["object","null"]},"DeleteBYOKKeyResponse":{"example":{"deleted":true},"properties":{"deleted":{"const":true,"example":true,"type":"boolean"}},"required":["deleted"],"type":"object"},"DeleteGuardrailResponse":{"example":{"deleted":true},"properties":{"deleted":{"const":true,"example":true,"type":"boolean"}},"required":["deleted"],"type":"object"},"DeleteObservabilityDestinationResponse":{"example":{"deleted":true},"properties":{"deleted":{"const":true,"type":"boolean"}},"required":["deleted"],"type":"object"},"DeleteScimGroupMappingResponse":{"properties":{"deleted":{"const":true,"type":"boolean"}},"required":["deleted"],"type":"object"},"DeleteWorkspaceBudgetResponse":{"example":{"deleted":true},"properties":{"deleted":{"const":true,"example":true,"type":"boolean"}},"required":["deleted"],"type":"object"},"DeleteWorkspaceResponse":{"example":{"deleted":true},"properties":{"deleted":{"const":true,"example":true,"type":"boolean"}},"required":["deleted"],"type":"object"},"DeprecatedRoute":{"deprecated":true,"enum":["fallback","sort",null],"example":"fallback","type":["string","null"],"x-fern-ignore":true,"x-speakeasy-deprecation-message":"Use providers.sort.partition instead.","x-speakeasy-ignore":true,"x-speakeasy-unknown-values":"allow"},"EasyInputMessage":{"example":{"content":"What is the weather today?","role":"user"},"properties":{"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","items":{"description":"Содержимое сообщения или входные данные.","oneOf":[{"$ref":"#/components/schemas/InputText","description":"Содержимое сообщения или входные данные."},{"allOf":[{"$ref":"#/components/schemas/InputImage","description":"Содержимое сообщения или входные данные."},{"description":"Содержимое сообщения или входные данные.","properties":{},"type":"object"}],"description":"Содержимое сообщения или входные данные.","example":{"description":"Содержимое сообщения или входные данные.","detail":"auto","image_url":"https://example.com/image.jpg","type":"input_image"}},{"$ref":"#/components/schemas/InputFile","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/InputAudio","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/InputVideo","description":"Содержимое сообщения или входные данные."}]},"type":"array"},{"description":"Содержимое сообщения или входные данные.","type":"string"},{"description":"Содержимое сообщения или входные данные.","type":"null"}],"description":"Содержимое сообщения или входные данные."},"phase":{"anyOf":[{"enum":["commentary"],"type":"string"},{"enum":["final_answer"],"type":"string"},{"type":"null"}],"example":"final_answer"},"role":{"anyOf":[{"description":"Роль участника диалога.","enum":["user"],"type":"string"},{"description":"Роль участника диалога.","enum":["system"],"type":"string"},{"description":"Роль участника диалога.","enum":["assistant"],"type":"string"},{"description":"Роль участника диалога.","enum":["developer"],"type":"string"}],"description":"Роль участника диалога."},"type":{"enum":["message"],"type":"string"}},"required":["role"],"type":"object"},"EdgeNetworkTimeoutResponse":{"example":{"error":{"code":524,"message":"Request timed out. Please try again later."}},"properties":{"error":{"$ref":"#/components/schemas/EdgeNetworkTimeoutResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"EdgeNetworkTimeoutResponseErrorData":{"example":{"code":524,"message":"Request timed out. Please try again later."},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"EndpointInfo":{"example":{"model":"openai/gpt-4o","provider":"OpenAI","selected":true},"properties":{"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"provider":{"description":"Настройки выбора и маршрутизации провайдера.","type":"string"},"selected":{"type":"boolean"}},"required":["provider","model","selected"],"type":"object"},"EndpointStatus":{"enum":[0,-1,-2,-3,-5,-10],"example":0,"type":"integer","x-speakeasy-unknown-values":"allow"},"EndpointsMetadata":{"example":{"available":[{"model":"openai/gpt-4o","provider":"OpenAI","selected":true}],"total":3},"properties":{"available":{"items":{"$ref":"#/components/schemas/EndpointInfo"},"type":"array"},"total":{"type":"integer"}},"required":["total","available"],"type":"object"},"EnumCapability":{"example":{"type":"enum","values":["1K","2K","4K"]},"properties":{"type":{"enum":["enum"],"type":"string"},"values":{"items":{"type":"string"},"type":"array"}},"required":["type","values"],"type":"object"},"ErrorEvent":{"allOf":[{"$ref":"#/components/schemas/BaseErrorEvent"},{"properties":{},"type":"object"}],"example":{"code":"rate_limit_exceeded","message":"Rate limit exceeded. Please try again later.","param":null,"sequence_number":2,"type":"error"}},"FailableToolCallStatus":{"enum":["in_progress","completed","incomplete","failed"],"example":"completed","type":"string","x-speakeasy-unknown-values":"allow"},"FailedEvent":{"example":{"response":{"completed_at":null,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":null,"status":"failed","temperature":null,"tool_choice":"auto","tools":[],"top_p":null},"sequence_number":3,"type":"response.failed"},"properties":{"response":{"$ref":"#/components/schemas/BaseResponsesResult"},"sequence_number":{"type":"integer"},"type":{"enum":["response.failed"],"type":"string"}},"required":["type","response","sequence_number"],"type":"object"},"FileCitation":{"example":{"file_id":"file-abc123","filename":"research_paper.pdf","index":0,"type":"file_citation"},"properties":{"file_id":{"type":"string"},"filename":{"type":"string"},"index":{"description":"Номер результата в задаче генерации.","type":"integer"},"type":{"enum":["file_citation"],"type":"string"}},"required":["type","file_id","filename","index"],"type":"object"},"FileDeleteResponse":{"discriminator":{"mapping":{"anthropic":"#/components/schemas/AnthropicFileDeleted","openai":"#/components/schemas/OpenAIFileDeleted","openrouter":"#/components/schemas/OpenRouterFileDeleted"},"propertyName":"_shape"},"example":{"_shape":"openrouter","id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file_deleted"},"oneOf":[{"$ref":"#/components/schemas/OpenRouterFileDeleted"},{"$ref":"#/components/schemas/OpenAIFileDeleted"},{"$ref":"#/components/schemas/AnthropicFileDeleted"}]},"FileListResponse":{"discriminator":{"mapping":{"anthropic":"#/components/schemas/AnthropicFileList","openai":"#/components/schemas/OpenAIFileList","openrouter":"#/components/schemas/OpenRouterFileList"},"propertyName":"_shape"},"example":{"_shape":"openrouter","cursor":null,"data":[],"first_id":null,"has_more":false,"last_id":null},"oneOf":[{"$ref":"#/components/schemas/OpenRouterFileList"},{"$ref":"#/components/schemas/OpenAIFileList"},{"$ref":"#/components/schemas/AnthropicFileList"}]},"FileParserPlugin":{"example":{"enabled":true,"id":"file-parser","pdf":{"engine":"cloudflare-ai"}},"properties":{"enabled":{"type":"boolean"},"id":{"enum":["file-parser"],"type":"string"},"pdf":{"$ref":"#/components/schemas/PDFParserOptions"}},"required":["id"],"type":"object"},"FilePath":{"example":{"file_id":"file-xyz789","index":0,"type":"file_path"},"properties":{"file_id":{"type":"string"},"index":{"description":"Номер результата в задаче генерации.","type":"integer"},"type":{"enum":["file_path"],"type":"string"}},"required":["type","file_id","index"],"type":"object"},"FileProvider":{"enum":["openai","anthropic"],"example":"openai","type":"string","x-speakeasy-unknown-values":"allow"},"FileResponse":{"discriminator":{"mapping":{"anthropic":"#/components/schemas/AnthropicFile","openai":"#/components/schemas/OpenAIFile","openrouter":"#/components/schemas/OpenRouterFile"},"propertyName":"_shape"},"example":{"_shape":"openrouter","created_at":"2025-01-01T00:00:00Z","downloadable":false,"filename":"document.pdf","id":"or_file_011CNha8iCJcU1wXNR6q4V8w","mime_type":"application/pdf","size_bytes":1024000,"type":"file"},"oneOf":[{"$ref":"#/components/schemas/OpenRouterFile"},{"$ref":"#/components/schemas/OpenAIFile"},{"$ref":"#/components/schemas/AnthropicFile"}]},"FileSearchServerTool":{"example":{"type":"file_search","vector_store_ids":["vs_abc123"]},"properties":{"filters":{"anyOf":[{"properties":{"key":{"type":"string"},"type":{"enum":["eq","ne","gt","gte","lt","lte"],"type":"string","x-speakeasy-unknown-values":"allow"},"value":{"anyOf":[{"type":"string"},{"format":"double","type":"number"},{"type":"boolean"},{"items":{"anyOf":[{"type":"string"},{"format":"double","type":"number"}]},"type":"array"}]}},"required":["key","type","value"],"type":"object"},{"$ref":"#/components/schemas/CompoundFilter"},{"type":"null"}]},"max_num_results":{"type":"integer"},"ranking_options":{"properties":{"ranker":{"enum":["auto","default-2024-11-15"],"type":"string","x-speakeasy-unknown-values":"allow"},"score_threshold":{"format":"double","type":"number"}},"type":"object"},"type":{"enum":["file_search"],"type":"string"},"vector_store_ids":{"items":{"type":"string"},"type":"array"}},"required":["type","vector_store_ids"],"type":"object"},"FilesServerTool":{"example":{"parameters":{},"type":"openrouter:files"},"properties":{"parameters":{"$ref":"#/components/schemas/FilesServerToolConfig"},"type":{"enum":["openrouter:files"],"type":"string"}},"required":["type"],"type":"object"},"FilesServerToolConfig":{"example":{},"properties":{},"type":"object"},"ForbiddenResponse":{"example":{"error":{"code":403,"message":"Only management keys can perform this operation"}},"properties":{"error":{"$ref":"#/components/schemas/ForbiddenResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"ForbiddenResponseErrorData":{"example":{"code":403,"message":"Only management keys can perform this operation"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"FormatJsonObjectConfig":{"example":{"type":"json_object"},"properties":{"type":{"enum":["json_object"],"type":"string"}},"required":["type"],"type":"object"},"FormatJsonSchemaConfig":{"example":{"name":"user_info","schema":{"properties":{"age":{"type":"number"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"}},"required":["name"],"type":"object"},"type":"json_schema"},"properties":{"description":{"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"schema":{"additionalProperties":{},"type":"object"},"strict":{"type":["boolean","null"]},"type":{"enum":["json_schema"],"type":"string"}},"required":["type","name","schema"],"type":"object"},"FormatTextConfig":{"example":{"type":"text"},"properties":{"type":{"enum":["text"],"type":"string"}},"required":["type"],"type":"object"},"Formats":{"anyOf":[{"$ref":"#/components/schemas/FormatTextConfig"},{"$ref":"#/components/schemas/FormatJsonObjectConfig"},{"$ref":"#/components/schemas/FormatJsonSchemaConfig"}],"example":{"type":"text"}},"FrameImage":{"allOf":[{"$ref":"#/components/schemas/ContentPartImage"},{"properties":{"frame_type":{"enum":["first_frame","last_frame"],"example":"first_frame","type":"string","x-speakeasy-unknown-values":"allow"}},"required":["frame_type"],"type":"object"}],"example":{"frame_type":"first_frame","image_url":{"url":"https://example.com/image.png"},"type":"image_url"}},"FunctionCallArgsDeltaEvent":{"allOf":[{"$ref":"#/components/schemas/BaseFunctionCallArgsDeltaEvent"},{"properties":{},"type":"object"}],"example":{"delta":"{\"city\": \"...\"}","item_id":"item-1","output_index":0,"sequence_number":4,"type":"response.function_call_arguments.delta"}},"FunctionCallArgsDoneEvent":{"allOf":[{"$ref":"#/components/schemas/BaseFunctionCallArgsDoneEvent"},{"properties":{},"type":"object"}],"example":{"arguments":"{\"city\": \"San Francisco\", \"units\": \"celsius\"}","item_id":"item-1","name":"get_weather","output_index":0,"sequence_number":6,"type":"response.function_call_arguments.done"}},"FunctionCallItem":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponseFunctionToolCall"},{"properties":{},"required":["id"],"type":"object"}],"example":{"arguments":"{\"location\":\"San Francisco\"}","call_id":"call-abc123","id":"call-abc123","name":"get_weather","status":"completed","type":"function_call"}},"FunctionCallOutputItem":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponseFunctionToolCallOutput"},{"properties":{"output":{"anyOf":[{"type":"string"},{"items":{"oneOf":[{"$ref":"#/components/schemas/InputText"},{"allOf":[{"$ref":"#/components/schemas/InputImage"},{"properties":{},"type":"object"}],"example":{"detail":"auto","image_url":"https://example.com/image.jpg","type":"input_image"}},{"$ref":"#/components/schemas/InputFile"}]},"type":"array"}]}},"type":"object"}],"example":{"call_id":"call-abc123","id":"output-abc123","output":"{\"temperature\":72,\"conditions\":\"sunny\"}","status":"completed","type":"function_call_output"}},"FunctionTool":{"example":{"name":"get_weather","parameters":{"properties":{"location":{"type":"string"},"unit":{"enum":["celsius","fahrenheit"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["location"],"type":"object"},"type":"function"},"properties":{"description":{"type":["string","null"]},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"parameters":{"additionalProperties":{},"type":["object","null"]},"strict":{"type":["boolean","null"]},"type":{"enum":["function"],"type":"string"}},"required":["type","name","parameters"],"type":"object"},"FusionAnalysisResult":{"example":{"blind_spots":["No model considered the impact on existing API consumers."],"consensus":["All panel models agree the request is asking for a concise summary."],"contradictions":[{"stances":[{"model":"openai/gpt-5","stance":"Favors an incremental rollout."},{"model":"anthropic/claude-sonnet-4.5","stance":"Favors a single coordinated migration."}],"topic":"Recommended approach"}],"partial_coverage":[{"models":["openai/gpt-5"],"point":"Only one model addressed the rollback strategy."}],"unique_insights":[{"insight":"Highlighted a backwards-compatibility risk the other models missed.","model":"anthropic/claude-sonnet-4.5"}]},"properties":{"blind_spots":{"items":{"type":"string"},"type":"array"},"consensus":{"items":{"type":"string"},"type":"array"},"contradictions":{"items":{"properties":{"stances":{"items":{"properties":{"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"stance":{"type":"string"}},"required":["model","stance"],"type":"object"},"type":"array"},"topic":{"type":"string"}},"required":["topic","stances"],"type":"object"},"type":"array"},"partial_coverage":{"items":{"properties":{"models":{"description":"Дополнительные модели для резервной маршрутизации.","items":{"description":"Дополнительные модели для резервной маршрутизации.","type":"string"},"type":"array"},"point":{"type":"string"}},"required":["models","point"],"type":"object"},"type":"array"},"unique_insights":{"items":{"properties":{"insight":{"type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"}},"required":["model","insight"],"type":"object"},"type":"array"}},"required":["consensus","contradictions","partial_coverage","unique_insights","blind_spots"],"type":"object"},"FusionCallAnalysisCompletedEvent":{"example":{"analysis":{"blind_spots":[],"consensus":[],"contradictions":[],"partial_coverage":[],"unique_insights":[]},"item_id":"st_fusion_abc","output_index":0,"sequence_number":40,"type":"response.fusion_call.analysis.completed"},"properties":{"analysis":{"$ref":"#/components/schemas/FusionAnalysisResult"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.fusion_call.analysis.completed"],"type":"string"}},"required":["type","analysis","output_index","item_id","sequence_number"],"type":"object"},"FusionCallAnalysisInProgressEvent":{"example":{"analyst_model":"openai/gpt-5","item_id":"st_fusion_abc","judge_model":"openai/gpt-5","output_index":0,"sequence_number":25,"type":"response.fusion_call.analysis.in_progress"},"properties":{"analyst_model":{"type":"string"},"item_id":{"type":"string"},"judge_model":{"deprecated":true,"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.fusion_call.analysis.in_progress"],"type":"string"}},"required":["type","analyst_model","judge_model","output_index","item_id","sequence_number"],"type":"object"},"FusionCallCompletedEvent":{"example":{"item_id":"st_fusion_abc","output_index":0,"sequence_number":41,"type":"response.fusion_call.completed"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.fusion_call.completed"],"type":"string"}},"required":["type","output_index","item_id","sequence_number"],"type":"object"},"FusionCallInProgressEvent":{"example":{"item_id":"st_fusion_abc","output_index":0,"sequence_number":3,"type":"response.fusion_call.in_progress"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.fusion_call.in_progress"],"type":"string"}},"required":["type","output_index","item_id","sequence_number"],"type":"object"},"FusionCallPanelAddedEvent":{"example":{"item_id":"st_fusion_abc","model":"openai/gpt-5","output_index":0,"sequence_number":4,"type":"response.fusion_call.panel.added"},"properties":{"item_id":{"type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.fusion_call.panel.added"],"type":"string"}},"required":["type","model","output_index","item_id","sequence_number"],"type":"object"},"FusionCallPanelCompletedEvent":{"example":{"content":"Full panel response text...","item_id":"st_fusion_abc","model":"openai/gpt-5","output_index":0,"sequence_number":20,"type":"response.fusion_call.panel.completed"},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","type":"string"},"item_id":{"type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.fusion_call.panel.completed"],"type":"string"}},"required":["type","model","content","output_index","item_id","sequence_number"],"type":"object"},"FusionCallPanelDeltaEvent":{"example":{"delta":"Carbon taxes","item_id":"st_fusion_abc","model":"openai/gpt-5","output_index":0,"sequence_number":5,"type":"response.fusion_call.panel.delta"},"properties":{"delta":{"type":"string"},"item_id":{"type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.fusion_call.panel.delta"],"type":"string"}},"required":["type","model","delta","output_index","item_id","sequence_number"],"type":"object"},"FusionCallPanelFailedEvent":{"example":{"error":"Upstream provider error","item_id":"st_fusion_abc","model":"openai/gpt-5","output_index":0,"sequence_number":18,"status_code":502,"type":"response.fusion_call.panel.failed"},"properties":{"error":{"type":"string"},"item_id":{"type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"status_code":{"type":"integer"},"type":{"enum":["response.fusion_call.panel.failed"],"type":"string"}},"required":["type","model","error","output_index","item_id","sequence_number"],"type":"object"},"FusionCallPanelReasoningDeltaEvent":{"example":{"delta":"Considering both sides","item_id":"st_fusion_abc","model":"openai/gpt-5","output_index":0,"sequence_number":6,"type":"response.fusion_call.panel.reasoning.delta"},"properties":{"delta":{"type":"string"},"item_id":{"type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.fusion_call.panel.reasoning.delta"],"type":"string"}},"required":["type","model","delta","output_index","item_id","sequence_number"],"type":"object"},"FusionPlugin":{"example":{"analysis_models":["~anthropic/claude-opus-latest","~openai/gpt-latest","~google/gemini-pro-latest"],"enabled":true,"id":"fusion","model":"~anthropic/claude-opus-latest"},"properties":{"analysis_models":{"example":["~anthropic/claude-opus-latest","~openai/gpt-latest","~google/gemini-pro-latest"],"items":{"type":"string"},"maxItems":8,"minItems":1,"type":"array"},"enabled":{"type":"boolean"},"id":{"enum":["fusion"],"type":"string"},"max_tool_calls":{"example":12,"maximum":16,"minimum":1,"type":"integer"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"~anthropic/claude-opus-latest","type":"string"},"preset":{"enum":["general-high","general-budget","general-fast"],"example":"general-high","type":"string","x-speakeasy-unknown-values":"allow"},"tools":{"description":"Инструменты, которые модель может вызвать.","example":[{"description":"Инструменты, которые модель может вызвать.","parameters":{"description":"Инструменты, которые модель может вызвать.","excluded_domains":["example.com"]},"type":"openrouter:web_search"},{"description":"Инструменты, которые модель может вызвать.","type":"openrouter:web_fetch"}],"items":{"description":"Инструменты, которые модель может вызвать.","properties":{"parameters":{"additionalProperties":{"anyOf":[{"type":"string"},{"format":"double","type":"number"},{"type":"boolean"},{"type":"null"},{"items":{"anyOf":[{"type":"string"},{"format":"double","type":"number"},{"type":"boolean"},{"type":"null"},{"type":"null"}]},"type":"array"},{"additionalProperties":{"anyOf":[{"type":"string"},{"format":"double","type":"number"},{"type":"boolean"},{"type":"null"},{"type":"null"}]},"type":"object"},{"type":"null"}]},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"},"maxItems":8,"type":"array"}},"required":["id"],"type":"object"},"FusionServerToolConfig":{"example":{"analysis_models":["~anthropic/claude-opus-latest","~openai/gpt-latest","~google/gemini-pro-latest"]},"properties":{"analysis_models":{"example":["~anthropic/claude-opus-latest","~openai/gpt-latest","~google/gemini-pro-latest"],"items":{"type":"string"},"maxItems":8,"minItems":1,"type":"array"},"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"max_completion_tokens":{"description":"Максимальное количество токенов завершения.","example":16384,"type":"integer"},"max_tool_calls":{"example":12,"maximum":16,"minimum":1,"type":"integer"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"~anthropic/claude-opus-latest","type":"string"},"reasoning":{"description":"Настройки рассуждения модели.","properties":{"effort":{"enum":["max","xhigh","high","medium","low","minimal","none"],"type":"string","x-speakeasy-unknown-values":"allow"},"max_tokens":{"description":"Максимальное количество токенов в ответе.","type":"integer"}},"type":"object"},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","example":0.7,"format":"double","type":"number"},"tools":{"description":"Инструменты, которые модель может вызвать.","example":[{"description":"Инструменты, которые модель может вызвать.","parameters":{"description":"Инструменты, которые модель может вызвать.","excluded_domains":["example.com"]},"type":"openrouter:web_search"},{"description":"Инструменты, которые модель может вызвать.","type":"openrouter:web_fetch"}],"items":{"description":"Инструменты, которые модель может вызвать.","properties":{"parameters":{"additionalProperties":{},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"},"maxItems":8,"type":"array"}},"type":"object"},"FusionServerTool_OpenRouter":{"example":{"parameters":{"analysis_models":["~anthropic/claude-opus-latest","~openai/gpt-latest"]},"type":"openrouter:fusion"},"properties":{"parameters":{"$ref":"#/components/schemas/FusionServerToolConfig"},"type":{"enum":["openrouter:fusion"],"type":"string"}},"required":["type"],"type":"object"},"FusionSource":{"example":{"title":"Example article title","url":"https://example.com/article"},"properties":{"title":{"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["url","title"],"type":"object"},"GenerationContentData":{"example":{"error":null,"input":{"messages":[{"content":"What is the meaning of life?","role":"user"}]},"output":{"completion":"The meaning of life is a philosophical question...","reasoning":null}},"properties":{"error":{"$ref":"#/components/schemas/GenerationContentError"},"input":{"anyOf":[{"description":"Входной текст или массив входных данных.","properties":{"prompt":{"description":"Текстовое описание желаемого результата.","example":"What is the meaning of life?","type":"string"}},"required":["prompt"],"type":"object"},{"description":"Входной текст или массив входных данных.","properties":{"messages":{"description":"История сообщений диалога.","example":[{"content":"What is the meaning of life?","description":"История сообщений диалога.","role":"user"}],"items":{"description":"История сообщений диалога."},"type":"array"}},"required":["messages"],"type":"object"}],"description":"Входной текст или массив входных данных."},"output":{"properties":{"completion":{"example":"The meaning of life is a philosophical question...","type":["string","null"]},"reasoning":{"description":"Настройки рассуждения модели.","example":null,"type":["string","null"]}},"required":["reasoning","completion"],"type":"object"}},"required":["input","output","error"],"type":"object"},"GenerationContentError":{"example":{"message":"Timed out waiting for the provider","previous_errors":[{"code":429,"message":"Provider returned error","provider_name":"Google","raw":"{\"error\":{\"code\":429,\"message\":\"Resource exhausted\"}}"}],"provider_name":"Vertex","raw":"{\"error\":{\"code\":504,\"message\":\"Deadline exceeded\"}}","status":504},"properties":{"message":{"example":"Timed out waiting for the provider","type":["string","null"]},"previous_errors":{"items":{"$ref":"#/components/schemas/GenerationContentErrorAttempt"},"type":"array"},"provider_name":{"example":"Vertex","type":["string","null"]},"raw":{"example":"{\"error\":{\"code\":504,\"message\":\"Deadline exceeded\"}}","type":["string","null"]},"status":{"example":504,"type":["integer","null"]}},"required":["status","message","provider_name","raw","previous_errors"],"type":["object","null"]},"GenerationContentErrorAttempt":{"example":{"code":429,"message":"Provider returned error","provider_name":"Google","raw":"{\"error\":{\"code\":429,\"message\":\"Resource exhausted\"}}"},"properties":{"code":{"example":429,"type":"integer"},"message":{"example":"Provider returned error","type":"string"},"provider_name":{"example":"Google","type":["string","null"]},"raw":{"example":"{\"error\":{\"code\":429,\"message\":\"Resource exhausted\"}}","type":["string","null"]}},"required":["code","message","provider_name","raw"],"type":"object"},"GenerationContentResponse":{"example":{"data":{"error":null,"input":{"messages":[{"content":"What is the meaning of life?","role":"user"}]},"output":{"completion":"The meaning of life is a philosophical question...","reasoning":null}}},"properties":{"data":{"$ref":"#/components/schemas/GenerationContentData"}},"required":["data"],"type":"object"},"GenerationResponse":{"example":{"data":{"api_type":"completions","app_id":12345,"cache_discount":null,"cancelled":false,"created_at":"2024-07-15T23:33:19.433273+00:00","data_region":"global","external_user":"user-123","finish_reason":"stop","generation_time":1200,"http_referer":"https://openrouter.ai/","id":"gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG","is_byok":false,"latency":1250,"model":"sao10k/l3-stheno-8b","moderation_latency":50,"native_finish_reason":"stop","native_tokens_cached":3,"native_tokens_completion":25,"native_tokens_completion_images":0,"native_tokens_prompt":10,"native_tokens_reasoning":5,"num_fetches":0,"num_input_audio_prompt":0,"num_media_completion":0,"num_media_prompt":1,"num_search_results":5,"origin":"https://openrouter.ai/","preset_id":"a9e8d400-592a-494f-908c-375efa66cafd","provider_name":"Infermatic","provider_responses":null,"request_id":"req-1727282430-aBcDeFgHiJkLmNoPqRsT","router":"openrouter/auto","service_tier":"priority","session_id":null,"streamed":true,"tokens_completion":25,"tokens_prompt":10,"total_cost":0.0015,"upstream_id":"chatcmpl-791bcf62-080e-4568-87d0-94c72e3b4946","upstream_inference_cost":0.0012,"usage":0.0015,"user_agent":"Mozilla/5.0","web_search_engine":"exa","workspace_id":"550e8400-e29b-41d4-a716-446655440000"}},"properties":{"data":{"properties":{"api_type":{"enum":["completions","embeddings","rerank","tts","stt","video","image",null],"type":["string","null"],"x-speakeasy-unknown-values":"allow"},"app_id":{"example":12345,"type":["integer","null"]},"cache_discount":{"example":0.0002,"format":"double","type":["number","null"]},"cancelled":{"example":false,"type":["boolean","null"]},"created_at":{"example":"2024-07-15T23:33:19.433273+00:00","type":"string"},"data_region":{"enum":["global","europe","us"],"example":"global","type":"string","x-speakeasy-unknown-values":"allow"},"external_user":{"example":"user-123","type":["string","null"]},"finish_reason":{"example":"stop","type":["string","null"]},"generation_time":{"example":1200,"format":"double","type":["number","null"]},"http_referer":{"type":["string","null"]},"id":{"example":"gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG","type":"string"},"is_byok":{"example":false,"type":"boolean"},"latency":{"example":1250,"format":"double","type":["number","null"]},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"sao10k/l3-stheno-8b","type":"string"},"moderation_latency":{"example":50,"format":"double","type":["number","null"]},"native_finish_reason":{"example":"stop","type":["string","null"]},"native_tokens_cached":{"example":3,"type":["integer","null"]},"native_tokens_completion":{"example":25,"type":["integer","null"]},"native_tokens_completion_images":{"example":0,"type":["integer","null"]},"native_tokens_prompt":{"example":10,"type":["integer","null"]},"native_tokens_reasoning":{"example":5,"type":["integer","null"]},"num_fetches":{"example":0,"type":["integer","null"]},"num_input_audio_prompt":{"example":0,"type":["integer","null"]},"num_media_completion":{"example":0,"type":["integer","null"]},"num_media_prompt":{"example":1,"type":["integer","null"]},"num_search_results":{"example":5,"type":["integer","null"]},"origin":{"example":"https://openrouter.ai/","type":"string"},"preset_id":{"example":"a9e8d400-592a-494f-908c-375efa66cafd","type":["string","null"]},"provider_name":{"example":"Infermatic","type":["string","null"]},"provider_responses":{"items":{"$ref":"#/components/schemas/ProviderResponse"},"type":["array","null"]},"request_id":{"example":"req-1727282430-aBcDeFgHiJkLmNoPqRsT","type":["string","null"]},"response_cache_source_id":{"type":["string","null"]},"router":{"example":"openrouter/auto","type":["string","null"]},"service_tier":{"description":"Желаемый уровень обслуживания запроса.","example":"priority","type":["string","null"]},"session_id":{"type":["string","null"]},"streamed":{"example":true,"type":["boolean","null"]},"tokens_completion":{"example":25,"type":["integer","null"]},"tokens_prompt":{"example":10,"type":["integer","null"]},"total_cost":{"example":0.0015,"format":"double","type":"number"},"upstream_id":{"example":"chatcmpl-791bcf62-080e-4568-87d0-94c72e3b4946","type":["string","null"]},"upstream_inference_cost":{"example":0.0012,"format":"double","type":["number","null"]},"usage":{"description":"Сведения об использованных токенах и стоимости.","example":0.0015,"format":"double","type":"number"},"user_agent":{"type":["string","null"]},"web_search_engine":{"example":"exa","type":["string","null"]},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","type":["string","null"]}},"required":["id","upstream_id","total_cost","cache_discount","upstream_inference_cost","created_at","model","app_id","streamed","cancelled","provider_name","latency","moderation_latency","generation_time","finish_reason","service_tier","tokens_prompt","tokens_completion","native_tokens_prompt","native_tokens_completion","native_tokens_completion_images","native_tokens_reasoning","native_tokens_cached","num_media_prompt","num_input_audio_prompt","num_media_completion","num_search_results","num_fetches","web_search_engine","origin","usage","is_byok","native_finish_reason","external_user","api_type","preset_id","router","provider_responses","user_agent","http_referer","data_region","workspace_id"],"type":"object"}},"required":["data"],"type":"object"},"GetBYOKKeyResponse":{"example":{"data":{"allowed_api_key_hashes":null,"allowed_models":null,"allowed_user_ids":null,"created_at":"2025-08-24T10:30:00Z","disabled":false,"id":"11111111-2222-3333-4444-555555555555","is_byok_only":false,"is_fallback":false,"is_required":false,"label":"sk-...AbCd","name":"Production OpenAI Key","provider":"openai","sort_order":0,"workspace_id":"550e8400-e29b-41d4-a716-446655440000"}},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/BYOKKey"},{}]}},"required":["data"],"type":"object"},"GetGuardrailResponse":{"example":{"data":{"allowed_models":null,"allowed_providers":["openai","anthropic","google"],"content_filter_builtins":[{"action":"redact","label":"[EMAIL]","slug":"email"}],"content_filters":null,"created_at":"2025-08-24T10:30:00Z","enable_free_model_publication":false,"enable_free_model_training":true,"enable_paid_model_training":true,"enforce_zdr":null,"enforce_zdr_anthropic":true,"enforce_zdr_google":false,"enforce_zdr_openai":true,"enforce_zdr_other":false,"enforce_zdr_xai":false,"id":"550e8400-e29b-41d4-a716-446655440000","ignored_models":null,"ignored_providers":null,"include_byok_in_budgets":false,"limit_usd":100,"name":"Production Guardrail","reset_interval":"monthly","updated_at":"2025-08-24T15:45:00Z","workspace_id":"0df9e665-d932-5740-b2c7-b52af166bc11"}},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/Guardrail"},{}]}},"required":["data"],"type":"object"},"GetObservabilityDestinationResponse":{"example":{"data":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"baseUrl":"https://us.cloud.langfuse.com","publicKey":"pk-l...EfGh","secretKey":"sk-l...AbCd"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Langfuse","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"langfuse","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"}},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/ObservabilityDestination"},{}]}},"required":["data"],"type":"object"},"GetPresetResponse":{"example":{"data":{"created_at":"2026-04-20T10:00:00Z","creator_user_id":"user_2dHFtVWx2n56w6HkM0000000000","description":null,"designated_version":{"config":{"model":"openai/gpt-4o","temperature":0.7},"created_at":"2026-04-20T10:00:00Z","creator_id":"user_2dHFtVWx2n56w6HkM0000000000","id":"550e8400-e29b-41d4-a716-446655440000","preset_id":"650e8400-e29b-41d4-a716-446655440001","system_prompt":"You are a helpful assistant.","updated_at":"2026-04-20T10:00:00Z","version":1},"designated_version_id":"550e8400-e29b-41d4-a716-446655440000","id":"650e8400-e29b-41d4-a716-446655440001","name":"my-preset","slug":"my-preset","status":"active","status_updated_at":null,"updated_at":"2026-04-20T10:00:00Z","workspace_id":"750e8400-e29b-41d4-a716-446655440002"}},"properties":{"data":{"$ref":"#/components/schemas/PresetWithDesignatedVersion"}},"required":["data"],"type":"object"},"GetPresetVersionResponse":{"example":{"data":{"config":{"model":"openai/gpt-4o","temperature":0.7},"created_at":"2026-04-20T10:00:00Z","creator_id":"user_2dHFtVWx2n56w6HkM0000000000","id":"550e8400-e29b-41d4-a716-446655440000","preset_id":"650e8400-e29b-41d4-a716-446655440001","system_prompt":"You are a helpful assistant.","updated_at":"2026-04-20T10:00:00Z","version":1}},"properties":{"data":{"$ref":"#/components/schemas/PresetDesignatedVersion"}},"required":["data"],"type":"object"},"GetScimGroupMappingResponse":{"properties":{"data":{"$ref":"#/components/schemas/ScimGroupMapping"}},"required":["data"],"type":"object"},"GetScimSyncJobResponse":{"properties":{"data":{"$ref":"#/components/schemas/ScimSyncJob"}},"required":["data"],"type":"object"},"GetWorkspaceBudgetResponse":{"example":{"data":{"created_at":"2025-08-24T10:30:00Z","id":"770e8400-e29b-41d4-a716-446655440000","limit_usd":100,"reset_interval":"monthly","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"include_byok_in_budgets":true},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/WorkspaceBudget"},{}]},"include_byok_in_budgets":{"example":true,"type":"boolean"}},"required":["data"],"type":"object"},"GetWorkspaceResponse":{"example":{"data":{"created_at":"2025-08-24T10:30:00Z","created_by":"user_abc123","default_guardrail_id":"595d5849-7e86-51fd-a7c0-705c34e4afff","default_image_model":"openai/dall-e-3","default_provider_sort":"price","default_text_model":"openai/gpt-4o","id":"550e8400-e29b-41d4-a716-446655440000","include_byok_in_budgets":false,"io_logging_api_key_ids":null,"io_logging_sampling_rate":1,"is_data_discount_logging_enabled":true,"is_observability_broadcast_enabled":false,"is_observability_io_logging_enabled":false,"name":"Production","slug":"production","updated_at":"2025-08-24T15:45:00Z"}},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/Workspace"},{}]}},"required":["data"],"type":"object"},"GoneResponse":{"example":{"error":{"code":410,"message":"The Coinbase APIs used by this endpoint have been deprecated, so the Coinbase Commerce credits API has been removed. Use the web credits purchase flow instead."}},"properties":{"error":{"$ref":"#/components/schemas/GoneResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"GoneResponseErrorData":{"example":{"code":410,"message":"The Coinbase APIs used by this endpoint have been deprecated, so the Coinbase Commerce credits API has been removed. Use the web credits purchase flow instead."},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"Guardrail":{"example":{"allowed_data_regions":null,"allowed_models":null,"allowed_providers":["openai","anthropic","google"],"content_filter_builtins":[{"action":"redact","label":"[EMAIL]","slug":"email"}],"content_filters":null,"created_at":"2025-08-24T10:30:00Z","enable_free_model_publication":false,"enable_free_model_training":true,"enable_paid_model_training":true,"enforce_zdr":null,"enforce_zdr_anthropic":true,"enforce_zdr_google":false,"enforce_zdr_openai":true,"enforce_zdr_other":false,"enforce_zdr_xai":false,"id":"550e8400-e29b-41d4-a716-446655440000","ignored_models":null,"ignored_providers":null,"include_byok_in_budgets":false,"limit_usd":100,"name":"Production Guardrail","reset_interval":"monthly","updated_at":"2025-08-24T15:45:00Z","workspace_id":"0df9e665-d932-5740-b2c7-b52af166bc11"},"properties":{"allowed_data_regions":{"example":["europe"],"items":{"$ref":"#/components/schemas/GuardrailDataRegion"},"type":["array","null"]},"allowed_models":{"example":["openai/gpt-5.2-20251211","anthropic/claude-4.5-opus-20251124","deepseek/deepseek-r1-0528:free"],"items":{"type":"string"},"type":["array","null"]},"allowed_providers":{"example":["openai","anthropic","google"],"items":{"type":"string"},"type":["array","null"]},"content_filter_builtins":{"example":[{"action":"redact","label":"[EMAIL]","slug":"email"}],"items":{"$ref":"#/components/schemas/ContentFilterBuiltinEntry"},"type":["array","null"]},"content_filters":{"example":[{"action":"redact","label":"[API_KEY]","pattern":"\\b(sk-[a-zA-Z0-9]{48})\\b"}],"items":{"$ref":"#/components/schemas/ContentFilterEntry"},"type":["array","null"]},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"description":{"example":"Guardrail for production environment","type":["string","null"]},"enable_free_model_publication":{"example":false,"type":["boolean","null"]},"enable_free_model_training":{"example":true,"type":["boolean","null"]},"enable_paid_model_training":{"example":true,"type":["boolean","null"]},"enforce_zdr":{"deprecated":true,"example":false,"type":["boolean","null"]},"enforce_zdr_anthropic":{"example":false,"type":["boolean","null"]},"enforce_zdr_google":{"example":false,"type":["boolean","null"]},"enforce_zdr_openai":{"example":false,"type":["boolean","null"]},"enforce_zdr_other":{"example":false,"type":["boolean","null"]},"enforce_zdr_xai":{"example":false,"type":["boolean","null"]},"id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"},"ignored_models":{"example":["openai/gpt-4o-mini-2024-07-18"],"items":{"type":"string"},"type":["array","null"]},"ignored_providers":{"example":["azure"],"items":{"type":"string"},"type":["array","null"]},"include_byok_in_budgets":{"example":false,"type":"boolean"},"limit_usd":{"example":100,"format":"double","type":["number","null"]},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Guardrail","type":"string"},"reset_interval":{"$ref":"#/components/schemas/GuardrailInterval"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":["string","null"]},"workspace_id":{"example":"0df9e665-d932-5740-b2c7-b52af166bc11","type":["string","null"]}},"required":["id","name","include_byok_in_budgets","created_at","workspace_id"],"type":"object"},"GuardrailDataRegion":{"enum":["global","europe","us"],"example":"europe","type":"string","x-speakeasy-unknown-values":"allow"},"GuardrailInterval":{"enum":["daily","weekly","monthly",null],"example":"monthly","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"ImageConfig":{"additionalProperties":{"anyOf":[{"type":"string"},{"format":"double","type":"number"},{"items":{},"type":"array"}]},"example":{"aspect_ratio":"16:9","quality":"high"},"type":"object"},"ImageEndpoint":{"example":{"allowed_passthrough_parameters":[],"pricing":[{"billable":"output_image","cost_usd":0.05,"unit":"image"}],"provider_name":"Bytedance","provider_slug":"bytedance","provider_tag":"bytedance","supported_parameters":{"resolution":{"type":"enum","values":["1K","2K","4K"]},"seed":{"type":"boolean"}},"supports_streaming":false},"properties":{"allowed_passthrough_parameters":{"example":[],"items":{"type":"string"},"type":"array"},"pricing":{"example":[{"billable":"output_image","cost_usd":0.05,"unit":"image"}],"items":{"$ref":"#/components/schemas/ImagePricingEntry"},"type":"array"},"provider_name":{"example":"Bytedance","type":"string"},"provider_slug":{"example":"bytedance","type":"string"},"provider_tag":{"example":"bytedance","type":["string","null"]},"supported_parameters":{"allOf":[{"$ref":"#/components/schemas/SupportedParameters"},{}]},"supports_streaming":{"example":false,"type":"boolean"}},"required":["provider_name","provider_slug","provider_tag","supported_parameters","allowed_passthrough_parameters","supports_streaming","pricing"],"type":"object"},"ImageGenCallCompletedEvent":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesImageGenCallCompleted"},{"properties":{},"type":"object"}],"example":{"item_id":"call-123","output_index":0,"sequence_number":4,"type":"response.image_generation_call.completed"}},"ImageGenCallGeneratingEvent":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesImageGenCallGenerating"},{"properties":{},"type":"object"}],"example":{"item_id":"call-123","output_index":0,"sequence_number":2,"type":"response.image_generation_call.generating"}},"ImageGenCallInProgressEvent":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesImageGenCallInProgress"},{"properties":{},"type":"object"}],"example":{"item_id":"call-123","output_index":0,"sequence_number":1,"type":"response.image_generation_call.in_progress"}},"ImageGenCallPartialImageEvent":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesImageGenCallPartialImage"},{"properties":{},"type":"object"}],"example":{"item_id":"call-123","output_index":0,"partial_image_b64":"base64encodedimage...","partial_image_index":0,"sequence_number":3,"type":"response.image_generation_call.partial_image"}},"ImageGenCompletedEvent":{"example":{"b64_json":"\u003cbase64-encoded-final-image\u003e","created":1748372400,"type":"image_generation.completed","usage":{"completion_tokens":4175,"cost":0.04,"prompt_tokens":0,"total_tokens":4175}},"properties":{"b64_json":{"description":"Содержимое изображения в Base64.","type":"string"},"created":{"type":"integer"},"media_type":{"example":"image/png","type":"string"},"type":{"enum":["image_generation.completed"],"type":"string"},"usage":{"$ref":"#/components/schemas/ImageGenerationUsage","description":"Сведения об использованных токенах и стоимости."}},"required":["type","b64_json","created"],"type":"object"},"ImageGenPartialImageEvent":{"example":{"b64_json":"\u003cbase64-encoded-partial-image\u003e","partial_image_index":0,"type":"image_generation.partial_image"},"properties":{"b64_json":{"description":"Содержимое изображения в Base64.","type":"string"},"partial_image_index":{"type":"integer"},"type":{"enum":["image_generation.partial_image"],"type":"string"}},"required":["type","partial_image_index","b64_json"],"type":"object"},"ImageGenStreamErrorEvent":{"example":{"error":{"code":"upstream_error","message":"The upstream provider returned an error","param":null,"type":"provider_error"},"type":"error"},"properties":{"error":{"properties":{"code":{"type":["string","null"]},"message":{"type":"string"},"param":{"type":["string","null"]},"type":{"type":["string","null"]}},"required":["message"],"type":"object"},"type":{"enum":["error"],"type":"string"}},"required":["type","error"],"type":"object"},"ImageGenTextChunkEvent":{"example":{"phase":"content","text":"\u003csvg xmlns=\"http://www.w3.org/2000/svg\"\u003e","type":"image_generation.text_chunk"},"properties":{"phase":{"enum":["content","reasoning","draft"],"type":"string","x-speakeasy-unknown-values":"allow"},"text":{"type":"string"},"type":{"enum":["image_generation.text_chunk"],"type":"string"}},"required":["type","text","phase"],"type":"object"},"ImageGenerationProviderPreferences":{"example":{"allow_fallbacks":false,"only":["google-ai-studio"]},"properties":{"allow_fallbacks":{"type":["boolean","null"]},"ignore":{"example":["openai","anthropic"],"items":{"anyOf":[{"$ref":"#/components/schemas/ProviderName"},{"type":"string"}]},"type":["array","null"]},"only":{"example":["openai","anthropic"],"items":{"anyOf":[{"$ref":"#/components/schemas/ProviderName"},{"type":"string"}]},"type":["array","null"]},"options":{"allOf":[{"$ref":"#/components/schemas/ProviderOptions"},{"example":{"black-forest-labs":{"guidance":3,"steps":40}}}]},"order":{"example":["openai","anthropic"],"items":{"anyOf":[{"$ref":"#/components/schemas/ProviderName"},{"type":"string"}]},"type":["array","null"]},"sort":{"anyOf":[{"$ref":"#/components/schemas/ProviderSort"},{"$ref":"#/components/schemas/ProviderSortConfig"},{"type":"null"}],"example":"price"}},"type":"object"},"ImageGenerationRequest":{"example":{"model":"bytedance-seed/seedream-4.5","prompt":"a red panda astronaut floating in space, studio lighting"},"properties":{"aspect_ratio":{"description":"Соотношение сторон результата.","enum":["1:1","1:2","1:4","1:8","2:1","2:3","3:2","3:4","4:1","4:3","4:5","5:4","8:1","9:16","16:9","9:19.5","19.5:9","9:20","20:9","9:21","21:9","auto"],"example":"16:9","type":"string","x-speakeasy-unknown-values":"allow"},"background":{"description":"Параметры фона результата.","enum":["auto","transparent","opaque"],"example":"auto","type":"string","x-speakeasy-unknown-values":"allow"},"input_references":{"description":"Исходные материалы, которые модель учитывает при генерации.","items":{"$ref":"#/components/schemas/ContentPartImage","description":"Исходные материалы, которые модель учитывает при генерации."},"maxItems":16,"type":"array"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"bytedance-seed/seedream-4.5","type":"string"},"n":{"description":"Количество вариантов результата.","example":1,"type":"integer"},"output_compression":{"example":100,"type":"integer"},"output_format":{"enum":["png","jpeg","webp","svg"],"example":"png","type":"string","x-speakeasy-unknown-values":"allow"},"prompt":{"description":"Текстовое описание желаемого результата.","example":"a red panda astronaut floating in space, studio lighting","minLength":1,"type":"string"},"provider":{"$ref":"#/components/schemas/ImageGenerationProviderPreferences","description":"Настройки выбора и маршрутизации провайдера."},"quality":{"description":"Желаемое качество изображения.","enum":["auto","low","medium","high","xhigh","max"],"example":"high","type":"string","x-speakeasy-unknown-values":"allow"},"resolution":{"description":"Разрешение результата.","enum":["512","1K","2K","4K"],"example":"2K","type":"string","x-speakeasy-unknown-values":"allow"},"seed":{"description":"Начальное значение для воспроизводимой генерации.","type":"integer"},"size":{"description":"Размер создаваемого изображения.","example":"2K","type":"string"},"stream":{"description":"Возвращать ответ постепенно в виде потока событий.","type":"boolean"},"user":{"description":"Идентификатор конечного пользователя.","example":"end-user-abc123","type":"string"}},"required":["model","prompt"],"type":"object"},"ImageGenerationResponse":{"example":{"created":1748372400,"data":[{"b64_json":"\u003cbase64-encoded-image\u003e"}],"usage":{"completion_tokens":4175,"cost":0.04,"prompt_tokens":0,"total_tokens":4175}},"properties":{"created":{"example":1748372400,"type":"integer"},"data":{"description":"Сгенерированные изображения.","items":{"$ref":"#/components/schemas/LLMoraImageData"},"type":"array"},"usage":{"$ref":"#/components/schemas/ImageGenerationUsage","description":"Сведения об использованных токенах и стоимости."}},"required":["created","data"],"type":"object"},"ImageGenerationServerTool":{"example":{"quality":"high","type":"image_generation"},"properties":{"background":{"description":"Параметры фона результата.","enum":["transparent","opaque","auto"],"type":"string","x-speakeasy-unknown-values":"allow"},"input_fidelity":{"enum":["high","low",null],"type":["string","null"],"x-speakeasy-unknown-values":"allow"},"input_image_mask":{"properties":{"file_id":{"type":"string"},"image_url":{"description":"Ссылка на изображение или объект с параметрами изображения.","type":"string"}},"type":"object"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"moderation":{"enum":["auto","low"],"type":"string","x-speakeasy-unknown-values":"allow"},"output_compression":{"type":"integer"},"output_format":{"enum":["png","webp","jpeg"],"type":"string","x-speakeasy-unknown-values":"allow"},"partial_images":{"type":"integer"},"quality":{"description":"Желаемое качество изображения.","enum":["low","medium","high","auto"],"type":"string","x-speakeasy-unknown-values":"allow"},"size":{"description":"Размер создаваемого изображения.","type":"string"},"type":{"enum":["image_generation"],"type":"string"}},"required":["type"],"type":"object"},"ImageGenerationServerToolConfig":{"additionalProperties":{"anyOf":[{"type":"string"},{"format":"double","type":"number"},{"items":{},"type":"array"}]},"example":{"aspect_ratio":"16:9","model":"openai/gpt-5-image","quality":"high"},"properties":{"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"openai/gpt-5-image","type":"string"}},"type":"object"},"ImageGenerationServerTool_OpenRouter":{"example":{"parameters":{"model":"openai/gpt-5-image","quality":"high","size":"1024x1024"},"type":"openrouter:image_generation"},"properties":{"parameters":{"$ref":"#/components/schemas/ImageGenerationServerToolConfig"},"type":{"enum":["openrouter:image_generation"],"type":"string"}},"required":["type"],"type":"object"},"ImageGenerationStatus":{"enum":["in_progress","completed","generating","failed"],"example":"completed","type":"string","x-speakeasy-unknown-values":"allow"},"ImageGenerationUsage":{"example":{"completion_tokens":4175,"cost":0.04,"prompt_tokens":0,"total_tokens":4175},"properties":{"cache_creation":{"$ref":"#/components/schemas/AnthropicCacheCreation"},"completion_tokens":{"type":"integer"},"completion_tokens_details":{"properties":{"audio_tokens":{"type":["integer","null"]},"image_tokens":{"type":["integer","null"]},"reasoning_tokens":{"type":["integer","null"]}},"type":["object","null"]},"cost":{"format":"double","type":["number","null"]},"cost_details":{"$ref":"#/components/schemas/CostDetails"},"is_byok":{"type":"boolean"},"iterations":{"items":{"$ref":"#/components/schemas/AnthropicUsageIteration"},"type":["array","null"]},"prompt_tokens":{"type":"integer"},"prompt_tokens_details":{"properties":{"audio_tokens":{"type":["integer","null"]},"cache_write_tokens":{"type":["integer","null"]},"cached_tokens":{"type":["integer","null"]},"file_tokens":{"type":["integer","null"]},"video_tokens":{"type":["integer","null"]}},"type":["object","null"]},"server_tool_use":{"properties":{"tool_calls_executed":{"type":["integer","null"]},"tool_calls_requested":{"type":["integer","null"]},"web_search_requests":{"type":["integer","null"]}},"type":["object","null"]},"service_tier":{"description":"Желаемый уровень обслуживания запроса.","type":["string","null"]},"speed":{"$ref":"#/components/schemas/AnthropicSpeed","description":"Скорость воспроизведения речи."},"total_tokens":{"type":"integer"}},"required":["prompt_tokens","completion_tokens","total_tokens"],"type":"object"},"ImageInputModality":{"enum":["text","image","file","audio","video"],"example":"text","type":"string","x-speakeasy-unknown-values":"allow"},"ImageModelArchitecture":{"example":{"input_modalities":["text","image"],"output_modalities":["image"]},"properties":{"input_modalities":{"items":{"$ref":"#/components/schemas/ImageInputModality"},"type":"array"},"output_modalities":{"description":"Фильтр по поддерживаемым типам результата.","items":{"$ref":"#/components/schemas/ImageOutputModality","description":"Фильтр по поддерживаемым типам результата."},"type":"array"}},"required":["input_modalities","output_modalities"],"type":"object"},"ImageModelEndpointsResponse":{"example":{"endpoints":[{"allowed_passthrough_parameters":[],"pricing":[{"billable":"output_image","cost_usd":0.05,"unit":"image"}],"provider_name":"Bytedance","provider_slug":"bytedance","provider_tag":"bytedance","supported_parameters":{"resolution":{"type":"enum","values":["1K","2K","4K"]}},"supports_streaming":false}],"id":"bytedance-seed/seedream-4.5"},"properties":{"endpoints":{"items":{"$ref":"#/components/schemas/ImageEndpoint"},"type":"array"},"id":{"example":"bytedance-seed/seedream-4.5","type":"string"}},"required":["id","endpoints"],"type":"object"},"ImageModelListItem":{"example":{"architecture":{"input_modalities":["text","image"],"output_modalities":["image"]},"created":1692901234,"endpoints":"/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints","id":"bytedance-seed/seedream-4.5","name":"Seedream 4.5","supported_parameters":{"resolution":{"type":"enum","values":["1K","2K","4K"]},"seed":{"type":"boolean"}},"supports_streaming":false},"properties":{"architecture":{"$ref":"#/components/schemas/ImageModelArchitecture"},"created":{"example":1692901234,"type":"integer"},"description":{"example":"A text-to-image model.","type":"string"},"endpoints":{"example":"/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints","type":"string"},"id":{"example":"bytedance-seed/seedream-4.5","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Seedream 4.5","type":"string"},"supported_parameters":{"$ref":"#/components/schemas/SupportedParameters"},"supports_streaming":{"example":false,"type":"boolean"}},"required":["id","name","description","created","architecture","supported_parameters","supports_streaming","endpoints"],"type":"object"},"ImageModelsListResponse":{"example":{"data":[{"architecture":{"input_modalities":["text"],"output_modalities":["image"]},"created":1692901234,"endpoints":"/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints","id":"bytedance-seed/seedream-4.5","name":"Seedream 4.5","supported_parameters":{"resolution":{"type":"enum","values":["1K","2K","4K"]}},"supports_streaming":false}]},"properties":{"data":{"items":{"$ref":"#/components/schemas/ImageModelListItem"},"type":"array"}},"required":["data"],"type":"object"},"ImageOutputModality":{"enum":["text","image","embeddings","audio","video","rerank","speech","transcription"],"example":"image","type":"string","x-speakeasy-unknown-values":"allow"},"ImagePricingEntry":{"example":{"billable":"output_image","cost_usd":0.05,"unit":"image"},"properties":{"billable":{"enum":["output_image","input_image","input_font","input_reference","input_text"],"type":"string","x-speakeasy-unknown-values":"allow"},"cost_usd":{"format":"double","type":"number"},"unit":{"enum":["request","image","megapixel","token"],"type":"string","x-speakeasy-unknown-values":"allow"},"variant":{"type":"string"}},"required":["billable","unit","cost_usd"],"type":"object"},"ImageStreamingResponse":{"example":{"data":{"b64_json":"\u003cbase64-encoded-partial-image\u003e","partial_image_index":0,"type":"image_generation.partial_image"}},"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ImageGenPartialImageEvent"},{"$ref":"#/components/schemas/ImageGenTextChunkEvent"},{"$ref":"#/components/schemas/ImageGenCompletedEvent"},{"$ref":"#/components/schemas/ImageGenStreamErrorEvent"}]}},"required":["data"],"type":"object"},"InProgressEvent":{"example":{"response":{"completed_at":null,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":null,"status":"in_progress","temperature":null,"tool_choice":"auto","tools":[],"top_p":null},"sequence_number":1,"type":"response.in_progress"},"properties":{"response":{"$ref":"#/components/schemas/BaseResponsesResult"},"sequence_number":{"type":"integer"},"type":{"enum":["response.in_progress"],"type":"string"}},"required":["type","response","sequence_number"],"type":"object"},"IncompleteDetails":{"example":{"reason":"max_output_tokens"},"properties":{"reason":{"enum":["max_output_tokens","content_filter"],"type":"string","x-speakeasy-unknown-values":"allow"}},"type":["object","null"]},"IncompleteEvent":{"example":{"response":{"completed_at":null,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":null,"status":"incomplete","temperature":null,"tool_choice":"auto","tools":[],"top_p":null},"sequence_number":5,"type":"response.incomplete"},"properties":{"response":{"$ref":"#/components/schemas/BaseResponsesResult"},"sequence_number":{"type":"integer"},"type":{"enum":["response.incomplete"],"type":"string"}},"required":["type","response","sequence_number"],"type":"object"},"InputAudio":{"example":{"input_audio":{"data":"SGVsbG8gV29ybGQ=","format":"mp3"},"type":"input_audio"},"properties":{"input_audio":{"properties":{"data":{"type":"string"},"format":{"enum":["mp3","wav"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["data","format"],"type":"object"},"type":{"enum":["input_audio"],"type":"string"}},"required":["type","input_audio"],"type":"object"},"InputFile":{"example":{"file_id":"file-abc123","filename":"document.pdf","type":"input_file"},"properties":{"file_data":{"type":"string"},"file_id":{"type":["string","null"]},"file_url":{"type":"string"},"filename":{"type":"string"},"type":{"enum":["input_file"],"type":"string"}},"required":["type"],"type":"object"},"InputImage":{"example":{"detail":"auto","image_url":"https://example.com/image.jpg","type":"input_image"},"properties":{"detail":{"description":"Уровень детализации обработки изображения.","enum":["auto","high","low","original"],"type":"string","x-speakeasy-unknown-values":"allow"},"image_url":{"description":"Ссылка на изображение или объект с параметрами изображения.","type":["string","null"]},"type":{"enum":["input_image"],"type":"string"}},"required":["type","detail"],"type":"object"},"InputMessageItem":{"example":{"content":[{"text":"Hello, how are you?","type":"input_text"}],"id":"msg-abc123","role":"user","type":"message"},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","items":{"description":"Содержимое сообщения или входные данные.","oneOf":[{"$ref":"#/components/schemas/InputText","description":"Содержимое сообщения или входные данные."},{"allOf":[{"$ref":"#/components/schemas/InputImage","description":"Содержимое сообщения или входные данные."},{"description":"Содержимое сообщения или входные данные.","properties":{},"type":"object"}],"description":"Содержимое сообщения или входные данные.","example":{"description":"Содержимое сообщения или входные данные.","detail":"auto","image_url":"https://example.com/image.jpg","type":"input_image"}},{"$ref":"#/components/schemas/InputFile","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/InputAudio","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/InputVideo","description":"Содержимое сообщения или входные данные."}]},"type":["array","null"]},"id":{"type":"string"},"role":{"anyOf":[{"description":"Роль участника диалога.","enum":["user"],"type":"string"},{"description":"Роль участника диалога.","enum":["system"],"type":"string"},{"description":"Роль участника диалога.","enum":["developer"],"type":"string"}],"description":"Роль участника диалога."},"type":{"enum":["message"],"type":"string"}},"required":["role"],"type":"object"},"InputModality":{"enum":["text","image","file","audio","video"],"example":"text","type":"string","x-speakeasy-unknown-values":"allow"},"InputReference":{"discriminator":{"mapping":{"audio_url":"#/components/schemas/ContentPartAudio","image_url":"#/components/schemas/ContentPartImage","video_url":"#/components/schemas/ContentPartVideo"},"propertyName":"type"},"example":{"image_url":{"url":"https://example.com/image.png"},"type":"image_url"},"oneOf":[{"$ref":"#/components/schemas/ContentPartImage"},{"$ref":"#/components/schemas/ContentPartAudio"},{"$ref":"#/components/schemas/ContentPartVideo"}]},"InputText":{"example":{"text":"Hello, how can I help you?","type":"input_text"},"properties":{"prompt_cache_breakpoint":{"$ref":"#/components/schemas/PromptCacheBreakpoint"},"text":{"type":"string"},"type":{"enum":["input_text"],"type":"string"}},"required":["type","text"],"type":"object"},"InputVideo":{"example":{"type":"input_video","video_url":"https://example.com/video.mp4"},"properties":{"processing":{"enum":["agentic","static"],"example":"agentic","type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["input_video"],"type":"string"},"video_url":{"type":"string"}},"required":["type","video_url"],"type":"object"},"Inputs":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ReasoningItem"},{"$ref":"#/components/schemas/EasyInputMessage"},{"$ref":"#/components/schemas/InputMessageItem"},{"$ref":"#/components/schemas/FunctionCallItem"},{"$ref":"#/components/schemas/FunctionCallOutputItem"},{"$ref":"#/components/schemas/ApplyPatchCallItem"},{"$ref":"#/components/schemas/ApplyPatchCallOutputItem"},{"allOf":[{"$ref":"#/components/schemas/OutputMessageItem"},{"properties":{"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","items":{"anyOf":[{"$ref":"#/components/schemas/ResponseOutputText","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/OpenAIResponsesRefusalContent","description":"Содержимое сообщения или входные данные."}],"description":"Содержимое сообщения или входные данные."},"type":"array"},{"description":"Содержимое сообщения или входные данные.","type":"string"},{"description":"Содержимое сообщения или входные данные.","type":"null"}],"description":"Содержимое сообщения или входные данные."},"type":{"default":"message","enum":["message"],"type":"string"}},"type":"object"}],"example":{"content":[{"annotations":[],"text":"Hello! How can I help you?","type":"output_text"}],"id":"msg-123","role":"assistant","status":"completed","type":"message"}},{"allOf":[{"$ref":"#/components/schemas/OutputReasoningItem"},{"properties":{"summary":{"items":{"$ref":"#/components/schemas/ReasoningSummaryText"},"type":["array","null"]}},"type":"object"}],"example":{"content":[{"text":"First, we analyze the problem...","type":"reasoning_text"}],"format":"anthropic-claude-v1","id":"reasoning-123","signature":"EvcBCkgIChABGAIqQKkSDbRuVEQUk9qN1odC098l9SEj...","status":"completed","summary":[{"text":"Analyzed the problem and found the optimal solution.","type":"summary_text"}],"type":"reasoning"}},{"$ref":"#/components/schemas/OutputFunctionCallItem"},{"$ref":"#/components/schemas/OutputCustomToolCallItem"},{"$ref":"#/components/schemas/OutputWebSearchCallItem"},{"$ref":"#/components/schemas/OutputFileSearchCallItem"},{"$ref":"#/components/schemas/OutputImageGenerationCallItem"},{"$ref":"#/components/schemas/OutputCodeInterpreterCallItem"},{"$ref":"#/components/schemas/OutputComputerCallItem"},{"$ref":"#/components/schemas/OutputDatetimeItem"},{"$ref":"#/components/schemas/OutputWebSearchServerToolItem"},{"$ref":"#/components/schemas/OutputCodeInterpreterServerToolItem"},{"$ref":"#/components/schemas/OutputFileSearchServerToolItem"},{"$ref":"#/components/schemas/OutputImageGenerationServerToolItem"},{"$ref":"#/components/schemas/OutputBrowserUseServerToolItem"},{"$ref":"#/components/schemas/OutputBashServerToolItem"},{"$ref":"#/components/schemas/OutputTextEditorServerToolItem"},{"$ref":"#/components/schemas/OutputApplyPatchServerToolItem"},{"$ref":"#/components/schemas/OutputWebFetchServerToolItem"},{"$ref":"#/components/schemas/OutputToolSearchServerToolItem"},{"$ref":"#/components/schemas/OutputMemoryServerToolItem"},{"$ref":"#/components/schemas/OutputMcpServerToolItem"},{"$ref":"#/components/schemas/OutputSearchModelsServerToolItem"},{"$ref":"#/components/schemas/OutputFusionServerToolItem"},{"$ref":"#/components/schemas/OutputAdvisorServerToolItem"},{"$ref":"#/components/schemas/OutputSubagentServerToolItem"},{"$ref":"#/components/schemas/OutputFilesServerToolItem"},{"$ref":"#/components/schemas/OutputShellServerToolItem"},{"$ref":"#/components/schemas/LocalShellCallItem"},{"$ref":"#/components/schemas/LocalShellCallOutputItem"},{"$ref":"#/components/schemas/ShellCallItem"},{"$ref":"#/components/schemas/ShellCallOutputItem"},{"$ref":"#/components/schemas/McpListToolsItem"},{"$ref":"#/components/schemas/McpApprovalRequestItem"},{"$ref":"#/components/schemas/McpApprovalResponseItem"},{"$ref":"#/components/schemas/McpCallItem"},{"$ref":"#/components/schemas/CustomToolCallItem"},{"$ref":"#/components/schemas/CustomToolCallOutputItem"},{"$ref":"#/components/schemas/CompactionItem"},{"$ref":"#/components/schemas/ContextCompactionItem"},{"$ref":"#/components/schemas/ItemReferenceItem"},{"$ref":"#/components/schemas/AdditionalToolsItem"},{"$ref":"#/components/schemas/AgentMessageItem"},{"$ref":"#/components/schemas/ConfigurationUpdateItem"}]},"type":"array"}],"example":[{"content":"What is the weather today?","role":"user"}]},"InstructType":{"enum":["none","airoboros","alpaca","alpaca-modif","chatml","claude","code-llama","gemma","llama2","llama3","mistral","nemotron","neural","openchat","phi3","rwkv","vicuna","zephyr","deepseek-r1","deepseek-v3.1","qwq","qwen3",null],"example":"chatml","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"InternalServerResponse":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"properties":{"error":{"$ref":"#/components/schemas/InternalServerResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"InternalServerResponseErrorData":{"example":{"code":500,"message":"Internal Server Error"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"ItemReferenceItem":{"example":{"id":"msg-abc123","type":"item_reference"},"properties":{"id":{"type":"string"},"type":{"enum":["item_reference"],"type":"string"}},"required":["type","id"],"type":"object"},"KeyAssignment":{"example":{"assigned_by":"user_abc123","created_at":"2025-08-24T10:30:00Z","guardrail_id":"550e8400-e29b-41d4-a716-446655440001","id":"550e8400-e29b-41d4-a716-446655440000","key_hash":"c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93","key_label":"prod-key","key_name":"Production Key"},"properties":{"assigned_by":{"example":"user_abc123","type":["string","null"]},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"guardrail_id":{"example":"550e8400-e29b-41d4-a716-446655440001","format":"uuid","type":"string"},"id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"},"key_hash":{"example":"c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93","type":"string"},"key_label":{"example":"prod-key","type":"string"},"key_name":{"example":"Production Key","type":"string"}},"required":["id","key_hash","guardrail_id","key_name","key_label","assigned_by","created_at"],"type":"object"},"LLMoraImageData":{"description":"Данные сгенерированного изображения. Ответы провайдера в формате data:image/...;base64 преобразуются в b64_json.","properties":{"b64_json":{"description":"Содержимое изображения в Base64.","type":"string"},"media_type":{"example":"image/png","type":"string"},"url":{"description":"Адрес ресурса.","example":"https://example.com/generated.png","type":"string"}},"type":"object"},"Legacy_ChatContentVideo":{"deprecated":true,"example":{"type":"input_video","video_url":{"url":"https://example.com/video.mp4"}},"properties":{"type":{"enum":["input_video"],"type":"string"},"video_url":{"$ref":"#/components/schemas/Legacy_ChatContentVideoInput"}},"required":["type","video_url"],"type":"object"},"Legacy_ChatContentVideoInput":{"example":{"url":"https://example.com/video.mp4"},"properties":{"processing":{"enum":["agentic","static"],"example":"agentic","type":"string","x-speakeasy-unknown-values":"allow"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["url"],"type":"object"},"Legacy_WebSearchServerTool":{"example":{"engine":"auto","filters":{"allowed_domains":["example.com"]},"type":"web_search"},"properties":{"engine":{"$ref":"#/components/schemas/WebSearchEngineEnum"},"filters":{"$ref":"#/components/schemas/WebSearchDomainFilter"},"max_results":{"example":5,"type":"integer"},"max_uses":{"example":3,"type":"integer"},"mode":{"$ref":"#/components/schemas/WebSearchMode"},"search_context_size":{"$ref":"#/components/schemas/SearchContextSizeEnum"},"type":{"enum":["web_search"],"type":"string"},"user_location":{"$ref":"#/components/schemas/WebSearchUserLocation"}},"required":["type"],"type":"object"},"ListBYOKKeysResponse":{"example":{"data":[{"allowed_api_key_hashes":null,"allowed_models":null,"allowed_user_ids":null,"created_at":"2025-08-24T10:30:00Z","disabled":false,"id":"11111111-2222-3333-4444-555555555555","is_byok_only":false,"is_fallback":false,"is_required":false,"label":"sk-...AbCd","name":"Production OpenAI Key","provider":"openai","sort_order":0,"workspace_id":"550e8400-e29b-41d4-a716-446655440000"}],"total_count":1},"properties":{"data":{"items":{"$ref":"#/components/schemas/BYOKKey"},"type":"array"},"total_count":{"example":1,"type":"integer"}},"required":["data","total_count"],"type":"object"},"ListEndpointsResponse":{"example":{"architecture":{"input_modalities":["text"],"instruct_type":"chatml","modality":"text-\u003etext","output_modalities":["text"],"tokenizer":"GPT"},"created":1692901234,"endpoints":[{"context_length":8192,"latency_last_30m":{"p50":0.25,"p75":0.35,"p90":0.48,"p99":0.85},"max_completion_tokens":4096,"max_prompt_tokens":8192,"model_id":"openai/gpt-4","model_name":"GPT-4","name":"OpenAI: GPT-4","pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"provider_name":"OpenAI","quantization":"fp16","status":0,"supported_parameters":["temperature","top_p","max_tokens","frequency_penalty","presence_penalty"],"supports_implicit_caching":true,"tag":"openai","throughput_last_30m":{"p50":45.2,"p75":38.5,"p90":28.3,"p99":15.1},"uptime_last_1d":99.8,"uptime_last_30m":99.5,"uptime_last_5m":100}],"id":"openai/gpt-4","name":"GPT-4"},"properties":{"architecture":{"allOf":[{"$ref":"#/components/schemas/ModelArchitecture"},{"properties":{"input_modalities":{"items":{"$ref":"#/components/schemas/InputModality"},"type":"array"},"instruct_type":{"$ref":"#/components/schemas/InstructType"},"modality":{"example":"text","type":["string","null"]},"output_modalities":{"description":"Фильтр по поддерживаемым типам результата.","items":{"$ref":"#/components/schemas/OutputModality","description":"Фильтр по поддерживаемым типам результата."},"type":"array"},"tokenizer":{"anyOf":[{"$ref":"#/components/schemas/ModelGroup"},{"type":"null"}]}},"required":["tokenizer","instruct_type","modality","input_modalities","output_modalities"]}]},"created":{"example":1692901234,"type":"integer"},"description":{"example":"GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.","type":"string"},"endpoints":{"items":{"$ref":"#/components/schemas/PublicEndpoint"},"type":"array"},"id":{"example":"openai/gpt-4","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"GPT-4","type":"string"}},"required":["id","name","created","description","architecture","endpoints"],"type":"object"},"ListGuardrailsResponse":{"example":{"data":[{"allowed_models":null,"allowed_providers":["openai","anthropic","google"],"content_filter_builtins":[{"action":"redact","label":"[EMAIL]","slug":"email"}],"content_filters":null,"created_at":"2025-08-24T10:30:00Z","enable_free_model_publication":false,"enable_free_model_training":true,"enable_paid_model_training":true,"enforce_zdr":null,"enforce_zdr_anthropic":true,"enforce_zdr_google":false,"enforce_zdr_openai":true,"enforce_zdr_other":false,"enforce_zdr_xai":false,"id":"550e8400-e29b-41d4-a716-446655440000","ignored_models":null,"ignored_providers":null,"include_byok_in_budgets":false,"limit_usd":100,"name":"Production Guardrail","reset_interval":"monthly","updated_at":"2025-08-24T15:45:00Z","workspace_id":"0df9e665-d932-5740-b2c7-b52af166bc11"}],"total_count":1},"properties":{"data":{"items":{"$ref":"#/components/schemas/Guardrail"},"type":"array"},"total_count":{"example":25,"type":"integer"}},"required":["data","total_count"],"type":"object"},"ListKeyAssignmentsResponse":{"example":{"data":[{"assigned_by":"user_abc123","created_at":"2025-08-24T10:30:00Z","guardrail_id":"550e8400-e29b-41d4-a716-446655440001","id":"550e8400-e29b-41d4-a716-446655440000","key_hash":"c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93","key_label":"prod-key","key_name":"Production Key"}],"total_count":1},"properties":{"data":{"items":{"$ref":"#/components/schemas/KeyAssignment"},"type":"array"},"total_count":{"example":25,"type":"integer"}},"required":["data","total_count"],"type":"object"},"ListMemberAssignmentsResponse":{"example":{"data":[{"assigned_by":"user_abc123","created_at":"2025-08-24T10:30:00Z","guardrail_id":"550e8400-e29b-41d4-a716-446655440001","id":"550e8400-e29b-41d4-a716-446655440000","organization_id":"org_xyz789","user_id":"user_abc123"}],"total_count":1},"properties":{"data":{"items":{"$ref":"#/components/schemas/MemberAssignment"},"type":"array"},"total_count":{"example":10,"type":"integer"}},"required":["data","total_count"],"type":"object"},"ListObservabilityDestinationsResponse":{"example":{"data":[{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"baseUrl":"https://us.cloud.langfuse.com","publicKey":"pk-l...EfGh","secretKey":"sk-l...AbCd"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Langfuse","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"langfuse","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"}],"total_count":1},"properties":{"data":{"items":{"$ref":"#/components/schemas/ObservabilityDestination"},"type":"array"},"total_count":{"example":1,"type":"integer"}},"required":["data","total_count"],"type":"object"},"ListPresetVersionsResponse":{"example":{"data":[{"config":{"model":"openai/gpt-4o","temperature":0.7},"created_at":"2026-04-20T10:00:00Z","creator_id":"user_2dHFtVWx2n56w6HkM0000000000","id":"550e8400-e29b-41d4-a716-446655440000","preset_id":"650e8400-e29b-41d4-a716-446655440001","system_prompt":"You are a helpful assistant.","updated_at":"2026-04-20T10:00:00Z","version":1}],"total_count":1},"properties":{"data":{"items":{"$ref":"#/components/schemas/PresetDesignatedVersion"},"type":"array"},"total_count":{"type":"integer"}},"required":["data","total_count"],"type":"object"},"ListPresetsResponse":{"example":{"data":[{"created_at":"2026-04-20T10:00:00Z","creator_user_id":"user_2dHFtVWx2n56w6HkM0000000000","description":null,"designated_version_id":"550e8400-e29b-41d4-a716-446655440000","id":"650e8400-e29b-41d4-a716-446655440001","name":"my-preset","slug":"my-preset","status":"active","status_updated_at":null,"updated_at":"2026-04-20T10:00:00Z","workspace_id":"750e8400-e29b-41d4-a716-446655440002"}],"total_count":1},"properties":{"data":{"items":{"$ref":"#/components/schemas/Preset"},"type":"array"},"total_count":{"type":"integer"}},"required":["data","total_count"],"type":"object"},"ListScimGroupMappingsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ScimGroupMapping"},"type":"array"},"total_count":{"type":"integer"}},"required":["data","total_count"],"type":"object"},"ListScimGroupsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ScimGroup"},"type":"array"},"total_count":{"type":"integer"}},"required":["data","total_count"],"type":"object"},"ListWorkspaceBudgetsResponse":{"example":{"data":[{"created_at":"2025-08-24T10:30:00Z","id":"770e8400-e29b-41d4-a716-446655440000","limit_usd":100,"reset_interval":"monthly","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"}],"include_byok_in_budgets":false},"properties":{"data":{"items":{"$ref":"#/components/schemas/WorkspaceBudget"},"type":"array"},"include_byok_in_budgets":{"example":false,"type":"boolean"}},"required":["data"],"type":"object"},"ListWorkspaceMembersResponse":{"example":{"data":[{"created_at":"2025-08-24T10:30:00Z","id":"660e8400-e29b-41d4-a716-446655440000","role":"member","user_id":"user_abc123","workspace_id":"550e8400-e29b-41d4-a716-446655440000"}],"total_count":1},"properties":{"data":{"items":{"$ref":"#/components/schemas/WorkspaceMember"},"type":"array"},"total_count":{"example":5,"type":"integer"}},"required":["data","total_count"],"type":"object"},"ListWorkspacesResponse":{"example":{"data":[{"created_at":"2025-08-24T10:30:00Z","created_by":"user_abc123","default_guardrail_id":"595d5849-7e86-51fd-a7c0-705c34e4afff","default_image_model":"openai/dall-e-3","default_provider_sort":"price","default_text_model":"openai/gpt-4o","id":"550e8400-e29b-41d4-a716-446655440000","include_byok_in_budgets":false,"io_logging_api_key_ids":null,"io_logging_sampling_rate":1,"is_data_discount_logging_enabled":true,"is_observability_broadcast_enabled":false,"is_observability_io_logging_enabled":false,"name":"Production","slug":"production","updated_at":"2025-08-24T15:45:00Z"}],"total_count":1},"properties":{"data":{"items":{"$ref":"#/components/schemas/Workspace"},"type":"array"},"total_count":{"example":5,"type":"integer"}},"required":["data","total_count"],"type":"object"},"LocalShellCallItem":{"example":{"action":{"command":["ls","-la"],"env":{"PATH":"/usr/bin"},"timeout_ms":5000,"type":"exec"},"call_id":"call-abc123","id":"shell-abc123","status":"completed","type":"local_shell_call"},"properties":{"action":{"properties":{"command":{"items":{"type":"string"},"type":"array"},"env":{"additionalProperties":{"type":"string"},"type":"object"},"timeout_ms":{"type":["integer","null"]},"type":{"enum":["exec"],"type":"string"},"user":{"description":"Идентификатор конечного пользователя.","type":["string","null"]},"working_directory":{"type":["string","null"]}},"required":["type","command","env"],"type":"object"},"call_id":{"type":"string"},"id":{"type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["local_shell_call"],"type":"string"}},"required":["type","id","call_id","action","status"],"type":"object"},"LocalShellCallOutputItem":{"example":{"id":"output-abc123","output":"total 24\ndrwxr-xr-x  5 user  staff  160 Jan  1 12:00 .","status":"completed","type":"local_shell_call_output"},"properties":{"id":{"type":"string"},"output":{"type":"string"},"status":{"anyOf":[{"$ref":"#/components/schemas/ToolCallStatus"},{"type":"null"}]},"type":{"enum":["local_shell_call_output"],"type":"string"}},"required":["type","id","output"],"type":"object"},"McpApprovalRequestItem":{"example":{"arguments":"{\"id\":\"123\"}","id":"approval-abc123","name":"delete_record","server_label":"database-server","type":"mcp_approval_request"},"properties":{"arguments":{"type":"string"},"id":{"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"server_label":{"type":"string"},"type":{"enum":["mcp_approval_request"],"type":"string"}},"required":["type","id","name","arguments","server_label"],"type":"object"},"McpApprovalResponseItem":{"example":{"approval_request_id":"approval-abc123","approve":true,"reason":"Approved for execution","type":"mcp_approval_response"},"properties":{"approval_request_id":{"type":"string"},"approve":{"type":"boolean"},"id":{"type":["string","null"]},"reason":{"type":["string","null"]},"type":{"enum":["mcp_approval_response"],"type":"string"}},"required":["type","approval_request_id","approve"],"type":"object"},"McpCallItem":{"example":{"arguments":"{\"query\":\"SELECT * FROM users\"}","id":"mcp-call-abc123","name":"query_database","output":"[{\"id\":1,\"name\":\"Alice\"}]","server_label":"database-server","type":"mcp_call"},"properties":{"arguments":{"type":"string"},"error":{"$ref":"#/components/schemas/McpToolCallError"},"id":{"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"output":{"type":["string","null"]},"server_label":{"type":"string"},"type":{"enum":["mcp_call"],"type":"string"}},"required":["type","id","name","arguments","server_label"],"type":"object"},"McpHttpError":{"example":{"code":503,"message":"Service Unavailable","type":"http_error"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"type":{"enum":["http_error"],"type":"string"}},"required":["type","code","message"],"type":"object"},"McpListToolsItem":{"example":{"id":"mcp-list-abc123","server_label":"database-server","tools":[{"input_schema":{"properties":{"query":{"description":"Запрос, относительно которого оцениваются документы.","type":"string"}},"type":"object"},"name":"query_database"}],"type":"mcp_list_tools"},"properties":{"error":{"type":["string","null"]},"id":{"type":"string"},"server_label":{"type":"string"},"tools":{"description":"Инструменты, которые модель может вызвать.","items":{"description":"Инструменты, которые модель может вызвать.","properties":{"annotations":{},"description":{"type":["string","null"]},"input_schema":{"additionalProperties":{},"type":"object"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"}},"required":["name","input_schema"],"type":"object"},"type":"array"},"type":{"enum":["mcp_list_tools"],"type":"string"}},"required":["type","id","server_label","tools"],"type":"object"},"McpProtocolError":{"example":{"code":-32601,"message":"Method not found","type":"mcp_protocol_error"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"type":{"enum":["mcp_protocol_error"],"type":"string"}},"required":["type","code","message"],"type":"object"},"McpServerTool":{"example":{"server_label":"my-server","server_url":"https://example.com/mcp","type":"mcp"},"properties":{"allowed_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"properties":{"read_only":{"type":"boolean"},"tool_names":{"items":{"type":"string"},"type":"array"}},"type":"object"},{"type":"null"}]},"authorization":{"type":"string"},"connector_id":{"enum":["connector_dropbox","connector_gmail","connector_googlecalendar","connector_googledrive","connector_microsoftteams","connector_outlookcalendar","connector_outlookemail","connector_sharepoint"],"type":"string","x-speakeasy-unknown-values":"allow"},"headers":{"additionalProperties":{"type":"string"},"type":["object","null"]},"require_approval":{"anyOf":[{"properties":{"always":{"properties":{"tool_names":{"items":{"type":"string"},"type":"array"}},"type":"object"},"never":{"properties":{"tool_names":{"items":{"type":"string"},"type":"array"}},"type":"object"}},"type":"object"},{"enum":["always"],"type":"string"},{"enum":["never"],"type":"string"},{"type":"null"}]},"server_description":{"type":"string"},"server_label":{"type":"string"},"server_url":{"type":"string"},"type":{"enum":["mcp"],"type":"string"}},"required":["type","server_label"],"type":"object"},"McpToolCallError":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/McpProtocolError"},{"$ref":"#/components/schemas/McpToolExecutionError"},{"$ref":"#/components/schemas/McpHttpError"},{"type":"null"}],"example":{"code":503,"message":"Service Unavailable","type":"http_error"}},"McpToolExecutionError":{"example":{"content":"Connection refused","type":"mcp_tool_execution_error"},"properties":{"content":{"description":"Содержимое сообщения или входные данные."},"type":{"enum":["mcp_tool_execution_error"],"type":"string"}},"required":["type"],"type":"object"},"MemberAssignment":{"example":{"assigned_by":"user_abc123","created_at":"2025-08-24T10:30:00Z","guardrail_id":"550e8400-e29b-41d4-a716-446655440001","id":"550e8400-e29b-41d4-a716-446655440000","organization_id":"org_xyz789","user_id":"user_abc123"},"properties":{"assigned_by":{"example":"user_abc123","type":["string","null"]},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"guardrail_id":{"example":"550e8400-e29b-41d4-a716-446655440001","format":"uuid","type":"string"},"id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"},"organization_id":{"example":"org_xyz789","type":"string"},"user_id":{"example":"user_abc123","type":"string"}},"required":["id","user_id","organization_id","guardrail_id","assigned_by","created_at"],"type":"object"},"MessagesAdvisorToolResultBlock":{"example":{"content":{"text":"Advisor response text","type":"advisor_result"},"tool_use_id":"srvtoolu_01abc","type":"advisor_tool_result"},"properties":{"content":{"additionalProperties":{"description":"Содержимое сообщения или входные данные."},"description":"Содержимое сообщения или входные данные.","type":"object"},"tool_use_id":{"type":"string"},"type":{"enum":["advisor_tool_result"],"type":"string"}},"required":["type","tool_use_id","content"],"type":"object"},"MessagesBashToolResultBlock":{"example":{"content":{"command":"ls","exitCode":0,"stderr":"","stdout":"README.md\n"},"tool_use_id":"srvtoolu_01abc","type":"openrouter_bash_tool_result"},"properties":{"container_id":{"type":"string"},"content":{"additionalProperties":{"description":"Содержимое сообщения или входные данные."},"description":"Содержимое сообщения или входные данные.","type":"object"},"files":{"items":{"properties":{"container_id":{"type":"string"},"end_index":{"type":"integer"},"file_id":{"type":"string"},"filename":{"type":"string"},"start_index":{"type":"integer"},"type":{"enum":["container_file_citation"],"type":"string"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object"},"type":"array"},"tool_use_id":{"type":"string"},"type":{"enum":["openrouter_bash_tool_result"],"type":"string"}},"required":["type","tool_use_id","content"],"type":"object"},"MessagesContentBlockDeltaEvent":{"example":{"delta":{"text":"Hello","type":"text_delta"},"index":0,"type":"content_block_delta"},"properties":{"delta":{"oneOf":[{"properties":{"text":{"type":"string"},"type":{"enum":["text_delta"],"type":"string"}},"required":["type","text"],"type":"object"},{"properties":{"partial_json":{"type":"string"},"type":{"enum":["input_json_delta"],"type":"string"}},"required":["type","partial_json"],"type":"object"},{"properties":{"thinking":{"type":"string"},"type":{"enum":["thinking_delta"],"type":"string"}},"required":["type","thinking"],"type":"object"},{"properties":{"signature":{"type":"string"},"type":{"enum":["signature_delta"],"type":"string"}},"required":["type","signature"],"type":"object"},{"properties":{"citation":{"discriminator":{"mapping":{"char_location":"#/components/schemas/AnthropicCitationCharLocation","content_block_location":"#/components/schemas/AnthropicCitationContentBlockLocation","page_location":"#/components/schemas/AnthropicCitationPageLocation","search_result_location":"#/components/schemas/AnthropicCitationSearchResultLocation","web_search_result_location":"#/components/schemas/AnthropicCitationWebSearchResultLocation"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/AnthropicCitationCharLocation"},{"$ref":"#/components/schemas/AnthropicCitationPageLocation"},{"$ref":"#/components/schemas/AnthropicCitationContentBlockLocation"},{"$ref":"#/components/schemas/AnthropicCitationWebSearchResultLocation"},{"$ref":"#/components/schemas/AnthropicCitationSearchResultLocation"}]},"type":{"enum":["citations_delta"],"type":"string"}},"required":["type","citation"],"type":"object"},{"properties":{"content":{"description":"Содержимое сообщения или входные данные.","type":["string","null"]},"encrypted_content":{"type":["string","null"]},"type":{"enum":["compaction_delta"],"type":"string"}},"required":["type","content"],"type":"object"}]},"index":{"description":"Номер результата в задаче генерации.","type":"integer"},"type":{"enum":["content_block_delta"],"type":"string"}},"required":["type","index","delta"],"type":"object"},"MessagesContentBlockStartEvent":{"example":{"content_block":{"citations":[],"text":"","type":"text"},"index":0,"type":"content_block_start"},"properties":{"content_block":{"anyOf":[{"$ref":"#/components/schemas/AnthropicTextBlock"},{"$ref":"#/components/schemas/AnthropicToolUseBlock"},{"$ref":"#/components/schemas/AnthropicThinkingBlock"},{"$ref":"#/components/schemas/AnthropicRedactedThinkingBlock"},{"$ref":"#/components/schemas/ORAnthropicServerToolUseBlock"},{"$ref":"#/components/schemas/AnthropicWebSearchToolResult"},{"$ref":"#/components/schemas/AnthropicWebFetchToolResult"},{"$ref":"#/components/schemas/AnthropicCodeExecutionToolResult"},{"$ref":"#/components/schemas/AnthropicBashCodeExecutionToolResult"},{"$ref":"#/components/schemas/AnthropicTextEditorCodeExecutionToolResult"},{"$ref":"#/components/schemas/AnthropicToolSearchToolResult"},{"$ref":"#/components/schemas/AnthropicContainerUpload"},{"$ref":"#/components/schemas/AnthropicCompactionBlock"},{"$ref":"#/components/schemas/AnthropicAdvisorToolResult"},{"$ref":"#/components/schemas/ORAnthropicShellToolResult"},{"$ref":"#/components/schemas/ORAnthropicBashToolResult"},{"properties":{"content":{"description":"Содержимое сообщения или входные данные.","type":["string","null"]},"encrypted_content":{"type":["string","null"]},"type":{"enum":["compaction"],"type":"string"}},"required":["type","content"],"type":"object"}]},"index":{"description":"Номер результата в задаче генерации.","type":"integer"},"type":{"enum":["content_block_start"],"type":"string"}},"required":["type","index","content_block"],"type":"object"},"MessagesContentBlockStopEvent":{"example":{"index":0,"type":"content_block_stop"},"properties":{"index":{"description":"Номер результата в задаче генерации.","type":"integer"},"type":{"enum":["content_block_stop"],"type":"string"}},"required":["type","index"],"type":"object"},"MessagesDeltaEvent":{"example":{"delta":{"container":null,"stop_details":null,"stop_reason":"end_turn","stop_sequence":null},"type":"message_delta","usage":{"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"input_tokens":null,"output_tokens":15,"output_tokens_details":null,"server_tool_use":null}},"properties":{"delta":{"properties":{"container":{"$ref":"#/components/schemas/AnthropicContainer"},"stop_details":{"$ref":"#/components/schemas/AnthropicRefusalStopDetails"},"stop_reason":{"$ref":"#/components/schemas/ORAnthropicStopReason"},"stop_sequence":{"type":["string","null"]}},"required":["container","stop_details","stop_reason","stop_sequence"],"type":"object"},"type":{"enum":["message_delta"],"type":"string"},"usage":{"description":"Сведения об использованных токенах и стоимости.","properties":{"cache_creation":{"$ref":"#/components/schemas/AnthropicCacheCreation"},"cache_creation_input_tokens":{"type":["integer","null"]},"cache_read_input_tokens":{"type":["integer","null"]},"input_tokens":{"type":["integer","null"]},"iterations":{"items":{"$ref":"#/components/schemas/AnthropicUsageIteration"},"type":"array"},"output_tokens":{"type":"integer"},"output_tokens_details":{"$ref":"#/components/schemas/AnthropicOutputTokensDetails"},"server_tool_use":{"$ref":"#/components/schemas/ORAnthropicServerToolUsage"}},"required":["input_tokens","output_tokens","output_tokens_details","cache_creation_input_tokens","cache_read_input_tokens","server_tool_use"],"type":"object"}},"required":["type","delta","usage"],"type":"object"},"MessagesErrorEvent":{"example":{"error":{"error_type":"provider_overloaded","message":"Overloaded","type":"overloaded_error"},"type":"error"},"properties":{"error":{"properties":{"error_type":{"$ref":"#/components/schemas/ApiErrorType"},"message":{"type":"string"},"type":{"type":"string"}},"required":["type","message"],"type":"object"},"openrouter_metadata":{"$ref":"#/components/schemas/OpenRouterMetadata"},"type":{"enum":["error"],"type":"string"}},"required":["type","error"],"type":"object"},"MessagesFallbackParam":{"additionalProperties":{},"example":{"model":"claude-opus-4-8"},"properties":{"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"}},"required":["model"],"type":"object"},"MessagesMessageParam":{"example":{"content":"Hello, how are you?","role":"user"},"properties":{"clear_at":{"$ref":"#/components/schemas/AnthropicSystemClearAt"},"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","type":"string"},{"description":"Содержимое сообщения или входные данные.","items":{"description":"Содержимое сообщения или входные данные.","oneOf":[{"$ref":"#/components/schemas/AnthropicTextBlockParam","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/AnthropicImageBlockParam","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/AnthropicDocumentBlockParam","description":"Содержимое сообщения или входные данные."},{"description":"Содержимое сообщения или входные данные.","properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"id":{"type":"string"},"input":{"description":"Входной текст или массив входных данных."},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"type":{"enum":["tool_use"],"type":"string"}},"required":["type","id","name"],"type":"object"},{"description":"Содержимое сообщения или входные данные.","properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","type":"string"},{"description":"Содержимое сообщения или входные данные.","items":{"anyOf":[{"$ref":"#/components/schemas/AnthropicTextBlockParam","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/AnthropicImageBlockParam","description":"Содержимое сообщения или входные данные."},{"description":"Содержимое сообщения или входные данные.","properties":{"tool_name":{"type":"string"},"type":{"enum":["tool_reference"],"type":"string"}},"required":["type","tool_name"],"type":"object"},{"$ref":"#/components/schemas/AnthropicSearchResultBlockParam","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/AnthropicDocumentBlockParam","description":"Содержимое сообщения или входные данные."}],"description":"Содержимое сообщения или входные данные."},"type":"array"}],"description":"Содержимое сообщения или входные данные."},"is_error":{"type":"boolean"},"tool_use_id":{"type":"string"},"type":{"enum":["tool_result"],"type":"string"}},"required":["type","tool_use_id"],"type":"object"},{"description":"Содержимое сообщения или входные данные.","properties":{"signature":{"type":"string"},"thinking":{"type":"string"},"type":{"enum":["thinking"],"type":"string"}},"required":["type","thinking","signature"],"type":"object"},{"description":"Содержимое сообщения или входные данные.","properties":{"data":{"type":"string"},"type":{"enum":["redacted_thinking"],"type":"string"}},"required":["type","data"],"type":"object"},{"description":"Содержимое сообщения или входные данные.","properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"id":{"type":"string"},"input":{"description":"Входной текст или массив входных данных."},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"type":{"enum":["server_tool_use"],"type":"string"}},"required":["type","id","name"],"type":"object"},{"description":"Содержимое сообщения или входные данные.","properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/AnthropicWebSearchResultBlockParam","description":"Содержимое сообщения или входные данные."},"type":"array"},{"description":"Содержимое сообщения или входные данные.","properties":{"error_code":{"enum":["invalid_tool_input","unavailable","max_uses_exceeded","too_many_requests","query_too_long"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["web_search_tool_result_error"],"type":"string"}},"required":["type","error_code"],"type":"object"}],"description":"Содержимое сообщения или входные данные."},"tool_use_id":{"type":"string"},"type":{"enum":["web_search_tool_result"],"type":"string"}},"required":["type","tool_use_id","content"],"type":"object"},{"$ref":"#/components/schemas/AnthropicSearchResultBlockParam","description":"Содержимое сообщения или входные данные."},{"description":"Содержимое сообщения или входные данные.","properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"content":{"description":"Содержимое сообщения или входные данные.","type":["string","null"]},"encrypted_content":{"type":["string","null"]},"type":{"enum":["compaction"],"type":"string"}},"required":["type","content"],"type":"object"},{"$ref":"#/components/schemas/MessagesAdvisorToolResultBlock","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/MessagesToolAdditionBlock","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/MessagesToolRemovalBlock","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/MessagesShellToolResultBlock","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/MessagesBashToolResultBlock","description":"Содержимое сообщения или входные данные."}]},"type":"array"}],"description":"Содержимое сообщения или входные данные."},"output_config":{"$ref":"#/components/schemas/AnthropicMessageOutputConfig"},"role":{"description":"Роль участника диалога.","enum":["user","assistant","system"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["role","content"],"type":"object"},"MessagesOutputConfig":{"example":{"effort":"medium"},"properties":{"effort":{"enum":["low","medium","high","xhigh","max",null],"example":"medium","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"format":{"properties":{"schema":{"additionalProperties":{},"type":"object"},"type":{"enum":["json_schema"],"type":"string"}},"required":["type","schema"],"type":["object","null"]},"task_budget":{"example":{"total":400000,"type":"tokens"},"properties":{"remaining":{"minimum":0,"type":["integer","null"]},"total":{"minimum":20000,"type":"integer"},"type":{"enum":["tokens"],"type":"string"}},"required":["type","total"],"type":["object","null"]}},"type":"object"},"MessagesPingEvent":{"example":{"type":"ping"},"properties":{"type":{"enum":["ping"],"type":"string"}},"required":["type"],"type":"object"},"MessagesRequest":{"example":{"max_tokens":1024,"messages":[{"content":"Hello, how are you?","role":"user"}],"model":"anthropic/claude-4.5-sonnet-20250929","temperature":0.7},"properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"context_management":{"properties":{"edits":{"items":{"oneOf":[{"properties":{"clear_at_least":{"$ref":"#/components/schemas/AnthropicInputTokensClearAtLeast"},"clear_tool_inputs":{"anyOf":[{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"type":"null"}]},"exclude_tools":{"items":{"type":"string"},"type":["array","null"]},"keep":{"$ref":"#/components/schemas/AnthropicToolUsesKeep"},"trigger":{"discriminator":{"mapping":{"input_tokens":"#/components/schemas/AnthropicInputTokensTrigger","tool_uses":"#/components/schemas/AnthropicToolUsesTrigger"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/AnthropicInputTokensTrigger"},{"$ref":"#/components/schemas/AnthropicToolUsesTrigger"}]},"type":{"enum":["clear_tool_uses_20250919"],"type":"string"}},"required":["type"],"type":"object"},{"properties":{"keep":{"anyOf":[{"$ref":"#/components/schemas/AnthropicThinkingTurns"},{"properties":{"type":{"enum":["all"],"type":"string"}},"required":["type"],"type":"object"},{"enum":["all"],"type":"string"}]},"type":{"enum":["clear_thinking_20251015"],"type":"string"}},"required":["type"],"type":"object"},{"properties":{"instructions":{"description":"Дополнительные инструкции для модели.","type":["string","null"]},"pause_after_compaction":{"type":"boolean"},"trigger":{"anyOf":[{"allOf":[{"$ref":"#/components/schemas/AnthropicInputTokensTrigger"},{"properties":{},"type":"object"}]},{"type":"null"}],"example":{"type":"input_tokens","value":100000}},"type":{"enum":["compact_20260112"],"type":"string"}},"required":["type"],"type":"object"}]},"type":"array"}},"type":["object","null"]},"fallbacks":{"example":[{"model":"claude-opus-4-8"}],"items":{"$ref":"#/components/schemas/MessagesFallbackParam"},"type":["array","null"]},"max_tokens":{"description":"Максимальное количество токенов в ответе.","type":"integer"},"messages":{"description":"История сообщений диалога.","items":{"$ref":"#/components/schemas/MessagesMessageParam","description":"История сообщений диалога."},"type":["array","null"]},"metadata":{"description":"Дополнительные метаданные запроса.","properties":{"user_id":{"type":["string","null"]}},"type":"object"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"models":{"description":"Дополнительные модели для резервной маршрутизации.","items":{"description":"Дополнительные модели для резервной маршрутизации.","type":"string"},"type":"array"},"output_config":{"$ref":"#/components/schemas/MessagesOutputConfig"},"plugins":{"items":{"discriminator":{"mapping":{"auto-beta-router":"#/components/schemas/AutoBetaRouterPlugin","auto-router":"#/components/schemas/AutoRouterPlugin","context-compression":"#/components/schemas/ContextCompressionPlugin","file-parser":"#/components/schemas/FileParserPlugin","fusion":"#/components/schemas/FusionPlugin","moderation":"#/components/schemas/ModerationPlugin","pareto-router":"#/components/schemas/ParetoRouterPlugin","response-healing":"#/components/schemas/ResponseHealingPlugin","web":"#/components/schemas/WebSearchPlugin","web-fetch":"#/components/schemas/WebFetchPlugin"},"propertyName":"id"},"oneOf":[{"$ref":"#/components/schemas/AutoRouterPlugin"},{"$ref":"#/components/schemas/AutoBetaRouterPlugin"},{"$ref":"#/components/schemas/ModerationPlugin"},{"$ref":"#/components/schemas/WebSearchPlugin"},{"$ref":"#/components/schemas/WebFetchPlugin"},{"$ref":"#/components/schemas/FileParserPlugin"},{"$ref":"#/components/schemas/ResponseHealingPlugin"},{"$ref":"#/components/schemas/ContextCompressionPlugin"},{"$ref":"#/components/schemas/ParetoRouterPlugin"},{"$ref":"#/components/schemas/FusionPlugin"}]},"type":"array"},"provider":{"$ref":"#/components/schemas/ProviderPreferences","description":"Настройки выбора и маршрутизации провайдера."},"route":{"$ref":"#/components/schemas/DeprecatedRoute","description":"Правило маршрутизации запроса."},"service_tier":{"description":"Желаемый уровень обслуживания запроса.","type":"string"},"session_id":{"maxLength":256,"type":"string"},"speed":{"allOf":[{"$ref":"#/components/schemas/AnthropicSpeed","description":"Скорость воспроизведения речи."},{"description":"Скорость воспроизведения речи.","example":"fast"}],"description":"Скорость воспроизведения речи."},"stop_sequences":{"items":{"type":"string"},"type":"array"},"stop_server_tools_when":{"$ref":"#/components/schemas/StopServerToolsWhen"},"stream":{"description":"Возвращать ответ постепенно в виде потока событий.","type":"boolean"},"system":{"anyOf":[{"type":"string"},{"items":{"$ref":"#/components/schemas/AnthropicTextBlockParam"},"type":"array"}]},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","format":"double","type":"number"},"thinking":{"oneOf":[{"properties":{"block_binding":{"$ref":"#/components/schemas/AnthropicThinkingBlockBinding"},"budget_tokens":{"type":"integer"},"display":{"$ref":"#/components/schemas/AnthropicThinkingDisplay"},"type":{"enum":["enabled"],"type":"string"}},"required":["type","budget_tokens"],"type":"object"},{"properties":{"type":{"enum":["disabled"],"type":"string"}},"required":["type"],"type":"object"},{"properties":{"block_binding":{"$ref":"#/components/schemas/AnthropicThinkingBlockBinding"},"display":{"$ref":"#/components/schemas/AnthropicThinkingDisplay"},"type":{"enum":["adaptive"],"type":"string"}},"required":["type"],"type":"object"}]},"tool_choice":{"description":"Правило выбора инструмента моделью.","oneOf":[{"description":"Правило выбора инструмента моделью.","properties":{"disable_parallel_tool_use":{"type":"boolean"},"type":{"enum":["auto"],"type":"string"}},"required":["type"],"type":"object"},{"description":"Правило выбора инструмента моделью.","properties":{"disable_parallel_tool_use":{"type":"boolean"},"type":{"enum":["any"],"type":"string"}},"required":["type"],"type":"object"},{"description":"Правило выбора инструмента моделью.","properties":{"type":{"enum":["none"],"type":"string"}},"required":["type"],"type":"object"},{"description":"Правило выбора инструмента моделью.","properties":{"disable_parallel_tool_use":{"type":"boolean"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"type":{"enum":["tool"],"type":"string"}},"required":["type","name"],"type":"object"}]},"tools":{"description":"Инструменты, которые модель может вызвать.","items":{"anyOf":[{"description":"Инструменты, которые модель может вызвать.","properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"defer_loading":{"type":"boolean"},"description":{"type":"string"},"input_schema":{"additionalProperties":{},"properties":{"properties":{},"required":{"items":{"type":"string"},"type":["array","null"]},"type":{"default":"object","type":"string"}},"type":"object"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"type":{"enum":["custom"],"type":"string"}},"required":["name","input_schema"],"type":"object"},{"description":"Инструменты, которые модель может вызвать.","properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"name":{"description":"Необязательное имя участника или инструмента.","enum":["bash"],"type":"string"},"type":{"enum":["bash_20250124"],"type":"string"}},"required":["type","name"],"type":"object"},{"description":"Инструменты, которые модель может вызвать.","properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"name":{"description":"Необязательное имя участника или инструмента.","enum":["str_replace_editor"],"type":"string"},"type":{"enum":["text_editor_20250124"],"type":"string"}},"required":["type","name"],"type":"object"},{"description":"Инструменты, которые модель может вызвать.","properties":{"allowed_domains":{"items":{"type":"string"},"type":["array","null"]},"blocked_domains":{"items":{"type":"string"},"type":["array","null"]},"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"max_uses":{"type":["integer","null"]},"name":{"description":"Необязательное имя участника или инструмента.","enum":["web_search"],"type":"string"},"type":{"enum":["web_search_20250305"],"type":"string"},"user_location":{"$ref":"#/components/schemas/AnthropicWebSearchToolUserLocation"}},"required":["type","name"],"type":"object"},{"description":"Инструменты, которые модель может вызвать.","properties":{"allowed_callers":{"$ref":"#/components/schemas/AnthropicAllowedCallers"},"allowed_domains":{"items":{"type":"string"},"type":["array","null"]},"blocked_domains":{"items":{"type":"string"},"type":["array","null"]},"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"max_uses":{"type":["integer","null"]},"name":{"description":"Необязательное имя участника или инструмента.","enum":["web_search"],"type":"string"},"type":{"enum":["web_search_20260209"],"type":"string"},"user_location":{"$ref":"#/components/schemas/AnthropicWebSearchToolUserLocation"}},"required":["type","name"],"type":"object"},{"description":"Инструменты, которые модель может вызвать.","properties":{"allowed_callers":{"$ref":"#/components/schemas/AnthropicAllowedCallers"},"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"caching":{"anyOf":[{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},{"type":"null"}]},"defer_loading":{"type":"boolean"},"max_uses":{"type":"integer"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","enum":["advisor"],"type":"string"},"type":{"enum":["advisor_20260301"],"type":"string"}},"required":["type","name","model"],"type":"object"},{"$ref":"#/components/schemas/BashServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/DatetimeServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ImageGenerationServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/MessagesSearchModelsServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/WebFetchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/OpenRouterWebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"additionalProperties":{"description":"Инструменты, которые модель может вызвать."},"description":"Инструменты, которые модель может вызвать.","properties":{"type":{"type":"string"}},"required":["type"],"type":"object"},{"$ref":"#/components/schemas/AnthropicToolSearchToolBm25","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/AnthropicToolSearchToolRegex","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ShellServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ToolSearchServerTool","description":"Инструменты, которые модель может вызвать."}],"description":"Инструменты, которые модель может вызвать."},"type":"array"},"top_k":{"description":"Количество наиболее вероятных токенов для выборки.","type":"integer"},"top_p":{"description":"Порог вероятностной выборки токенов.","format":"double","type":"number"},"trace":{"$ref":"#/components/schemas/TraceConfig"},"user":{"description":"Идентификатор конечного пользователя.","maxLength":256,"type":"string"}},"required":["model","messages"],"type":"object"},"MessagesResult":{"allOf":[{"$ref":"#/components/schemas/BaseMessagesResult"},{"properties":{"context_management":{"properties":{"applied_edits":{"items":{"additionalProperties":{},"properties":{"type":{"type":"string"}},"required":["type"],"type":"object"},"type":"array"}},"required":["applied_edits"],"type":["object","null"]},"openrouter_metadata":{"$ref":"#/components/schemas/OpenRouterMetadata"},"provider":{"$ref":"#/components/schemas/ProviderName","description":"Настройки выбора и маршрутизации провайдера."},"usage":{"allOf":[{"$ref":"#/components/schemas/AnthropicUsage","description":"Сведения об использованных токенах и стоимости."},{"description":"Сведения об использованных токенах и стоимости.","properties":{"cost":{"format":"double","type":["number","null"]},"cost_details":{"$ref":"#/components/schemas/CostDetails"},"is_byok":{"type":"boolean"},"iterations":{"items":{"$ref":"#/components/schemas/AnthropicUsageIteration"},"type":"array"},"server_tool_use":{"$ref":"#/components/schemas/ORAnthropicServerToolUsage"},"service_tier":{"description":"Желаемый уровень обслуживания запроса.","type":["string","null"]},"speed":{"$ref":"#/components/schemas/AnthropicSpeed","description":"Скорость воспроизведения речи."}},"type":"object"}],"description":"Сведения об использованных токенах и стоимости.","example":{"cache_creation":null,"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"description":"Сведения об использованных токенах и стоимости.","inference_geo":null,"input_tokens":100,"output_tokens":50,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"}}},"type":"object"}],"example":{"container":null,"content":[{"citations":[],"text":"Hello! I'm doing well, thank you for asking.","type":"text"}],"id":"msg_01XFDUDYJgAACzvnptvVoYEL","model":"claude-sonnet-4-5-20250929","role":"assistant","stop_details":null,"stop_reason":"end_turn","stop_sequence":null,"type":"message","usage":{"cache_creation":null,"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"inference_geo":null,"input_tokens":12,"output_tokens":15,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"}}},"MessagesSearchModelsServerTool":{"example":{"parameters":{"max_results":5},"type":"openrouter:experimental__search_models"},"properties":{"parameters":{"$ref":"#/components/schemas/SearchModelsServerToolConfig"},"type":{"enum":["openrouter:experimental__search_models"],"type":"string"}},"required":["type"],"type":"object"},"MessagesShellToolResultBlock":{"example":{"content":{"output":[{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"README.md\n"}]},"tool_use_id":"srvtoolu_01abc","type":"openrouter_shell_tool_result"},"properties":{"container_id":{"type":"string"},"content":{"additionalProperties":{"description":"Содержимое сообщения или входные данные."},"description":"Содержимое сообщения или входные данные.","type":"object"},"files":{"items":{"properties":{"container_id":{"type":"string"},"end_index":{"type":"integer"},"file_id":{"type":"string"},"filename":{"type":"string"},"start_index":{"type":"integer"},"type":{"enum":["container_file_citation"],"type":"string"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object"},"type":"array"},"tool_use_id":{"type":"string"},"type":{"enum":["openrouter_shell_tool_result"],"type":"string"}},"required":["type","tool_use_id","content"],"type":"object"},"MessagesStartEvent":{"example":{"message":{"container":null,"content":[],"id":"msg_01XFDUDYJgAACzvnptvVoYEL","model":"claude-sonnet-4-5-20250929","role":"assistant","stop_details":null,"stop_reason":null,"stop_sequence":null,"type":"message","usage":{"cache_creation":null,"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"inference_geo":null,"input_tokens":12,"output_tokens":0,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"}},"type":"message_start"},"properties":{"message":{"properties":{"container":{"$ref":"#/components/schemas/AnthropicContainer"},"content":{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/ORAnthropicContentBlock","description":"Содержимое сообщения или входные данные."},"type":"array"},"id":{"type":"string"},"input_transformations":{"items":{"$ref":"#/components/schemas/AnthropicInputTransformation"},"type":["array","null"]},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"provider":{"description":"Настройки выбора и маршрутизации провайдера.","enum":["AnyScale","Atoma","Cent-ML","CrofAI","Enfer","GoPomelo","HuggingFace","Hyperbolic","Hyperbolic 2","InoCloud","Kluster","Lambda","Lepton","Lynn 2","Lynn","Mancer","Modal","NCompass","Nineteen","OctoAI","Recursal","Reflection","Replicate","SambaNova 2","SF Compute","Targon","Together 2","Ubicloud","01.AI","AkashML","AI21","AionLabs","Alibaba","Ambient","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parasail","Poolside","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Reka","Relace","Sail Research","Sakana AI","SambaNova","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"type":"string","x-speakeasy-unknown-values":"allow"},"role":{"description":"Роль участника диалога.","enum":["assistant"],"type":"string"},"stop_details":{"$ref":"#/components/schemas/AnthropicRefusalStopDetails"},"stop_reason":{},"stop_sequence":{},"type":{"enum":["message"],"type":"string"},"usage":{"allOf":[{"$ref":"#/components/schemas/AnthropicUsage","description":"Сведения об использованных токенах и стоимости."},{"description":"Сведения об использованных токенах и стоимости.","properties":{"iterations":{"items":{"$ref":"#/components/schemas/AnthropicUsageIteration"},"type":"array"},"speed":{"$ref":"#/components/schemas/AnthropicSpeed","description":"Скорость воспроизведения речи."}},"type":"object"}],"description":"Сведения об использованных токенах и стоимости.","example":{"cache_creation":{"description":"Сведения об использованных токенах и стоимости.","ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":7381},"cache_creation_input_tokens":7381,"cache_read_input_tokens":0,"description":"Сведения об использованных токенах и стоимости.","inference_geo":null,"input_tokens":100,"output_tokens":1,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"}}},"required":["id","type","role","container","content","model","stop_reason","stop_details","stop_sequence","usage"],"type":"object"},"type":{"enum":["message_start"],"type":"string"}},"required":["type","message"],"type":"object"},"MessagesStopEvent":{"example":{"type":"message_stop"},"properties":{"openrouter_metadata":{"$ref":"#/components/schemas/OpenRouterMetadata"},"type":{"enum":["message_stop"],"type":"string"}},"required":["type"],"type":"object"},"MessagesStreamEvents":{"discriminator":{"mapping":{"content_block_delta":"#/components/schemas/MessagesContentBlockDeltaEvent","content_block_start":"#/components/schemas/MessagesContentBlockStartEvent","content_block_stop":"#/components/schemas/MessagesContentBlockStopEvent","error":"#/components/schemas/MessagesErrorEvent","message_delta":"#/components/schemas/MessagesDeltaEvent","message_start":"#/components/schemas/MessagesStartEvent","message_stop":"#/components/schemas/MessagesStopEvent","ping":"#/components/schemas/MessagesPingEvent"},"propertyName":"type"},"example":{"delta":{"text":"Hello","type":"text_delta"},"index":0,"type":"content_block_delta"},"oneOf":[{"$ref":"#/components/schemas/MessagesStartEvent"},{"$ref":"#/components/schemas/MessagesDeltaEvent"},{"$ref":"#/components/schemas/MessagesStopEvent"},{"$ref":"#/components/schemas/MessagesContentBlockStartEvent"},{"$ref":"#/components/schemas/MessagesContentBlockDeltaEvent"},{"$ref":"#/components/schemas/MessagesContentBlockStopEvent"},{"$ref":"#/components/schemas/MessagesPingEvent"},{"$ref":"#/components/schemas/MessagesErrorEvent"}]},"MessagesStreamingResponse":{"example":{"data":{"delta":{"text":"Hello","type":"text_delta"},"index":0,"type":"content_block_delta"},"event":"content_block_delta"},"properties":{"data":{"$ref":"#/components/schemas/MessagesStreamEvents"},"event":{"type":"string"}},"required":["event","data"],"type":"object"},"MessagesToolAdditionBlock":{"example":{"tool":{"name":"get_forecast","type":"tool_reference"},"type":"tool_addition"},"properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"tool":{"oneOf":[{"properties":{"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"type":{"enum":["tool_reference"],"type":"string"}},"required":["type","name"],"type":"object"},{"properties":{"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"server_name":{"type":"string"},"type":{"enum":["mcp_tool_reference"],"type":"string"}},"required":["type","name","server_name"],"type":"object"},{"properties":{"server_name":{"type":"string"},"type":{"enum":["mcp_toolset_reference"],"type":"string"}},"required":["type","server_name"],"type":"object"}]},"type":{"enum":["tool_addition"],"type":"string"}},"required":["type","tool"],"type":"object"},"MessagesToolRemovalBlock":{"example":{"tool":{"name":"get_weather","type":"tool_reference"},"type":"tool_removal"},"properties":{"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"tool":{"oneOf":[{"properties":{"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"type":{"enum":["tool_reference"],"type":"string"}},"required":["type","name"],"type":"object"},{"properties":{"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"server_name":{"type":"string"},"type":{"enum":["mcp_tool_reference"],"type":"string"}},"required":["type","name","server_name"],"type":"object"},{"properties":{"server_name":{"type":"string"},"type":{"enum":["mcp_toolset_reference"],"type":"string"}},"required":["type","server_name"],"type":"object"}]},"type":{"enum":["tool_removal"],"type":"string"}},"required":["type","tool"],"type":"object"},"MetadataLevel":{"enum":["disabled","enabled"],"example":"enabled","type":"string","x-speakeasy-unknown-values":"allow"},"Model":{"example":{"architecture":{"input_modalities":["text"],"instruct_type":"chatml","modality":"text-\u003etext","output_modalities":["text"],"tokenizer":"GPT"},"canonical_slug":"openai/gpt-4","context_length":8192,"created":1692901234,"default_parameters":null,"expiration_date":null,"id":"openai/gpt-4","knowledge_cutoff":null,"links":{"details":"/api/v1/models/openai/gpt-5.4/endpoints"},"name":"GPT-4","per_request_limits":null,"pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"reasoning":{"default_effort":"medium","default_enabled":true,"mandatory":false,"supported_efforts":["high","medium","low","minimal"]},"supported_parameters":["temperature","top_p","max_tokens"],"supported_voices":null,"top_provider":{"context_length":8192,"is_moderated":true,"max_completion_tokens":4096}},"properties":{"alias_target":{"$ref":"#/components/schemas/ModelAliasTarget"},"architecture":{"$ref":"#/components/schemas/ModelArchitecture"},"benchmarks":{"$ref":"#/components/schemas/ModelBenchmarks"},"canonical_slug":{"example":"openai/gpt-4","type":"string"},"context_length":{"example":8192,"type":["integer","null"]},"created":{"example":1692901234,"type":"integer"},"default_parameters":{"$ref":"#/components/schemas/DefaultParameters"},"description":{"example":"GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.","type":"string"},"expiration_date":{"example":"2025-06-01","type":["string","null"]},"hugging_face_id":{"example":"microsoft/DialoGPT-medium","type":["string","null"]},"id":{"example":"openai/gpt-4","type":"string"},"knowledge_cutoff":{"example":"2024-10-01","type":["string","null"]},"links":{"$ref":"#/components/schemas/ModelLinks"},"llmora":{"properties":{"input_modalities":{"items":{"type":"string"},"type":"array"},"max_file_size_bytes":{"description":"Максимальный размер входного файла в байтах.","example":52428800,"format":"int64","type":"integer"},"max_input_characters":{"description":"Максимум символов Unicode для TTS. Ноль означает, что лимит не указан.","example":30000,"minimum":0,"type":"integer"},"max_input_files":{"description":"Максимум входных файлов.","example":1,"minimum":0,"type":"integer"},"model_type":{"enum":["chat","systemone","audio"],"type":"string"},"output_modalities":{"description":"Фильтр по поддерживаемым типам результата.","items":{"description":"Фильтр по поддерживаемым типам результата.","type":"string"},"type":"array"},"supported_api_endpoints":{"items":{"properties":{"method":{"type":"string"},"path":{"type":"string"}},"type":"object"},"type":"array"},"supports_image_output":{"type":"boolean"},"supports_pdf":{"type":"boolean"}},"type":"object"},"name":{"description":"Необязательное имя участника или инструмента.","example":"GPT-4","type":"string"},"per_request_limits":{"$ref":"#/components/schemas/PerRequestLimits"},"pricing":{"$ref":"#/components/schemas/PublicPricing"},"reasoning":{"$ref":"#/components/schemas/ModelReasoning","description":"Настройки рассуждения модели."},"supported_parameters":{"items":{"$ref":"#/components/schemas/Parameter"},"type":"array"},"supported_voices":{"description":"Имена голосов, доступные для выбранной речевой модели.","example":["george","sarah"],"items":{"type":"string"},"type":"array"},"top_provider":{"$ref":"#/components/schemas/TopProviderInfo"}},"required":["id","canonical_slug","name","created","pricing","context_length","architecture","top_provider","per_request_limits","supported_parameters","default_parameters","supported_voices","links"],"type":"object"},"ModelAliasTarget":{"example":{"name":"Claude Sonnet 4.5","slug":"anthropic/claude-sonnet-4.5"},"properties":{"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"slug":{"description":"Короткий идентификатор модели.","type":"string"}},"required":["slug","name"],"type":"object"},"ModelArchitecture":{"example":{"input_modalities":["text"],"instruct_type":"chatml","modality":"text-\u003etext","output_modalities":["text"],"tokenizer":"GPT"},"properties":{"input_modalities":{"items":{"$ref":"#/components/schemas/InputModality"},"type":"array"},"instruct_type":{"$ref":"#/components/schemas/InstructType"},"modality":{"example":"text-\u003etext","type":["string","null"]},"output_modalities":{"description":"Фильтр по поддерживаемым типам результата.","items":{"$ref":"#/components/schemas/OutputModality","description":"Фильтр по поддерживаемым типам результата."},"type":"array"},"tokenizer":{"$ref":"#/components/schemas/ModelGroup"}},"required":["modality","input_modalities","output_modalities"],"type":"object"},"ModelBenchmarks":{"example":{"artificial_analysis":{"agentic_index":55.8,"coding_index":63.2,"intelligence_index":71.4},"design_arena":[{"arena":"models","category":"website","elo":1385.2,"rank":5,"win_rate":62.5}]},"properties":{"artificial_analysis":{"$ref":"#/components/schemas/AABenchmarkEntry"},"design_arena":{"example":[{"arena":"models","category":"website","elo":1385.2,"rank":5,"win_rate":62.5}],"items":{"$ref":"#/components/schemas/DABenchmarkEntry"},"type":"array"}},"required":["design_arena"],"type":"object"},"ModelGroup":{"enum":["Router","Media","Other","GPT","Claude","Gemini","Gemma","Grok","Cohere","Nova","Qwen","Yi","DeepSeek","Mistral","Llama2","Llama3","Llama4","PaLM","RWKV","Qwen3"],"example":"GPT","type":"string","x-speakeasy-unknown-values":"allow"},"ModelLinks":{"example":{"details":"/api/v1/models/openai/gpt-5.4/endpoints"},"properties":{"details":{"example":"/api/v1/models/openai/gpt-5.4/endpoints","type":"string"}},"required":["details"],"type":"object"},"ModelName":{"example":"openai/gpt-4","type":"string"},"ModelReasoning":{"example":{"default_effort":"medium","default_enabled":true,"mandatory":false,"supported_efforts":["high","medium","low","minimal"]},"properties":{"default_effort":{"allOf":[{"$ref":"#/components/schemas/ReasoningEffort"},{}]},"default_enabled":{"type":"boolean"},"mandatory":{"type":"boolean"},"supported_efforts":{"items":{"$ref":"#/components/schemas/ReasoningEffort"},"type":["array","null"]},"supports_max_tokens":{"type":"boolean"}},"required":["mandatory"],"type":"object"},"ModelResponse":{"example":{"data":{"architecture":{"input_modalities":["text"],"instruct_type":"chatml","modality":"text-\u003etext","output_modalities":["text"],"tokenizer":"GPT"},"canonical_slug":"openai/gpt-4","context_length":8192,"created":1692901234,"default_parameters":null,"expiration_date":null,"id":"openai/gpt-4","knowledge_cutoff":null,"links":{"details":"/api/v1/models/openai/gpt-4/endpoints"},"name":"GPT-4","per_request_limits":null,"pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"supported_parameters":["temperature","top_p","max_tokens"],"supported_voices":null,"top_provider":{"context_length":8192,"is_moderated":true,"max_completion_tokens":4096}}},"properties":{"data":{"$ref":"#/components/schemas/Model"}},"required":["data"],"type":"object"},"ModelsCountResponse":{"example":{"data":{"count":150}},"properties":{"data":{"example":{"count":150},"properties":{"count":{"example":150,"type":"integer"}},"required":["count"],"type":"object"}},"required":["data"],"type":"object"},"ModelsListResponse":{"example":{"data":[{"architecture":{"input_modalities":["text"],"instruct_type":"chatml","modality":"text-\u003etext","output_modalities":["text"],"tokenizer":"GPT"},"canonical_slug":"openai/gpt-4","context_length":8192,"created":1692901234,"default_parameters":null,"expiration_date":null,"id":"openai/gpt-4","knowledge_cutoff":null,"links":{"details":"/api/v1/models/openai/gpt-4/endpoints"},"name":"GPT-4","per_request_limits":null,"pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"supported_parameters":["temperature","top_p","max_tokens","frequency_penalty","presence_penalty"],"supported_voices":null,"top_provider":{"context_length":8192,"is_moderated":true,"max_completion_tokens":4096}}],"links":{"next":"/api/v1/models?offset=500\u0026limit=500"},"total_count":150},"properties":{"data":{"$ref":"#/components/schemas/ModelsListResponseData"},"links":{"properties":{"next":{"example":"/api/v1/models?offset=500\u0026limit=500","type":["string","null"]}},"required":["next"],"type":"object"},"total_count":{"example":150,"type":"integer"}},"required":["data","total_count","links"],"type":"object"},"ModelsListResponseData":{"example":[{"architecture":{"input_modalities":["text"],"instruct_type":"chatml","modality":"text-\u003etext","output_modalities":["text"],"tokenizer":"GPT"},"canonical_slug":"openai/gpt-4","context_length":8192,"created":1692901234,"default_parameters":null,"expiration_date":null,"id":"openai/gpt-4","knowledge_cutoff":null,"links":{"details":"/api/v1/models/openai/gpt-4/endpoints"},"name":"GPT-4","per_request_limits":null,"pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"supported_parameters":["temperature","top_p","max_tokens"],"supported_voices":null,"top_provider":{"context_length":8192,"is_moderated":true,"max_completion_tokens":4096}}],"items":{"$ref":"#/components/schemas/Model"},"type":"array"},"ModerationPlugin":{"example":{"id":"moderation"},"properties":{"id":{"enum":["moderation"],"type":"string"}},"required":["id"],"type":"object"},"MultimodalMedia":{"example":{"data":"data:audio/wav;base64,UklGRiQAAABXQVZFZm10IBAAAAA...","format":"wav"},"properties":{"data":{"type":"string"},"format":{"type":"string"}},"required":["data"],"type":"object"},"NamespaceFunctionTool":{"example":{"name":"spawn_agent","type":"function"},"properties":{"allowed_callers":{"items":{"enum":["direct","programmatic"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":["array","null"]},"defer_loading":{"type":"boolean"},"description":{"type":["string","null"]},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"output_schema":{"additionalProperties":{},"type":["object","null"]},"parameters":{"additionalProperties":{},"type":["object","null"]},"strict":{"type":["boolean","null"]},"type":{"enum":["function"],"type":"string"}},"required":["type","name"],"type":"object"},"NamespaceTool":{"example":{"name":"multi_agent_v1","tools":[{"name":"spawn_agent","type":"function"}],"type":"namespace"},"properties":{"description":{"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"tools":{"description":"Инструменты, которые модель может вызвать.","items":{"anyOf":[{"$ref":"#/components/schemas/NamespaceFunctionTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/CustomTool","description":"Инструменты, которые модель может вызвать."}],"description":"Инструменты, которые модель может вызвать."},"type":"array"},"type":{"enum":["namespace"],"type":"string"}},"required":["type","name","description","tools"],"type":"object"},"NotFoundResponse":{"example":{"error":{"code":404,"message":"Resource not found"}},"properties":{"error":{"$ref":"#/components/schemas/NotFoundResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"NotFoundResponseErrorData":{"example":{"code":404,"message":"Resource not found"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"OAuthErrorResponse":{"example":{"error":"invalid_grant","error_description":"The subject token was not accepted."},"properties":{"error":{"enum":["invalid_request","invalid_grant","unsupported_grant_type","invalid_scope","server_error","temporarily_unavailable"],"type":"string","x-speakeasy-unknown-values":"allow"},"error_description":{"type":"string"}},"required":["error","error_description"],"type":"object"},"OAuthJwks":{"example":{"keys":[{"alg":"ES256","crv":"P-256","kid":"or-2026-09","kty":"EC","use":"sig","x":"f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU","y":"x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0"}]},"properties":{"keys":{"items":{"additionalProperties":false,"properties":{"alg":{"enum":["ES256"],"type":"string"},"crv":{"enum":["P-256"],"type":"string"},"kid":{"minLength":1,"type":"string"},"kty":{"enum":["EC"],"type":"string"},"use":{"enum":["sig"],"type":"string"},"x":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"y":{"pattern":"^[A-Za-z0-9_-]+$","type":"string"}},"required":["kty","crv","kid","x","y","alg","use"],"type":"object"},"minItems":1,"type":"array"}},"required":["keys"],"type":"object"},"ORAnthropicBashToolResult":{"example":{"content":{"command":"ls","exitCode":0,"stderr":"","stdout":"README.md\n"},"tool_use_id":"srvtoolu_01abc","type":"openrouter_bash_tool_result"},"properties":{"container_id":{"type":"string"},"content":{"additionalProperties":{"description":"Содержимое сообщения или входные данные."},"description":"Содержимое сообщения или входные данные.","type":"object"},"files":{"items":{"properties":{"container_id":{"type":"string"},"end_index":{"type":"integer"},"file_id":{"type":"string"},"filename":{"type":"string"},"start_index":{"type":"integer"},"type":{"enum":["container_file_citation"],"type":"string"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object"},"type":"array"},"tool_use_id":{"type":"string"},"type":{"enum":["openrouter_bash_tool_result"],"type":"string"}},"required":["type","tool_use_id","content"],"type":"object"},"ORAnthropicContentBlock":{"discriminator":{"mapping":{"advisor_tool_result":"#/components/schemas/AnthropicAdvisorToolResult","bash_code_execution_tool_result":"#/components/schemas/AnthropicBashCodeExecutionToolResult","code_execution_tool_result":"#/components/schemas/AnthropicCodeExecutionToolResult","compaction":"#/components/schemas/AnthropicCompactionBlock","container_upload":"#/components/schemas/AnthropicContainerUpload","openrouter_bash_tool_result":"#/components/schemas/ORAnthropicBashToolResult","openrouter_shell_tool_result":"#/components/schemas/ORAnthropicShellToolResult","redacted_thinking":"#/components/schemas/AnthropicRedactedThinkingBlock","server_tool_use":"#/components/schemas/ORAnthropicServerToolUseBlock","text":"#/components/schemas/AnthropicTextBlock","text_editor_code_execution_tool_result":"#/components/schemas/AnthropicTextEditorCodeExecutionToolResult","thinking":"#/components/schemas/AnthropicThinkingBlock","tool_search_tool_result":"#/components/schemas/AnthropicToolSearchToolResult","tool_use":"#/components/schemas/AnthropicToolUseBlock","web_fetch_tool_result":"#/components/schemas/AnthropicWebFetchToolResult","web_search_tool_result":"#/components/schemas/AnthropicWebSearchToolResult"},"propertyName":"type"},"example":{"citations":null,"text":"Hello, world!","type":"text"},"oneOf":[{"$ref":"#/components/schemas/AnthropicTextBlock"},{"$ref":"#/components/schemas/AnthropicToolUseBlock"},{"$ref":"#/components/schemas/AnthropicThinkingBlock"},{"$ref":"#/components/schemas/AnthropicRedactedThinkingBlock"},{"$ref":"#/components/schemas/ORAnthropicServerToolUseBlock"},{"$ref":"#/components/schemas/AnthropicWebSearchToolResult"},{"$ref":"#/components/schemas/AnthropicWebFetchToolResult"},{"$ref":"#/components/schemas/AnthropicCodeExecutionToolResult"},{"$ref":"#/components/schemas/AnthropicBashCodeExecutionToolResult"},{"$ref":"#/components/schemas/AnthropicTextEditorCodeExecutionToolResult"},{"$ref":"#/components/schemas/AnthropicToolSearchToolResult"},{"$ref":"#/components/schemas/AnthropicContainerUpload"},{"$ref":"#/components/schemas/AnthropicCompactionBlock"},{"$ref":"#/components/schemas/AnthropicAdvisorToolResult"},{"$ref":"#/components/schemas/ORAnthropicShellToolResult"},{"$ref":"#/components/schemas/ORAnthropicBashToolResult"}]},"ORAnthropicNullableCaller":{"discriminator":{"mapping":{"code_execution_20250825":"#/components/schemas/AnthropicCodeExecution20250825Caller","code_execution_20260120":"#/components/schemas/AnthropicCodeExecution20260120Caller","direct":"#/components/schemas/AnthropicDirectCaller"},"propertyName":"type"},"example":{"type":"direct"},"oneOf":[{"$ref":"#/components/schemas/AnthropicDirectCaller"},{"$ref":"#/components/schemas/AnthropicCodeExecution20250825Caller"},{"$ref":"#/components/schemas/AnthropicCodeExecution20260120Caller"},{"type":"null"}]},"ORAnthropicServerToolUsage":{"example":{"tool_calls_executed":1,"tool_calls_requested":1,"web_fetch_requests":0,"web_search_requests":0},"properties":{"tool_calls_executed":{"type":"integer"},"tool_calls_requested":{"type":"integer"},"web_fetch_requests":{"type":"integer"},"web_search_requests":{"type":"integer"}},"required":["web_search_requests","web_fetch_requests"],"type":["object","null"]},"ORAnthropicServerToolUseBlock":{"example":{"caller":{"type":"direct"},"id":"srvtoolu_01abc","input":{},"name":"advisor","type":"server_tool_use"},"properties":{"caller":{"$ref":"#/components/schemas/ORAnthropicNullableCaller"},"id":{"type":"string"},"input":{"description":"Входной текст или массив входных данных."},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"type":{"enum":["server_tool_use"],"type":"string"}},"required":["type","id","name"],"type":"object"},"ORAnthropicShellToolResult":{"example":{"content":{"output":[{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"README.md\n"}]},"tool_use_id":"srvtoolu_01abc","type":"openrouter_shell_tool_result"},"properties":{"container_id":{"type":"string"},"content":{"additionalProperties":{"description":"Содержимое сообщения или входные данные."},"description":"Содержимое сообщения или входные данные.","type":"object"},"files":{"items":{"properties":{"container_id":{"type":"string"},"end_index":{"type":"integer"},"file_id":{"type":"string"},"filename":{"type":"string"},"start_index":{"type":"integer"},"type":{"enum":["container_file_citation"],"type":"string"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object"},"type":"array"},"tool_use_id":{"type":"string"},"type":{"enum":["openrouter_shell_tool_result"],"type":"string"}},"required":["type","tool_use_id","content"],"type":"object"},"ORAnthropicStopReason":{"enum":["end_turn","max_tokens","model_context_window_exceeded","stop_sequence","tool_use","pause_turn","refusal","compaction",null],"example":"end_turn","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"ObservabilityArizeDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"apiKey":"arize_...AbCd","baseUrl":"https://otlp.arize.com","modelId":"openrouter-prod","spaceKey":"space_...EfGh"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Arize","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"arize","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"apiKey":{"minLength":1,"type":"string"},"baseUrl":{"default":"https://otlp.arize.com","type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"modelId":{"minLength":1,"type":"string"},"spaceKey":{"minLength":1,"type":"string"}},"required":["apiKey","spaceKey","modelId"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["arize"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityBraintrustDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"apiKey":"sk-...AbCd","baseUrl":"https://api.braintrust.dev","projectId":"proj_..."},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Braintrust","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"braintrust","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"apiKey":{"minLength":1,"type":"string"},"baseUrl":{"default":"https://api.braintrust.dev","type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"projectId":{"minLength":1,"type":"string"}},"required":["apiKey","projectId"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["braintrust"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityClickhouseDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"database":"analytics","host":"https://clickhouse.example.com:8123","password":"********","table":"OPENROUTER_TRACES","username":"default"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production ClickHouse","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"clickhouse","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"database":{"minLength":1,"type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"host":{"minLength":1,"type":"string"},"password":{"minLength":1,"type":"string"},"table":{"default":"OPENROUTER_TRACES","type":"string"},"username":{"minLength":1,"type":"string"}},"required":["host","database","username","password"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["clickhouse"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityDataRegion":{"enum":["global","europe","us"],"example":"global","type":"string","x-speakeasy-unknown-values":"allow"},"ObservabilityDataRegionInput":{"enum":["global","europe","us","eu"],"example":"global","type":"string","x-speakeasy-unknown-values":"allow"},"ObservabilityDatadogDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"apiKey":"************...AbCd","mlApp":"my-llm-app","url":"https://api.datadoghq.com"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Datadog","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"datadog","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"apiKey":{"minLength":1,"type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"mlApp":{"minLength":1,"type":"string"},"url":{"default":"https://api.datadoghq.com","description":"Адрес ресурса.","type":"string"}},"required":["apiKey","mlApp"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["datadog"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityDestination":{"discriminator":{"mapping":{"arize":"#/components/schemas/ObservabilityArizeDestination","braintrust":"#/components/schemas/ObservabilityBraintrustDestination","clickhouse":"#/components/schemas/ObservabilityClickhouseDestination","datadog":"#/components/schemas/ObservabilityDatadogDestination","grafana":"#/components/schemas/ObservabilityGrafanaDestination","langfuse":"#/components/schemas/ObservabilityLangfuseDestination","langsmith":"#/components/schemas/ObservabilityLangsmithDestination","newrelic":"#/components/schemas/ObservabilityNewrelicDestination","opik":"#/components/schemas/ObservabilityOpikDestination","otel-collector":"#/components/schemas/ObservabilityOtelCollectorDestination","posthog":"#/components/schemas/ObservabilityPosthogDestination","ramp":"#/components/schemas/ObservabilityRampDestination","s3":"#/components/schemas/ObservabilityS3Destination","sentry":"#/components/schemas/ObservabilitySentryDestination","snowflake":"#/components/schemas/ObservabilitySnowflakeDestination","weave":"#/components/schemas/ObservabilityWeaveDestination","webhook":"#/components/schemas/ObservabilityWebhookDestination"},"propertyName":"type"},"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"baseUrl":"https://us.cloud.langfuse.com","publicKey":"pk-l...EfGh","secretKey":"sk-l...AbCd"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Langfuse","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"langfuse","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"oneOf":[{"$ref":"#/components/schemas/ObservabilityArizeDestination"},{"$ref":"#/components/schemas/ObservabilityBraintrustDestination"},{"$ref":"#/components/schemas/ObservabilityClickhouseDestination"},{"$ref":"#/components/schemas/ObservabilityDatadogDestination"},{"$ref":"#/components/schemas/ObservabilityGrafanaDestination"},{"$ref":"#/components/schemas/ObservabilityLangfuseDestination"},{"$ref":"#/components/schemas/ObservabilityLangsmithDestination"},{"$ref":"#/components/schemas/ObservabilityNewrelicDestination"},{"$ref":"#/components/schemas/ObservabilityOpikDestination"},{"$ref":"#/components/schemas/ObservabilityOtelCollectorDestination"},{"$ref":"#/components/schemas/ObservabilityPosthogDestination"},{"$ref":"#/components/schemas/ObservabilityRampDestination"},{"$ref":"#/components/schemas/ObservabilityS3Destination"},{"$ref":"#/components/schemas/ObservabilitySentryDestination"},{"$ref":"#/components/schemas/ObservabilitySnowflakeDestination"},{"$ref":"#/components/schemas/ObservabilityWeaveDestination"},{"$ref":"#/components/schemas/ObservabilityWebhookDestination"}]},"ObservabilityFilterRuleGroup":{"example":{"logic":"and","rules":[{"field":"model","operator":"equals","value":"openai/gpt-4o"}]},"properties":{"logic":{"default":"and","enum":["and","or"],"type":"string","x-speakeasy-unknown-values":"allow"},"rules":{"items":{"properties":{"field":{"enum":["model","provider","session_id","user_id","api_key_name","finish_reason","input","output","total_cost","total_tokens","prompt_tokens","completion_tokens"],"type":"string","x-speakeasy-unknown-values":"allow"},"operator":{"enum":["equals","not_equals","contains","not_contains","regex","starts_with","ends_with","gt","lt","gte","lte","exists","not_exists"],"type":"string","x-speakeasy-unknown-values":"allow"},"value":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["field","operator"],"type":"object"},"type":"array"}},"required":["rules"],"type":"object"},"ObservabilityFilterRulesConfig":{"example":null,"properties":{"enabled":{"default":true,"type":"boolean"},"groups":{"items":{"$ref":"#/components/schemas/ObservabilityFilterRuleGroup"},"type":"array"}},"required":["groups"],"type":["object","null"]},"ObservabilityFilterRulesConfigNullable":{"example":null,"properties":{"enabled":{"default":true,"type":"boolean"},"groups":{"items":{"$ref":"#/components/schemas/ObservabilityFilterRuleGroup"},"type":"array"}},"required":["groups"],"type":["object","null"]},"ObservabilityGrafanaDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"apiKey":"glc_...AbCd","baseUrl":"https://otlp-gateway-prod-us-west-0.grafana.net","instanceId":"123456"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Grafana","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"grafana","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"apiKey":{"minLength":1,"type":"string"},"baseUrl":{"default":"https://otlp-gateway-prod-us-west-0.grafana.net","type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"instanceId":{"minLength":1,"type":"string"}},"required":["apiKey","instanceId"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["grafana"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityLangfuseDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"baseUrl":"https://us.cloud.langfuse.com","publicKey":"pk-l...EfGh","secretKey":"sk-l...AbCd"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Langfuse","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"langfuse","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"baseUrl":{"default":"https://us.cloud.langfuse.com","type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"publicKey":{"minLength":1,"type":"string"},"secretKey":{"minLength":1,"type":"string"}},"required":["secretKey","publicKey"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["langfuse"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityLangsmithDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"apiKey":"lsv2_...AbCd","endpoint":"https://api.smith.langchain.com","project":"main"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production LangSmith","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"langsmith","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"apiKey":{"minLength":1,"type":"string"},"endpoint":{"default":"https://api.smith.langchain.com","type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"project":{"default":"main","minLength":1,"type":"string"},"workspaceId":{"type":"string"}},"required":["apiKey"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["langsmith"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityNewrelicDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"licenseKey":"****...AbCd","region":"us"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production New Relic","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"newrelic","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"headers":{"additionalProperties":{"type":"string"},"type":"object"},"licenseKey":{"minLength":1,"type":"string"},"region":{"default":"us","enum":["us","eu"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["licenseKey"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["newrelic"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityOpikDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"apiKey":"****...AbCd","projectName":"openrouter-prod","workspace":"my-workspace"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Opik","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"opik","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"apiKey":{"minLength":1,"type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"projectName":{"minLength":1,"type":"string"},"workspace":{"minLength":1,"type":"string"}},"required":["apiKey","workspace","projectName"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["opik"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityOtelCollectorDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"endpoint":"https://otel.example.com:4318"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production OTel Collector","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"otel-collector","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"endpoint":{"type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"}},"required":["endpoint"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["otel-collector"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityPosthogDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"apiKey":"phc_...AbCd","endpoint":"https://us.i.posthog.com"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production PostHog","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"posthog","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"apiKey":{"minLength":1,"type":"string"},"endpoint":{"default":"https://us.i.posthog.com","type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"}},"required":["apiKey"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["posthog"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityRampDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"apiKey":"rmp_...AbCd","baseUrl":"https://api.ramp.com/developer/v1/ai-usage/openrouter"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Ramp","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"ramp","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"apiKey":{"minLength":1,"type":"string"},"baseUrl":{"default":"https://api.ramp.com/developer/v1/ai-usage/openrouter","type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"}},"required":["apiKey"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["ramp"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityS3Destination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"accessKeyId":"AKIA...AbCd","bucketName":"openrouter-traces","secretAccessKey":"****...EfGh"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production S3","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"s3","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"accessKeyId":{"minLength":1,"type":"string"},"bucketName":{"minLength":1,"type":"string"},"endpoint":{"format":"uri","type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"pathTemplate":{"default":"{prefix}/{date}","type":"string"},"prefix":{"default":"openrouter-traces","type":"string"},"region":{"type":"string"},"secretAccessKey":{"minLength":1,"type":"string"},"sessionToken":{"type":"string"}},"required":["bucketName","accessKeyId","secretAccessKey"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["s3"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilitySentryDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"dsn":"https://abc123@o0.ingest.sentry.io/0","otlpEndpoint":"https://o0.ingest.sentry.io/api/0/otlp"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Sentry","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"sentry","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"dsn":{"minLength":1,"pattern":"^https:\\/\\/([^:@]+)(?::[^@]*)?@([^/]+)(?:\\/[^/]+)*\\/(\\d+)\\/?$","type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"otlpEndpoint":{"type":"string"}},"required":["otlpEndpoint","dsn"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["sentry"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilitySnowflakeDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"account":"xy12345.us-east-1","token":"****...AbCd"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Snowflake","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"snowflake","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"account":{"maxLength":255,"minLength":1,"pattern":"^[a-zA-Z0-9_]+(?:[.-][a-zA-Z0-9_]+)*$","type":"string"},"database":{"default":"SNOWFLAKE_LEARNING_DB","type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"schema":{"default":"PUBLIC","type":"string"},"table":{"default":"OPENROUTER_TRACES","type":"string"},"token":{"minLength":1,"type":"string"},"warehouse":{"default":"COMPUTE_WH","type":"string"}},"required":["account","token"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["snowflake"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityWeaveDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"apiKey":"****...AbCd","baseUrl":"https://trace.wandb.ai","entity":"my-team","project":"openrouter-prod"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Weave","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"weave","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"apiKey":{"minLength":1,"type":"string"},"baseUrl":{"default":"https://trace.wandb.ai","type":"string"},"entity":{"minLength":1,"type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"project":{"minLength":1,"type":"string"}},"required":["apiKey","entity","project"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["weave"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"ObservabilityWebhookDestination":{"example":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"url":"https://example.com/openrouter-events"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Webhook","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"webhook","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"properties":{"headers":{"additionalProperties":{"type":"string"},"type":"object"},"method":{"default":"POST","enum":["POST","PUT"],"type":"string","x-speakeasy-unknown-values":"allow"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["url"],"type":"object"},"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"$ref":"#/components/schemas/ObservabilityFilterRulesConfig"},"id":{"example":"99999999-aaaa-bbbb-cccc-dddddddddddd","format":"uuid","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":["string","null"]},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegion"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"},"type":{"enum":["webhook"],"type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","regions","name","enabled","privacy_mode","broadcast_generation_cost","broadcast_generation_identity","broadcast_generation_request_context","sampling_rate","api_key_hashes","filter_rules","created_at","updated_at","type","config"],"type":"object"},"OpenAIFile":{"example":{"_shape":"openai","bytes":1024000,"created_at":1735689600,"filename":"document.pdf","id":"or_file_011CNha8iCJcU1wXNR6q4V8w","object":"file","purpose":"user_data","status":"processed"},"properties":{"_shape":{"enum":["openai"],"type":"string"},"bytes":{"type":"integer"},"created_at":{"type":"integer"},"filename":{"type":"string"},"id":{"type":"string"},"object":{"enum":["file"],"type":"string"},"purpose":{"enum":["assistants","batch","fine-tune","vision","user_data","evals","assistants_output","batch_output","fine-tune-results"],"type":"string","x-speakeasy-unknown-values":"allow"},"status":{"enum":["processed"],"type":"string"}},"required":["_shape","id","object","bytes","created_at","filename","purpose","status"],"type":"object"},"OpenAIFileDeleted":{"example":{"_shape":"openai","deleted":true,"id":"or_file_011CNha8iCJcU1wXNR6q4V8w","object":"file"},"properties":{"_shape":{"enum":["openai"],"type":"string"},"deleted":{"const":true,"type":"boolean"},"id":{"type":"string"},"object":{"enum":["file"],"type":"string"}},"required":["_shape","id","object","deleted"],"type":"object"},"OpenAIFileList":{"example":{"_shape":"openai","data":[],"first_id":null,"has_more":false,"last_id":null,"object":"list"},"properties":{"_shape":{"enum":["openai"],"type":"string"},"data":{"items":{"$ref":"#/components/schemas/OpenAIFile"},"type":"array"},"first_id":{"type":["string","null"]},"has_more":{"type":"boolean"},"last_id":{"type":["string","null"]},"object":{"enum":["list"],"type":"string"}},"required":["_shape","object","data","has_more","first_id","last_id"],"type":"object"},"OpenAIResponseCustomToolCall":{"example":{"call_id":"call-abc123","id":"ctc-abc123","input":"*** Begin Patch\n*** End Patch","name":"apply_patch","type":"custom_tool_call"},"properties":{"call_id":{"type":"string"},"id":{"type":"string"},"input":{"description":"Входной текст или массив входных данных.","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"namespace":{"type":"string"},"type":{"enum":["custom_tool_call"],"type":"string"}},"required":["type","call_id","name","input"],"type":"object"},"OpenAIResponseCustomToolCallOutput":{"example":{"call_id":"call-abc123","output":"patch applied successfully","type":"custom_tool_call_output"},"properties":{"call_id":{"type":"string"},"id":{"type":"string"},"output":{"anyOf":[{"type":"string"},{"items":{"discriminator":{"mapping":{"input_file":"#/components/schemas/InputFile","input_image":"#/components/schemas/InputImage","input_text":"#/components/schemas/InputText"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/InputText"},{"$ref":"#/components/schemas/InputImage"},{"$ref":"#/components/schemas/InputFile"}]},"type":"array"}]},"type":{"enum":["custom_tool_call_output"],"type":"string"}},"required":["type","call_id","output"],"type":"object"},"OpenAIResponseFunctionToolCall":{"example":{"arguments":"{\"location\":\"San Francisco\"}","call_id":"call-abc123","id":"fc-abc123","name":"get_weather","status":"completed","type":"function_call"},"properties":{"arguments":{"type":"string"},"call_id":{"type":"string"},"id":{"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"namespace":{"type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"subagent_id":{"type":"string"},"subagent_items":{"items":{"additionalProperties":{},"properties":{"type":{"type":"string"}},"required":["type"],"type":"object"},"type":"array"},"type":{"enum":["function_call"],"type":"string"}},"required":["type","call_id","name","arguments"],"type":"object"},"OpenAIResponseFunctionToolCallOutput":{"example":{"call_id":"call-abc123","output":"{\"temperature\":72,\"conditions\":\"sunny\"}","type":"function_call_output"},"properties":{"call_id":{"type":"string"},"id":{"type":["string","null"]},"output":{"anyOf":[{"type":"string"},{"items":{"discriminator":{"mapping":{"input_file":"#/components/schemas/InputFile","input_image":"#/components/schemas/InputImage","input_text":"#/components/schemas/InputText"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/InputText"},{"$ref":"#/components/schemas/InputImage"},{"$ref":"#/components/schemas/InputFile"}]},"type":"array"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/ToolCallStatus"},{"type":"null"}]},"type":{"enum":["function_call_output"],"type":"string"}},"required":["type","call_id","output"],"type":"object"},"OpenAIResponseInputMessageItem":{"example":{"content":[{"text":"Hello, how are you?","type":"input_text"}],"id":"msg-abc123","role":"user","type":"message"},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","items":{"description":"Содержимое сообщения или входные данные.","discriminator":{"description":"Содержимое сообщения или входные данные.","mapping":{"description":"Содержимое сообщения или входные данные.","input_audio":"#/components/schemas/InputAudio","input_file":"#/components/schemas/InputFile","input_image":"#/components/schemas/InputImage","input_text":"#/components/schemas/InputText"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/InputText","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/InputImage","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/InputFile","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/InputAudio","description":"Содержимое сообщения или входные данные."}]},"type":"array"},"id":{"type":"string"},"role":{"anyOf":[{"description":"Роль участника диалога.","enum":["user"],"type":"string"},{"description":"Роль участника диалога.","enum":["system"],"type":"string"},{"description":"Роль участника диалога.","enum":["developer"],"type":"string"}],"description":"Роль участника диалога."},"type":{"enum":["message"],"type":"string"}},"required":["id","role","content"],"type":"object"},"OpenAIResponsesAnnotation":{"anyOf":[{"$ref":"#/components/schemas/FileCitation"},{"$ref":"#/components/schemas/URLCitation"},{"$ref":"#/components/schemas/FilePath"}],"example":{"file_id":"file-abc123","filename":"research_paper.pdf","index":0,"type":"file_citation"}},"OpenAIResponsesCodeInterpreterCallCodeDelta":{"example":{"delta":"print(\"hello\")","item_id":"ci_abc123","output_index":0,"sequence_number":2,"type":"response.code_interpreter_call_code.delta"},"properties":{"delta":{"type":"string"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.code_interpreter_call_code.delta"],"type":"string"}},"required":["type","item_id","output_index","sequence_number","delta"],"type":"object"},"OpenAIResponsesCodeInterpreterCallCodeDone":{"example":{"code":"print(\"hello\")","item_id":"ci_abc123","output_index":0,"sequence_number":3,"type":"response.code_interpreter_call_code.done"},"properties":{"code":{"type":"string"},"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.code_interpreter_call_code.done"],"type":"string"}},"required":["type","item_id","output_index","sequence_number","code"],"type":"object"},"OpenAIResponsesCodeInterpreterCallCompleted":{"example":{"item_id":"ci_abc123","output_index":0,"sequence_number":3,"type":"response.code_interpreter_call.completed"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.code_interpreter_call.completed"],"type":"string"}},"required":["type","item_id","output_index","sequence_number"],"type":"object"},"OpenAIResponsesCodeInterpreterCallInProgress":{"example":{"item_id":"ci_abc123","output_index":0,"sequence_number":1,"type":"response.code_interpreter_call.in_progress"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.code_interpreter_call.in_progress"],"type":"string"}},"required":["type","item_id","output_index","sequence_number"],"type":"object"},"OpenAIResponsesCodeInterpreterCallInterpreting":{"example":{"item_id":"ci_abc123","output_index":0,"sequence_number":2,"type":"response.code_interpreter_call.interpreting"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.code_interpreter_call.interpreting"],"type":"string"}},"required":["type","item_id","output_index","sequence_number"],"type":"object"},"OpenAIResponsesImageGenCallCompleted":{"example":{"item_id":"ig_abc123","output_index":0,"sequence_number":4,"type":"response.image_generation_call.completed"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.image_generation_call.completed"],"type":"string"}},"required":["type","item_id","output_index","sequence_number"],"type":"object"},"OpenAIResponsesImageGenCallGenerating":{"example":{"item_id":"ig_abc123","output_index":0,"sequence_number":2,"type":"response.image_generation_call.generating"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.image_generation_call.generating"],"type":"string"}},"required":["type","item_id","output_index","sequence_number"],"type":"object"},"OpenAIResponsesImageGenCallInProgress":{"example":{"item_id":"ig_abc123","output_index":0,"sequence_number":1,"type":"response.image_generation_call.in_progress"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.image_generation_call.in_progress"],"type":"string"}},"required":["type","item_id","output_index","sequence_number"],"type":"object"},"OpenAIResponsesImageGenCallPartialImage":{"example":{"item_id":"ig_abc123","output_index":0,"partial_image_b64":"iVBORw0KGgo...","partial_image_index":0,"sequence_number":3,"type":"response.image_generation_call.partial_image"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"partial_image_b64":{"type":"string"},"partial_image_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.image_generation_call.partial_image"],"type":"string"}},"required":["type","item_id","output_index","sequence_number","partial_image_b64","partial_image_index"],"type":"object"},"OpenAIResponsesRefusalContent":{"example":{"refusal":"I'm sorry, I cannot assist with that request","type":"refusal"},"properties":{"refusal":{"type":"string"},"type":{"enum":["refusal"],"type":"string"}},"required":["type","refusal"],"type":"object"},"OpenAIResponsesResponseStatus":{"enum":["completed","incomplete","in_progress","failed","cancelled","queued"],"example":"completed","type":"string","x-speakeasy-unknown-values":"allow"},"OpenAIResponsesSearchCompleted":{"example":{"item_id":"ws_abc123","output_index":0,"sequence_number":5,"type":"response.web_search_call.completed"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.web_search_call.completed"],"type":"string"}},"required":["type","item_id","output_index","sequence_number"],"type":"object"},"OpenAIResponsesToolChoice":{"anyOf":[{"enum":["auto"],"type":"string"},{"enum":["none"],"type":"string"},{"enum":["required"],"type":"string"},{"properties":{"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"type":{"enum":["function"],"type":"string"}},"required":["type","name"],"type":"object"},{"properties":{"type":{"anyOf":[{"enum":["web_search_preview_2025_03_11"],"type":"string"},{"enum":["web_search_preview"],"type":"string"}]}},"required":["type"],"type":"object"},{"$ref":"#/components/schemas/ToolChoiceAllowed"},{"properties":{"type":{"enum":["apply_patch"],"type":"string"}},"required":["type"],"type":"object"},{"properties":{"type":{"enum":["shell"],"type":"string"}},"required":["type"],"type":"object"}],"example":"auto"},"OpenAIResponsesTruncation":{"enum":["auto","disabled",null],"example":"auto","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"OpenAIResponsesUsage":{"example":{"input_tokens":100,"input_tokens_details":{"cached_tokens":0},"output_tokens":50,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":150},"properties":{"input_tokens":{"type":"integer"},"input_tokens_details":{"properties":{"cache_write_tokens":{"type":["integer","null"]},"cached_tokens":{"type":"integer"}},"required":["cached_tokens"],"type":"object"},"output_tokens":{"type":"integer"},"output_tokens_details":{"properties":{"reasoning_tokens":{"type":"integer"}},"required":["reasoning_tokens"],"type":"object"},"total_tokens":{"type":"integer"}},"required":["input_tokens","input_tokens_details","output_tokens","output_tokens_details","total_tokens"],"type":"object"},"OpenAIResponsesWebSearchCallInProgress":{"example":{"item_id":"ws_abc123","output_index":0,"sequence_number":1,"type":"response.web_search_call.in_progress"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.web_search_call.in_progress"],"type":"string"}},"required":["type","item_id","output_index","sequence_number"],"type":"object"},"OpenAIResponsesWebSearchCallSearching":{"example":{"item_id":"ws_abc123","output_index":0,"sequence_number":2,"type":"response.web_search_call.searching"},"properties":{"item_id":{"type":"string"},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.web_search_call.searching"],"type":"string"}},"required":["type","item_id","output_index","sequence_number"],"type":"object"},"OpenResponsesCreatedEvent":{"allOf":[{"$ref":"#/components/schemas/CreatedEvent"},{"properties":{"response":{"$ref":"#/components/schemas/OpenResponsesResult"}},"type":"object"}],"example":{"response":{"completed_at":null,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":null,"status":"in_progress","temperature":null,"tool_choice":"auto","tools":[],"top_p":null},"sequence_number":0,"type":"response.created"}},"OpenResponsesInProgressEvent":{"allOf":[{"$ref":"#/components/schemas/InProgressEvent"},{"properties":{"response":{"$ref":"#/components/schemas/OpenResponsesResult"}},"type":"object"}],"example":{"response":{"completed_at":null,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":null,"status":"in_progress","temperature":null,"tool_choice":"auto","tools":[],"top_p":null},"sequence_number":1,"type":"response.in_progress"}},"OpenResponsesLogProbs":{"example":{"logprob":-0.1,"token":"world","top_logprobs":[{"logprob":-0.5,"token":"hello"}]},"properties":{"bytes":{"items":{"type":"integer"},"type":"array"},"logprob":{"format":"double","type":"number"},"token":{"type":"string"},"top_logprobs":{"description":"Количество наиболее вероятных токенов с их логарифмами вероятностей.","items":{"$ref":"#/components/schemas/OpenResponsesTopLogprobs","description":"Количество наиболее вероятных токенов с их логарифмами вероятностей."},"type":"array"}},"required":["logprob","token"],"type":"object"},"OpenResponsesResult":{"allOf":[{"$ref":"#/components/schemas/BaseResponsesResult"},{"properties":{"error_type":{"$ref":"#/components/schemas/ApiErrorType"},"openrouter_metadata":{"$ref":"#/components/schemas/OpenRouterMetadata"},"output":{"items":{"$ref":"#/components/schemas/OutputItems"},"type":"array"},"service_tier":{"description":"Желаемый уровень обслуживания запроса.","type":["string","null"]},"text":{"$ref":"#/components/schemas/TextExtendedConfig"},"usage":{"$ref":"#/components/schemas/Usage","description":"Сведения об использованных токенах и стоимости."}},"type":"object"}],"example":{"completed_at":1704067210,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[{"content":[{"annotations":[],"text":"Hello! How can I help you today?","type":"output_text"}],"id":"msg-abc123","role":"assistant","status":"completed","type":"message"}],"parallel_tool_calls":true,"presence_penalty":null,"status":"completed","temperature":null,"tool_choice":"auto","tools":[],"top_p":null,"usage":{"input_tokens":10,"input_tokens_details":{"cached_tokens":0},"output_tokens":25,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":35}}},"OpenResponsesTopLogprobs":{"example":{"logprob":-0.5,"token":"hello"},"properties":{"bytes":{"items":{"type":"integer"},"type":"array"},"logprob":{"format":"double","type":"number"},"token":{"type":"string"}},"type":"object"},"OpenRouterFile":{"example":{"_shape":"openrouter","created_at":"2025-01-01T00:00:00Z","downloadable":false,"filename":"document.pdf","id":"or_file_011CNha8iCJcU1wXNR6q4V8w","mime_type":"application/pdf","size_bytes":1024000,"type":"file"},"properties":{"_shape":{"enum":["openrouter"],"type":"string"},"created_at":{"type":"string"},"downloadable":{"type":"boolean"},"filename":{"type":"string"},"id":{"type":"string"},"mime_type":{"type":"string"},"size_bytes":{"type":"integer"},"type":{"enum":["file"],"type":"string"}},"required":["_shape","id","type","filename","mime_type","size_bytes","created_at","downloadable"],"type":"object"},"OpenRouterFileDeleted":{"example":{"_shape":"openrouter","id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file_deleted"},"properties":{"_shape":{"enum":["openrouter"],"type":"string"},"id":{"type":"string"},"type":{"enum":["file_deleted"],"type":"string"}},"required":["_shape","id","type"],"type":"object"},"OpenRouterFileList":{"example":{"_shape":"openrouter","cursor":null,"data":[],"first_id":null,"has_more":false,"last_id":null},"properties":{"_shape":{"enum":["openrouter"],"type":"string"},"cursor":{"type":["string","null"]},"data":{"items":{"$ref":"#/components/schemas/OpenRouterFile"},"type":"array"},"first_id":{"type":["string","null"]},"has_more":{"type":"boolean"},"last_id":{"type":["string","null"]}},"required":["_shape","data","has_more","first_id","last_id","cursor"],"type":"object"},"OpenRouterMetadata":{"example":{"attempt":1,"endpoints":{"available":[{"model":"openai/gpt-4o","provider":"OpenAI","selected":true}],"total":1},"generation_time":2016,"is_byok":false,"region":"iad","requested":"openai/gpt-4o","strategy":"direct","summary":"available=1, selected=OpenAI"},"properties":{"attempt":{"type":"integer"},"attempts":{"items":{"$ref":"#/components/schemas/RouterAttempt"},"type":"array"},"endpoints":{"$ref":"#/components/schemas/EndpointsMetadata"},"generation_time":{"example":2016,"type":"integer"},"is_byok":{"type":"boolean"},"params":{"$ref":"#/components/schemas/RouterParams"},"pipeline":{"items":{"$ref":"#/components/schemas/PipelineStage"},"type":"array"},"region":{"type":["string","null"]},"requested":{"type":"string"},"strategy":{"$ref":"#/components/schemas/RoutingStrategy"},"summary":{"type":"string"}},"required":["requested","strategy","region","summary","attempt","is_byok","endpoints"],"type":"object"},"OpenRouterWebSearchServerTool":{"example":{"parameters":{"max_results":5},"type":"openrouter:web_search"},"properties":{"parameters":{"$ref":"#/components/schemas/WebSearchConfig"},"type":{"enum":["openrouter:web_search"],"type":"string"}},"required":["type"],"type":"object"},"OutputAdvisorServerToolItem":{"example":{"id":"st_tmp_abc123","status":"completed","type":"openrouter:advisor"},"properties":{"advice":{"type":"string"},"error":{"type":"string"},"id":{"type":"string"},"instance_name":{"example":"openrouter_advisor__1","type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"prompt":{"description":"Текстовое описание желаемого результата.","type":"string"},"status":{"$ref":"#/components/schemas/FailableToolCallStatus"},"type":{"enum":["openrouter:advisor"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputApplyPatchCallItem":{"example":{"call_id":"call_abc123","id":"apc_abc123","operation":{"diff":"@@ function main() {\n+  console.log(\"hi\");\n }","path":"/src/main.ts","type":"update_file"},"status":"completed","type":"apply_patch_call"},"properties":{"call_id":{"type":"string"},"id":{"type":"string"},"operation":{"$ref":"#/components/schemas/ApplyPatchCallOperation"},"status":{"$ref":"#/components/schemas/ApplyPatchCallStatus"},"type":{"enum":["apply_patch_call"],"type":"string"}},"required":["type","id","call_id","status","operation"],"type":"object"},"OutputApplyPatchServerToolItem":{"example":{"call_id":"call_abc123","id":"apc_abc123","operation":{"diff":"@@ function main() {\n+  console.log(\"hi\");\n }","path":"/src/main.ts","type":"update_file"},"status":"completed","type":"openrouter:apply_patch"},"properties":{"call_id":{"type":"string"},"id":{"type":"string"},"operation":{"$ref":"#/components/schemas/ApplyPatchCallOperation"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["openrouter:apply_patch"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputBashServerToolItem":{"example":{"command":"ls -la","exitCode":0,"id":"bash_tmp_abc123","status":"completed","stdout":"total 0\n","type":"openrouter:bash"},"properties":{"arguments":{"type":["string","null"]},"call_id":{"type":["string","null"]},"command":{"type":"string"},"container_id":{"type":"string"},"exitCode":{"type":"integer"},"files":{"items":{"properties":{"container_id":{"type":"string"},"end_index":{"type":"integer"},"file_id":{"type":"string"},"filename":{"type":"string"},"start_index":{"type":"integer"},"type":{"enum":["container_file_citation"],"type":"string"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object"},"type":"array"},"id":{"type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"stderr":{"type":"string"},"stdout":{"type":"string"},"type":{"enum":["openrouter:bash"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputBrowserUseServerToolItem":{"example":{"action":"screenshot","id":"bu_tmp_abc123","status":"completed","type":"openrouter:browser_use"},"properties":{"action":{"type":"string"},"id":{"type":"string"},"screenshotB64":{"type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["openrouter:browser_use"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputCodeInterpreterCallItem":{"allOf":[{"$ref":"#/components/schemas/CodeInterpreterCallItem"},{"additionalProperties":{},"properties":{},"type":"object"}],"example":{"code":"print(\"hello\")","container_id":"ctr-xyz789","id":"ci-abc123","outputs":[{"logs":"hello\n","type":"logs"}],"status":"completed","type":"code_interpreter_call"}},"OutputCodeInterpreterServerToolItem":{"example":{"code":"print(\"hello\")","id":"ci_tmp_abc123","language":"python","status":"completed","stdout":"hello\n","type":"openrouter:code_interpreter"},"properties":{"code":{"type":"string"},"exitCode":{"type":"integer"},"id":{"type":"string"},"language":{"description":"Код языка в формате ISO 639-1.","type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"stderr":{"type":"string"},"stdout":{"type":"string"},"type":{"enum":["openrouter:code_interpreter"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputComputerCallItem":{"example":{"action":{"type":"screenshot"},"call_id":"call-abc123","id":"cu-abc123","pending_safety_checks":[],"status":"completed","type":"computer_call"},"properties":{"action":{},"call_id":{"type":"string"},"id":{"type":"string"},"pending_safety_checks":{"items":{"properties":{"code":{"type":"string"},"id":{"type":"string"},"message":{"type":"string"}},"required":["id","code","message"],"type":"object"},"type":"array"},"status":{"enum":["completed","incomplete","in_progress"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["computer_call"],"type":"string"}},"required":["type","call_id","status","pending_safety_checks"],"type":"object"},"OutputCustomToolCallItem":{"example":{"call_id":"call-abc123","id":"ctc-abc123","input":"*** Begin Patch\n*** End Patch","name":"apply_patch","status":"completed","type":"custom_tool_call"},"properties":{"call_id":{"type":"string"},"id":{"type":"string"},"input":{"description":"Входной текст или массив входных данных.","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"namespace":{"type":"string"},"status":{"enum":["in_progress","completed","incomplete"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["custom_tool_call"],"type":"string"}},"required":["type","name","input","call_id"],"type":"object"},"OutputDatetimeItem":{"example":{"datetime":"2026-03-12T14:30:00.000Z","id":"dt_tmp_abc123","status":"completed","timezone":"UTC","type":"openrouter:datetime"},"properties":{"datetime":{"type":"string"},"id":{"type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"timezone":{"type":"string"},"type":{"enum":["openrouter:datetime"],"type":"string"}},"required":["status","type","datetime","timezone"],"type":"object"},"OutputFileSearchCallItem":{"allOf":[{"$ref":"#/components/schemas/OutputItemFileSearchCall"},{"properties":{},"type":"object"}],"example":{"id":"fs-abc123","queries":["search term"],"results":[],"status":"completed","type":"file_search_call"}},"OutputFileSearchServerToolItem":{"example":{"id":"fs_tmp_abc123","queries":["search term"],"status":"completed","type":"openrouter:file_search"},"properties":{"id":{"type":"string"},"queries":{"items":{"type":"string"},"type":"array"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["openrouter:file_search"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputFilesServerToolItem":{"example":{"filename":"notes.txt","id":"fl_tmp_abc123","operation":"read","result":"{\"id\":\"file_abc\",\"filename\":\"notes.txt\",\"content\":\"hello\"}","status":"completed","type":"openrouter:files"},"properties":{"arguments":{"type":["string","null"]},"call_id":{"type":["string","null"]},"error":{"type":"string"},"file_id":{"type":"string"},"filename":{"type":"string"},"id":{"type":"string"},"operation":{"type":"string"},"result":{"type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["openrouter:files"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputFunctionCallItem":{"allOf":[{"$ref":"#/components/schemas/OutputItemFunctionCall"},{"properties":{"subagent_id":{"type":"string"},"subagent_items":{"items":{"additionalProperties":{},"properties":{"type":{"type":"string"}},"required":["type"],"type":"object"},"type":"array"}},"type":"object"}],"example":{"arguments":"{\"location\":\"San Francisco\"}","call_id":"call-abc123","id":"fc-abc123","name":"get_weather","status":"completed","type":"function_call"}},"OutputFusionServerToolItem":{"example":{"id":"st_tmp_abc123","status":"completed","type":"openrouter:fusion"},"properties":{"analysis":{"$ref":"#/components/schemas/FusionAnalysisResult"},"error":{"type":"string"},"failed_models":{"items":{"properties":{"error":{"type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"status_code":{"type":"integer"}},"required":["model","error"],"type":"object"},"type":"array"},"failure_reason":{"type":"string"},"id":{"type":"string"},"responses":{"items":{"properties":{"content":{"description":"Содержимое сообщения или входные данные.","type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"}},"required":["model"],"type":"object"},"type":"array"},"sources":{"items":{"$ref":"#/components/schemas/FusionSource"},"type":"array"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["openrouter:fusion"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputImageGenerationCallItem":{"allOf":[{"$ref":"#/components/schemas/OutputItemImageGenerationCall"},{"properties":{"prompt":{"description":"Текстовое описание желаемого результата.","type":"string"}},"type":"object"}],"example":{"id":"img-abc123","result":null,"status":"completed","type":"image_generation_call"}},"OutputImageGenerationServerToolItem":{"example":{"id":"ig_tmp_abc123","imageUrl":"https://example.com/image.png","result":"https://example.com/image.png","status":"completed","type":"openrouter:image_generation"},"properties":{"id":{"type":"string"},"imageB64":{"type":"string"},"imageUrl":{"type":"string"},"prompt":{"description":"Текстовое описание желаемого результата.","type":"string"},"result":{"type":["string","null"]},"revisedPrompt":{"type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["openrouter:image_generation"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputItemAddedEvent":{"example":{"item":{"content":[],"id":"item-1","role":"assistant","status":"in_progress","type":"message"},"output_index":0,"sequence_number":2,"type":"response.output_item.added"},"properties":{"item":{"discriminator":{"mapping":{"apply_patch_call":"#/components/schemas/OutputItemApplyPatchCall","code_interpreter_call":"#/components/schemas/OutputItemCodeInterpreterCall","custom_tool_call":"#/components/schemas/OutputItemCustomToolCall","file_search_call":"#/components/schemas/OutputItemFileSearchCall","function_call":"#/components/schemas/OutputItemFunctionCall","image_generation_call":"#/components/schemas/OutputItemImageGenerationCall","message":"#/components/schemas/OutputMessage","reasoning":"#/components/schemas/OutputItemReasoning","web_search_call":"#/components/schemas/OutputItemWebSearchCall"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/OutputMessage"},{"$ref":"#/components/schemas/OutputItemReasoning"},{"$ref":"#/components/schemas/OutputItemFunctionCall"},{"$ref":"#/components/schemas/OutputItemCustomToolCall"},{"$ref":"#/components/schemas/OutputItemWebSearchCall"},{"$ref":"#/components/schemas/OutputItemFileSearchCall"},{"$ref":"#/components/schemas/OutputItemImageGenerationCall"},{"$ref":"#/components/schemas/OutputItemApplyPatchCall"},{"$ref":"#/components/schemas/OutputItemCodeInterpreterCall"}]},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.output_item.added"],"type":"string"}},"required":["type","output_index","item","sequence_number"],"type":"object"},"OutputItemApplyPatchCall":{"example":{"call_id":"call_abc123","id":"apc_abc123","operation":{"diff":"@@ function main() {\n+  console.log(\"hi\");\n }","path":"/src/main.ts","type":"update_file"},"status":"completed","type":"apply_patch_call"},"properties":{"call_id":{"type":"string"},"created_by":{"type":"string"},"id":{"type":"string"},"operation":{"discriminator":{"mapping":{"create_file":"#/components/schemas/ApplyPatchCreateFileOperation","delete_file":"#/components/schemas/ApplyPatchDeleteFileOperation","update_file":"#/components/schemas/ApplyPatchUpdateFileOperation"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/ApplyPatchCreateFileOperation"},{"$ref":"#/components/schemas/ApplyPatchUpdateFileOperation"},{"$ref":"#/components/schemas/ApplyPatchDeleteFileOperation"}]},"status":{"enum":["in_progress","completed"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["apply_patch_call"],"type":"string"}},"required":["type","id","call_id","operation","status"],"type":"object"},"OutputItemCodeInterpreterCall":{"additionalProperties":{},"example":{"code":"print(\"hello\")","id":"ci_abc123","outputs":[{"logs":"hello\n","type":"logs"}],"status":"completed","type":"code_interpreter_call"},"properties":{"code":{"type":["string","null"]},"container_id":{"type":"string"},"id":{"type":"string"},"outputs":{"items":{"discriminator":{"mapping":{"file":"#/components/schemas/CodeInterpreterFileOutput","image":"#/components/schemas/CodeInterpreterImageOutput","logs":"#/components/schemas/CodeInterpreterLogsOutput"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/CodeInterpreterLogsOutput"},{"$ref":"#/components/schemas/CodeInterpreterImageOutput"},{"$ref":"#/components/schemas/CodeInterpreterFileOutput"}]},"type":["array","null"]},"status":{"enum":["in_progress","completed","incomplete","interpreting","failed"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["code_interpreter_call"],"type":"string"}},"required":["type","id","status"],"type":"object"},"OutputItemCustomToolCall":{"example":{"call_id":"call-abc123","id":"ctc-abc123","input":"*** Begin Patch\n*** End Patch","name":"apply_patch","status":"completed","type":"custom_tool_call"},"properties":{"call_id":{"type":"string"},"id":{"type":"string"},"input":{"description":"Входной текст или массив входных данных.","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"namespace":{"type":"string"},"status":{"enum":["in_progress","completed","incomplete"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":{"enum":["custom_tool_call"],"type":"string"}},"required":["type","name","input","call_id"],"type":"object"},"OutputItemDoneEvent":{"example":{"item":{"content":[{"annotations":[],"text":"Hello! How can I help you?","type":"output_text"}],"id":"item-1","role":"assistant","status":"completed","type":"message"},"output_index":0,"sequence_number":8,"type":"response.output_item.done"},"properties":{"item":{"discriminator":{"mapping":{"apply_patch_call":"#/components/schemas/OutputItemApplyPatchCall","code_interpreter_call":"#/components/schemas/OutputItemCodeInterpreterCall","custom_tool_call":"#/components/schemas/OutputItemCustomToolCall","file_search_call":"#/components/schemas/OutputItemFileSearchCall","function_call":"#/components/schemas/OutputItemFunctionCall","image_generation_call":"#/components/schemas/OutputItemImageGenerationCall","message":"#/components/schemas/OutputMessage","reasoning":"#/components/schemas/OutputItemReasoning","web_search_call":"#/components/schemas/OutputItemWebSearchCall"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/OutputMessage"},{"$ref":"#/components/schemas/OutputItemReasoning"},{"$ref":"#/components/schemas/OutputItemFunctionCall"},{"$ref":"#/components/schemas/OutputItemCustomToolCall"},{"$ref":"#/components/schemas/OutputItemWebSearchCall"},{"$ref":"#/components/schemas/OutputItemFileSearchCall"},{"$ref":"#/components/schemas/OutputItemImageGenerationCall"},{"$ref":"#/components/schemas/OutputItemApplyPatchCall"},{"$ref":"#/components/schemas/OutputItemCodeInterpreterCall"}]},"output_index":{"type":"integer"},"sequence_number":{"type":"integer"},"type":{"enum":["response.output_item.done"],"type":"string"}},"required":["type","output_index","item","sequence_number"],"type":"object"},"OutputItemFileSearchCall":{"example":{"id":"filesearch-abc123","queries":["machine learning algorithms","neural networks"],"status":"completed","type":"file_search_call"},"properties":{"id":{"type":"string"},"queries":{"items":{"type":"string"},"type":"array"},"status":{"$ref":"#/components/schemas/WebSearchStatus"},"type":{"enum":["file_search_call"],"type":"string"}},"required":["type","id","queries","status"],"type":"object"},"OutputItemFunctionCall":{"example":{"arguments":"{\"location\":\"San Francisco\",\"unit\":\"celsius\"}","call_id":"call-abc123","id":"call-abc123","name":"get_weather","type":"function_call"},"properties":{"arguments":{"type":"string"},"call_id":{"type":"string"},"id":{"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"namespace":{"type":"string"},"status":{"anyOf":[{"enum":["completed"],"type":"string"},{"enum":["incomplete"],"type":"string"},{"enum":["in_progress"],"type":"string"}]},"type":{"enum":["function_call"],"type":"string"}},"required":["type","name","arguments","call_id"],"type":"object"},"OutputItemImageGenerationCall":{"example":{"id":"imagegen-abc123","result":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==","status":"completed","type":"image_generation_call"},"properties":{"id":{"type":"string"},"result":{"default":null,"type":["string","null"]},"status":{"$ref":"#/components/schemas/ImageGenerationStatus"},"type":{"enum":["image_generation_call"],"type":"string"}},"required":["type","id","status"],"type":"object"},"OutputItemReasoning":{"example":{"id":"reasoning-abc123","summary":[{"text":"Analyzed the problem using first principles","type":"summary_text"}],"type":"reasoning"},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/ReasoningTextContent","description":"Содержимое сообщения или входные данные."},"type":"array"},"encrypted_content":{"type":["string","null"]},"id":{"type":"string"},"status":{"anyOf":[{"enum":["completed"],"type":"string"},{"enum":["incomplete"],"type":"string"},{"enum":["in_progress"],"type":"string"}]},"summary":{"items":{"$ref":"#/components/schemas/ReasoningSummaryText"},"type":"array"},"type":{"enum":["reasoning"],"type":"string"}},"required":["type","id","summary"],"type":"object"},"OutputItemWebSearchCall":{"additionalProperties":{},"example":{"action":{"query":"OpenAI API","type":"search"},"id":"search-abc123","status":"completed","type":"web_search_call"},"properties":{"action":{"oneOf":[{"properties":{"queries":{"items":{"type":"string"},"type":"array"},"query":{"description":"Запрос, относительно которого оцениваются документы.","type":"string"},"sources":{"items":{"$ref":"#/components/schemas/WebSearchSource"},"type":"array"},"type":{"enum":["search"],"type":"string"}},"required":["type","query"],"type":"object"},{"properties":{"type":{"enum":["open_page"],"type":"string"},"url":{"description":"Адрес ресурса.","type":["string","null"]}},"required":["type"],"type":"object"},{"properties":{"pattern":{"type":"string"},"type":{"enum":["find_in_page"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["type","pattern","url"],"type":"object"}]},"id":{"type":"string"},"status":{"$ref":"#/components/schemas/WebSearchStatus"},"type":{"enum":["web_search_call"],"type":"string"}},"required":["type","id","status"],"type":"object"},"OutputItems":{"discriminator":{"mapping":{"apply_patch_call":"#/components/schemas/OutputApplyPatchCallItem","code_interpreter_call":"#/components/schemas/OutputCodeInterpreterCallItem","computer_call":"#/components/schemas/OutputComputerCallItem","custom_tool_call":"#/components/schemas/OutputCustomToolCallItem","file_search_call":"#/components/schemas/OutputFileSearchCallItem","function_call":"#/components/schemas/OutputFunctionCallItem","image_generation_call":"#/components/schemas/OutputImageGenerationCallItem","message":"#/components/schemas/OutputMessageItem","openrouter:advisor":"#/components/schemas/OutputAdvisorServerToolItem","openrouter:apply_patch":"#/components/schemas/OutputApplyPatchServerToolItem","openrouter:bash":"#/components/schemas/OutputBashServerToolItem","openrouter:browser_use":"#/components/schemas/OutputBrowserUseServerToolItem","openrouter:code_interpreter":"#/components/schemas/OutputCodeInterpreterServerToolItem","openrouter:datetime":"#/components/schemas/OutputDatetimeItem","openrouter:experimental__search_models":"#/components/schemas/OutputSearchModelsServerToolItem","openrouter:file_search":"#/components/schemas/OutputFileSearchServerToolItem","openrouter:files":"#/components/schemas/OutputFilesServerToolItem","openrouter:fusion":"#/components/schemas/OutputFusionServerToolItem","openrouter:image_generation":"#/components/schemas/OutputImageGenerationServerToolItem","openrouter:mcp":"#/components/schemas/OutputMcpServerToolItem","openrouter:memory":"#/components/schemas/OutputMemoryServerToolItem","openrouter:shell":"#/components/schemas/OutputShellServerToolItem","openrouter:subagent":"#/components/schemas/OutputSubagentServerToolItem","openrouter:text_editor":"#/components/schemas/OutputTextEditorServerToolItem","openrouter:tool_search":"#/components/schemas/OutputToolSearchServerToolItem","openrouter:web_fetch":"#/components/schemas/OutputWebFetchServerToolItem","openrouter:web_search":"#/components/schemas/OutputWebSearchServerToolItem","reasoning":"#/components/schemas/OutputReasoningItem","shell_call":"#/components/schemas/OutputShellCallItem","shell_call_output":"#/components/schemas/OutputShellCallOutputItem","web_search_call":"#/components/schemas/OutputWebSearchCallItem"},"propertyName":"type"},"example":{"content":[{"text":"Hello! How can I help you today?","type":"output_text"}],"id":"msg-abc123","role":"assistant","status":"completed","type":"message"},"oneOf":[{"$ref":"#/components/schemas/OutputMessageItem"},{"$ref":"#/components/schemas/OutputReasoningItem"},{"$ref":"#/components/schemas/OutputFunctionCallItem"},{"$ref":"#/components/schemas/OutputWebSearchCallItem"},{"$ref":"#/components/schemas/OutputFileSearchCallItem"},{"$ref":"#/components/schemas/OutputImageGenerationCallItem"},{"$ref":"#/components/schemas/OutputCodeInterpreterCallItem"},{"$ref":"#/components/schemas/OutputComputerCallItem"},{"$ref":"#/components/schemas/OutputDatetimeItem"},{"$ref":"#/components/schemas/OutputWebSearchServerToolItem"},{"$ref":"#/components/schemas/OutputCodeInterpreterServerToolItem"},{"$ref":"#/components/schemas/OutputFileSearchServerToolItem"},{"$ref":"#/components/schemas/OutputImageGenerationServerToolItem"},{"$ref":"#/components/schemas/OutputBrowserUseServerToolItem"},{"$ref":"#/components/schemas/OutputBashServerToolItem"},{"$ref":"#/components/schemas/OutputTextEditorServerToolItem"},{"$ref":"#/components/schemas/OutputApplyPatchServerToolItem"},{"$ref":"#/components/schemas/OutputApplyPatchCallItem"},{"$ref":"#/components/schemas/OutputShellCallItem"},{"$ref":"#/components/schemas/OutputShellCallOutputItem"},{"$ref":"#/components/schemas/OutputShellServerToolItem"},{"$ref":"#/components/schemas/OutputWebFetchServerToolItem"},{"$ref":"#/components/schemas/OutputToolSearchServerToolItem"},{"$ref":"#/components/schemas/OutputMemoryServerToolItem"},{"$ref":"#/components/schemas/OutputMcpServerToolItem"},{"$ref":"#/components/schemas/OutputSearchModelsServerToolItem"},{"$ref":"#/components/schemas/OutputFusionServerToolItem"},{"$ref":"#/components/schemas/OutputAdvisorServerToolItem"},{"$ref":"#/components/schemas/OutputSubagentServerToolItem"},{"$ref":"#/components/schemas/OutputFilesServerToolItem"},{"$ref":"#/components/schemas/OutputCustomToolCallItem"}]},"OutputMcpServerToolItem":{"example":{"id":"mcp_tmp_abc123","serverLabel":"my-server","status":"completed","toolName":"get_data","type":"openrouter:mcp"},"properties":{"id":{"type":"string"},"serverLabel":{"type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"toolName":{"type":"string"},"type":{"enum":["openrouter:mcp"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputMemoryServerToolItem":{"example":{"action":"read","id":"mem_tmp_abc123","key":"user_preference","status":"completed","type":"openrouter:memory"},"properties":{"action":{"enum":["read","write","delete"],"type":"string","x-speakeasy-unknown-values":"allow"},"id":{"type":"string"},"key":{"type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["openrouter:memory"],"type":"string"},"value":{}},"required":["status","type"],"type":"object"},"OutputMessage":{"example":{"content":[{"text":"Hello! How can I help you today?","type":"output_text"}],"id":"msg-abc123","role":"assistant","status":"completed","type":"message"},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","items":{"anyOf":[{"$ref":"#/components/schemas/ResponseOutputText","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/OpenAIResponsesRefusalContent","description":"Содержимое сообщения или входные данные."}],"description":"Содержимое сообщения или входные данные."},"type":"array"},"id":{"type":"string"},"phase":{"anyOf":[{"enum":["commentary"],"type":"string"},{"enum":["final_answer"],"type":"string"},{"type":"null"}]},"role":{"description":"Роль участника диалога.","enum":["assistant"],"type":"string"},"status":{"anyOf":[{"enum":["completed"],"type":"string"},{"enum":["incomplete"],"type":"string"},{"enum":["in_progress"],"type":"string"}]},"type":{"enum":["message"],"type":"string"}},"required":["id","role","type","content"],"type":"object"},"OutputMessageItem":{"allOf":[{"$ref":"#/components/schemas/OutputMessage"},{"properties":{},"type":"object"}],"example":{"content":[{"annotations":[],"text":"Hello! How can I help you?","type":"output_text"}],"id":"msg-123","role":"assistant","status":"completed","type":"message"}},"OutputModality":{"enum":["text","image","embeddings","audio","video","rerank","speech","transcription"],"example":"text","type":"string","x-speakeasy-unknown-values":"allow"},"OutputModalityEnum":{"enum":["text","image"],"example":"text","type":"string","x-speakeasy-unknown-values":"allow"},"OutputReasoningItem":{"allOf":[{"$ref":"#/components/schemas/OutputItemReasoning"},{"properties":{"content":{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/ReasoningTextContent","description":"Содержимое сообщения или входные данные."},"type":["array","null"]},"format":{"$ref":"#/components/schemas/ReasoningFormat"},"signature":{"example":"EvcBCkgIChABGAIqQKkSDbRuVEQUk9qN1odC098l9SEj...","type":["string","null"]}},"type":"object"}],"example":{"content":[{"text":"First, we analyze the problem...","type":"reasoning_text"}],"format":"anthropic-claude-v1","id":"reasoning-123","signature":"EvcBCkgIChABGAIqQKkSDbRuVEQUk9qN1odC098l9SEj...","status":"completed","summary":[{"text":"Analyzed the problem and found the optimal solution.","type":"summary_text"}],"type":"reasoning"}},"OutputSearchModelsServerToolItem":{"example":{"arguments":"{\"query\":\"Claude Opus\"}","id":"sm_tmp_abc123","query":"Claude Opus","status":"completed","type":"openrouter:experimental__search_models"},"properties":{"arguments":{"type":"string"},"id":{"type":"string"},"query":{"description":"Запрос, относительно которого оцениваются документы.","type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["openrouter:experimental__search_models"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputShellCallItem":{"example":{"action":{"commands":["echo hello"],"max_output_length":null,"timeout_ms":null},"call_id":"call_abc123","id":"shc_abc123","status":"completed","type":"shell_call"},"properties":{"action":{"properties":{"commands":{"items":{"type":"string"},"type":"array"},"max_output_length":{"type":["integer","null"]},"timeout_ms":{"type":["integer","null"]}},"required":["commands","max_output_length","timeout_ms"],"type":"object"},"arguments":{"type":["string","null"]},"call_id":{"type":"string"},"id":{"type":"string"},"status":{"$ref":"#/components/schemas/ShellCallStatus"},"type":{"enum":["shell_call"],"type":"string"}},"required":["type","id","call_id","status"],"type":"object"},"OutputShellCallOutputItem":{"example":{"call_id":"call_abc123","id":"sho_abc123","output":[{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"hello\n"}],"status":"completed","type":"shell_call_output"},"properties":{"call_id":{"type":"string"},"container_id":{"type":"string"},"files":{"items":{"properties":{"container_id":{"type":"string"},"end_index":{"type":"integer"},"file_id":{"type":"string"},"filename":{"type":"string"},"start_index":{"type":"integer"},"type":{"enum":["container_file_citation"],"type":"string"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object"},"type":"array"},"id":{"type":"string"},"max_output_length":{"type":["integer","null"]},"output":{"items":{"$ref":"#/components/schemas/ShellCallOutputContent"},"type":"array"},"status":{"$ref":"#/components/schemas/ShellCallStatus"},"type":{"enum":["shell_call_output"],"type":"string"}},"required":["type","id","call_id","status","output"],"type":"object"},"OutputShellServerToolItem":{"example":{"action":{"commands":["echo hello"],"max_output_length":null,"timeout_ms":null},"call_id":"call_abc123","id":"st_tmp_abc123","output":[{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"hello\n"}],"status":"completed","type":"openrouter:shell"},"properties":{"action":{"properties":{"commands":{"items":{"type":"string"},"type":"array"},"max_output_length":{"type":["integer","null"]},"timeout_ms":{"type":["integer","null"]}},"required":["commands"],"type":"object"},"arguments":{"type":["string","null"]},"call_id":{"type":["string","null"]},"container_id":{"type":"string"},"files":{"items":{"properties":{"container_id":{"type":"string"},"end_index":{"type":"integer"},"file_id":{"type":"string"},"filename":{"type":"string"},"start_index":{"type":"integer"},"type":{"enum":["container_file_citation"],"type":"string"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object"},"type":"array"},"id":{"type":"string"},"output":{"items":{"$ref":"#/components/schemas/ShellCallOutputContent"},"type":"array"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["openrouter:shell"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputSubagentServerToolItem":{"example":{"id":"st_tmp_abc123","status":"completed","type":"openrouter:subagent"},"properties":{"call_id":{"type":"string"},"error":{"type":"string"},"id":{"type":"string"},"instance_name":{"example":"openrouter_subagent__1","type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"summarizer","type":"string"},"outcome":{"type":"string"},"status":{"$ref":"#/components/schemas/FailableToolCallStatus"},"task_description":{"type":"string"},"task_name":{"type":"string"},"type":{"enum":["openrouter:subagent"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputTextEditorServerToolItem":{"example":{"command":"view","filePath":"/src/main.ts","id":"te_tmp_abc123","status":"completed","type":"openrouter:text_editor"},"properties":{"command":{"enum":["view","create","str_replace","insert"],"type":"string","x-speakeasy-unknown-values":"allow"},"filePath":{"type":"string"},"id":{"type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["openrouter:text_editor"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputToolSearchServerToolItem":{"example":{"id":"ts_tmp_abc123","query":"weather tools","status":"completed","type":"openrouter:tool_search"},"properties":{"id":{"type":"string"},"query":{"description":"Запрос, относительно которого оцениваются документы.","type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["openrouter:tool_search"],"type":"string"}},"required":["status","type"],"type":"object"},"OutputWebFetchServerToolItem":{"example":{"httpStatus":200,"id":"wf_tmp_abc123","status":"completed","title":"Example Domain","type":"openrouter:web_fetch","url":"https://example.com"},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","type":"string"},"error":{"type":"string"},"httpStatus":{"type":"integer"},"id":{"type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"title":{"type":"string"},"type":{"enum":["openrouter:web_fetch"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["status","type"],"type":"object"},"OutputWebSearchCallItem":{"allOf":[{"$ref":"#/components/schemas/OutputItemWebSearchCall"},{"additionalProperties":{},"properties":{},"type":"object"}],"example":{"id":"ws-abc123","status":"completed","type":"web_search_call"}},"OutputWebSearchServerToolItem":{"example":{"action":{"query":"latest AI news","type":"search"},"id":"ws_tmp_abc123","status":"completed","type":"openrouter:web_search"},"properties":{"action":{"properties":{"query":{"description":"Запрос, относительно которого оцениваются документы.","type":"string"},"sources":{"items":{"properties":{"type":{"enum":["url"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["type","url"],"type":"object"},"type":"array"},"type":{"enum":["search"],"type":"string"}},"required":["type","query"],"type":"object"},"id":{"type":"string"},"status":{"$ref":"#/components/schemas/ToolCallStatus"},"type":{"enum":["openrouter:web_search"],"type":"string"}},"required":["status","type"],"type":"object"},"PDFParserEngine":{"anyOf":[{"enum":["mistral-ocr","native","cloudflare-ai"],"type":"string","x-speakeasy-unknown-values":"allow"},{"enum":["pdf-text"],"type":"string"}],"example":"cloudflare-ai"},"PDFParserOptions":{"example":{"engine":"cloudflare-ai"},"properties":{"engine":{"$ref":"#/components/schemas/PDFParserEngine"}},"type":"object"},"Parameter":{"enum":["temperature","top_p","top_k","min_p","top_a","frequency_penalty","presence_penalty","repetition_penalty","max_tokens","max_completion_tokens","logit_bias","logprobs","top_logprobs","prediction","seed","response_format","structured_outputs","stop","tools","tool_choice","parallel_tool_calls","include_reasoning","reasoning","reasoning_effort","web_search_options","verbosity"],"example":"temperature","type":"string","x-speakeasy-unknown-values":"allow"},"ParetoRouterPlugin":{"example":{"enabled":true,"id":"pareto-router","max_price":5,"price_source":"prompt"},"properties":{"enabled":{"type":"boolean"},"id":{"enum":["pareto-router"],"type":"string"},"max_price":{"example":5,"format":"double","minimum":0,"type":"number"},"min_coding_score":{"example":0.8,"format":"double","maximum":1,"minimum":0,"type":"number"},"price_source":{"enum":["prompt","weighted_avg"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["id"],"type":"object"},"PayloadTooLargeResponse":{"example":{"error":{"code":413,"message":"Request payload too large"}},"properties":{"error":{"$ref":"#/components/schemas/PayloadTooLargeResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"PayloadTooLargeResponseErrorData":{"example":{"code":413,"message":"Request payload too large"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"PaymentRequiredResponse":{"example":{"error":{"code":402,"message":"Insufficient credits. Add more using https://openrouter.ai/credits"}},"properties":{"error":{"$ref":"#/components/schemas/PaymentRequiredResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"PaymentRequiredResponseErrorData":{"example":{"code":402,"message":"Insufficient credits. Add more using https://openrouter.ai/credits"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"PerRequestLimits":{"example":{"completion_tokens":1000,"prompt_tokens":1000},"properties":{"completion_tokens":{"example":1000,"type":"number"},"prompt_tokens":{"example":1000,"type":"number"}},"required":["prompt_tokens","completion_tokens"],"type":["object","null"]},"PercentileLatencyCutoffs":{"example":{"p50":5,"p90":10},"properties":{"p50":{"format":"double","type":["number","null"]},"p75":{"format":"double","type":["number","null"]},"p90":{"format":"double","type":["number","null"]},"p99":{"format":"double","type":["number","null"]}},"type":"object"},"PercentileStats":{"example":{"p50":25.5,"p75":35.2,"p90":48.7,"p99":85.3},"properties":{"p50":{"example":25.5,"format":"double","type":"number"},"p75":{"example":35.2,"format":"double","type":"number"},"p90":{"example":48.7,"format":"double","type":"number"},"p99":{"example":85.3,"format":"double","type":"number"}},"required":["p50","p75","p90","p99"],"type":["object","null"]},"PercentileThroughputCutoffs":{"example":{"p50":100,"p90":50},"properties":{"p50":{"format":"double","type":["number","null"]},"p75":{"format":"double","type":["number","null"]},"p90":{"format":"double","type":["number","null"]},"p99":{"format":"double","type":["number","null"]}},"type":"object"},"PipelineStage":{"example":{"data":{"action":"redacted","engines":["presidio"],"flagged":true,"matched_entity_types":["EMAIL","PHONE"]},"name":"content-filter","summary":"PII redacted via Presidio (EMAIL, PHONE)","type":"guardrail"},"properties":{"cost_usd":{"format":"double","type":["number","null"]},"data":{"additionalProperties":{},"type":"object"},"guardrail_id":{"type":"string"},"guardrail_scope":{"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"summary":{"type":"string"},"type":{"$ref":"#/components/schemas/PipelineStageType"}},"required":["type","name"],"type":"object"},"PipelineStageType":{"enum":["guardrail","plugin","server_tools","response_healing","context_compression"],"example":"guardrail","type":"string","x-speakeasy-unknown-values":"allow"},"Prediction":{"example":{"content":"Expected response","type":"content"},"properties":{"content":{"anyOf":[{"description":"Содержимое сообщения или входные данные.","type":"string"},{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/PredictionContentText","description":"Содержимое сообщения или входные данные."},"type":"array"}],"description":"Содержимое сообщения или входные данные."},"type":{"enum":["content"],"type":"string"}},"required":["type","content"],"type":["object","null"]},"PredictionContentText":{"example":{"text":"Expected response","type":"text"},"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"required":["type","text"],"type":"object"},"PreferredMaxLatency":{"anyOf":[{"format":"double","type":"number"},{"$ref":"#/components/schemas/PercentileLatencyCutoffs"},{"type":"null"}],"example":5},"PreferredMinThroughput":{"anyOf":[{"format":"double","type":"number"},{"$ref":"#/components/schemas/PercentileThroughputCutoffs"},{"type":"null"}],"example":100},"Preset":{"example":{"created_at":"2026-04-20T10:00:00Z","creator_user_id":"user_2dHFtVWx2n56w6HkM0000000000","description":null,"designated_version_id":"550e8400-e29b-41d4-a716-446655440000","id":"650e8400-e29b-41d4-a716-446655440001","name":"my-preset","slug":"my-preset","status":"active","status_updated_at":null,"updated_at":"2026-04-20T10:00:00Z","workspace_id":"750e8400-e29b-41d4-a716-446655440002"},"properties":{"created_at":{"type":"string"},"creator_user_id":{"type":["string","null"]},"description":{"type":["string","null"]},"designated_version_id":{"type":["string","null"]},"id":{"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"slug":{"description":"Короткий идентификатор модели.","type":"string"},"status":{"$ref":"#/components/schemas/PresetStatus"},"status_updated_at":{"type":["string","null"]},"updated_at":{"type":"string"},"workspace_id":{"type":["string","null"]}},"required":["id","creator_user_id","workspace_id","name","slug","description","status","designated_version_id","created_at","updated_at","status_updated_at"],"type":"object"},"PresetDesignatedVersion":{"example":{"config":{"model":"openai/gpt-4o","temperature":0.7},"created_at":"2026-04-20T10:00:00Z","creator_id":"user_2dHFtVWx2n56w6HkM0000000000","id":"550e8400-e29b-41d4-a716-446655440000","preset_id":"650e8400-e29b-41d4-a716-446655440001","system_prompt":"You are a helpful assistant.","updated_at":"2026-04-20T10:00:00Z","version":1},"properties":{"config":{"additionalProperties":{},"type":"object"},"created_at":{"type":"string"},"creator_id":{"type":"string"},"id":{"type":"string"},"preset_id":{"type":"string"},"system_prompt":{"type":["string","null"]},"updated_at":{"type":"string"},"version":{"type":"integer"}},"required":["id","preset_id","creator_id","version","system_prompt","config","created_at","updated_at"],"type":["object","null"]},"PresetStatus":{"enum":["active","disabled","archived"],"example":"active","type":"string","x-speakeasy-unknown-values":"allow"},"PresetWithDesignatedVersion":{"allOf":[{"$ref":"#/components/schemas/Preset"},{"properties":{"designated_version":{"$ref":"#/components/schemas/PresetDesignatedVersion"}},"required":["designated_version"],"type":"object"}],"example":{"created_at":"2026-04-20T10:00:00Z","creator_user_id":"user_2dHFtVWx2n56w6HkM0000000000","description":null,"designated_version":{"config":{"model":"openai/gpt-4o","temperature":0.7},"created_at":"2026-04-20T10:00:00Z","creator_id":"user_2dHFtVWx2n56w6HkM0000000000","id":"550e8400-e29b-41d4-a716-446655440000","preset_id":"650e8400-e29b-41d4-a716-446655440001","system_prompt":"You are a helpful assistant.","updated_at":"2026-04-20T10:00:00Z","version":1},"designated_version_id":"550e8400-e29b-41d4-a716-446655440000","id":"650e8400-e29b-41d4-a716-446655440001","name":"my-preset","slug":"my-preset","status":"active","status_updated_at":null,"updated_at":"2026-04-20T10:00:00Z","workspace_id":"750e8400-e29b-41d4-a716-446655440002"}},"Preview_20250311_WebSearchServerTool":{"example":{"type":"web_search_preview_2025_03_11"},"properties":{"engine":{"$ref":"#/components/schemas/WebSearchEngineEnum"},"filters":{"$ref":"#/components/schemas/WebSearchDomainFilter"},"max_results":{"example":5,"type":"integer"},"max_uses":{"example":3,"type":"integer"},"mode":{"$ref":"#/components/schemas/WebSearchMode"},"search_context_size":{"$ref":"#/components/schemas/SearchContextSizeEnum"},"type":{"enum":["web_search_preview_2025_03_11"],"type":"string"},"user_location":{"$ref":"#/components/schemas/Preview_WebSearchUserLocation"}},"required":["type"],"type":"object"},"Preview_WebSearchServerTool":{"example":{"type":"web_search_preview"},"properties":{"engine":{"$ref":"#/components/schemas/WebSearchEngineEnum"},"filters":{"$ref":"#/components/schemas/WebSearchDomainFilter"},"max_results":{"example":5,"type":"integer"},"max_uses":{"example":3,"type":"integer"},"mode":{"$ref":"#/components/schemas/WebSearchMode"},"search_context_size":{"$ref":"#/components/schemas/SearchContextSizeEnum"},"type":{"enum":["web_search_preview"],"type":"string"},"user_location":{"$ref":"#/components/schemas/Preview_WebSearchUserLocation"}},"required":["type"],"type":"object"},"Preview_WebSearchUserLocation":{"example":{"city":"San Francisco","country":"USA","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"type":["string","null"]},"country":{"type":["string","null"]},"region":{"type":["string","null"]},"timezone":{"type":["string","null"]},"type":{"enum":["approximate"],"type":"string"}},"required":["type"],"type":["object","null"]},"PricingOverride":{"example":{"completion":"0.00002","min_prompt_tokens":200000,"prompt":"0.000005"},"properties":{"audio":{"description":"Настройки аудио.","type":"string"},"completion":{"type":"string"},"input_audio_cache":{"type":"string"},"input_cache_read":{"type":"string"},"input_cache_write":{"type":"string"},"input_cache_write_1h":{"type":"string"},"min_prompt_tokens":{"format":"double","type":"number"},"prompt":{"description":"Текстовое описание желаемого результата.","type":"string"},"utc_days":{"items":{"enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],"type":"string","x-speakeasy-unknown-values":"allow"},"minItems":1,"type":"array"},"utc_end":{"format":"double","type":"number"},"utc_start":{"format":"double","type":"number"}},"type":"object"},"PromptCacheBreakpoint":{"example":{"mode":"explicit"},"properties":{"mode":{"enum":["explicit"],"type":"string"}},"required":["mode"],"type":["object","null"]},"PromptCacheOptions":{"example":{"mode":"explicit","ttl":"30m"},"properties":{"mode":{"enum":["explicit"],"type":"string"},"ttl":{"type":["string","null"]}},"required":["mode"],"type":["object","null"]},"PromptInjectionScanScope":{"enum":["user_only","all_messages"],"example":"user_only","type":"string","x-speakeasy-unknown-values":"allow"},"ProviderName":{"enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parasail","Poolside","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Reka","Relace","Sail Research","Sakana AI","SambaNova","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI","type":"string","x-speakeasy-unknown-values":"allow"},"ProviderOptions":{"example":{"openai":{"max_tokens":1000}},"properties":{"01ai":{"additionalProperties":{},"type":"object"},"ai21":{"additionalProperties":{},"type":"object"},"aion-labs":{"additionalProperties":{},"type":"object"},"akashml":{"additionalProperties":{},"type":"object"},"alibaba":{"additionalProperties":{},"type":"object"},"amazon-bedrock":{"additionalProperties":{},"type":"object"},"amazon-bedrock/claude-on-aws":{"additionalProperties":{},"type":"object"},"amazon-nova":{"additionalProperties":{},"type":"object"},"ambient":{"additionalProperties":{},"type":"object"},"anthropic":{"additionalProperties":{},"type":"object"},"anthropic/2":{"additionalProperties":{},"type":"object"},"anyscale":{"additionalProperties":{},"type":"object"},"arcee-ai":{"additionalProperties":{},"type":"object"},"atlas-cloud":{"additionalProperties":{},"type":"object"},"atoma":{"additionalProperties":{},"type":"object"},"avian":{"additionalProperties":{},"type":"object"},"azure":{"additionalProperties":{},"type":"object"},"baidu":{"additionalProperties":{},"type":"object"},"baseten":{"additionalProperties":{},"type":"object"},"black-forest-labs":{"additionalProperties":{},"type":"object"},"byteplus":{"additionalProperties":{},"type":"object"},"centml":{"additionalProperties":{},"type":"object"},"cerebras":{"additionalProperties":{},"type":"object"},"chutes":{"additionalProperties":{},"type":"object"},"cirrascale":{"additionalProperties":{},"type":"object"},"clarifai":{"additionalProperties":{},"type":"object"},"claude-on-aws":{"additionalProperties":{},"type":"object"},"cloudflare":{"additionalProperties":{},"type":"object"},"cohere":{"additionalProperties":{},"type":"object"},"coreweave":{"additionalProperties":{},"type":"object"},"cosine":{"additionalProperties":{},"type":"object"},"crofai":{"additionalProperties":{},"type":"object"},"crucible":{"additionalProperties":{},"type":"object"},"crusoe":{"additionalProperties":{},"type":"object"},"darkbloom":{"additionalProperties":{},"type":"object"},"databricks":{"additionalProperties":{},"type":"object"},"decart":{"additionalProperties":{},"type":"object"},"deepgram":{"additionalProperties":{},"type":"object"},"deepinfra":{"additionalProperties":{},"type":"object"},"deepseek":{"additionalProperties":{},"type":"object"},"dekallm":{"additionalProperties":{},"type":"object"},"digitalocean":{"additionalProperties":{},"type":"object"},"enfer":{"additionalProperties":{},"type":"object"},"fake-provider":{"additionalProperties":{},"type":"object"},"featherless":{"additionalProperties":{},"type":"object"},"fireworks":{"additionalProperties":{},"type":"object"},"fish-audio":{"additionalProperties":{},"type":"object"},"friendli":{"additionalProperties":{},"type":"object"},"gmicloud":{"additionalProperties":{},"type":"object"},"google-ai-studio":{"additionalProperties":{},"type":"object"},"google-vertex":{"additionalProperties":{},"type":"object"},"gopomelo":{"additionalProperties":{},"type":"object"},"groq":{"additionalProperties":{},"type":"object"},"heygen":{"additionalProperties":{},"type":"object"},"huggingface":{"additionalProperties":{},"type":"object"},"hyperbolic":{"additionalProperties":{},"type":"object"},"hyperbolic-quantized":{"additionalProperties":{},"type":"object"},"inception":{"additionalProperties":{},"type":"object"},"inceptron":{"additionalProperties":{},"type":"object"},"inferact-vllm":{"additionalProperties":{},"type":"object"},"inference-net":{"additionalProperties":{},"type":"object"},"infermatic":{"additionalProperties":{},"type":"object"},"inflection":{"additionalProperties":{},"type":"object"},"inocloud":{"additionalProperties":{},"type":"object"},"io-net":{"additionalProperties":{},"type":"object"},"ionstream":{"additionalProperties":{},"type":"object"},"klusterai":{"additionalProperties":{},"type":"object"},"krea":{"additionalProperties":{},"type":"object"},"lambda":{"additionalProperties":{},"type":"object"},"lepton":{"additionalProperties":{},"type":"object"},"liquid":{"additionalProperties":{},"type":"object"},"lynn":{"additionalProperties":{},"type":"object"},"lynn-private":{"additionalProperties":{},"type":"object"},"makora":{"additionalProperties":{},"type":"object"},"mancer":{"additionalProperties":{},"type":"object"},"mancer-old":{"additionalProperties":{},"type":"object"},"mara":{"additionalProperties":{},"type":"object"},"meta":{"additionalProperties":{},"type":"object"},"minimax":{"additionalProperties":{},"type":"object"},"mistral":{"additionalProperties":{},"type":"object"},"modal":{"additionalProperties":{},"type":"object"},"modelrun":{"additionalProperties":{},"type":"object"},"modular":{"additionalProperties":{},"type":"object"},"moonshotai":{"additionalProperties":{},"type":"object"},"morph":{"additionalProperties":{},"type":"object"},"ncompass":{"additionalProperties":{},"type":"object"},"near-ai":{"additionalProperties":{},"type":"object"},"nebius":{"additionalProperties":{},"type":"object"},"nex-agi":{"additionalProperties":{},"type":"object"},"nextbit":{"additionalProperties":{},"type":"object"},"nineteen":{"additionalProperties":{},"type":"object"},"novita":{"additionalProperties":{},"type":"object"},"nvidia":{"additionalProperties":{},"type":"object"},"octoai":{"additionalProperties":{},"type":"object"},"ollama":{"additionalProperties":{},"type":"object"},"open-inference":{"additionalProperties":{},"type":"object"},"openai":{"additionalProperties":{},"type":"object"},"parasail":{"additionalProperties":{},"type":"object"},"perceptron":{"additionalProperties":{},"type":"object"},"perplexity":{"additionalProperties":{},"type":"object"},"phala":{"additionalProperties":{},"type":"object"},"poolside":{"additionalProperties":{},"type":"object"},"primeintellect":{"additionalProperties":{},"type":"object"},"quiver":{"additionalProperties":{},"type":"object"},"recraft":{"additionalProperties":{},"type":"object"},"recursal":{"additionalProperties":{},"type":"object"},"reflection":{"additionalProperties":{},"type":"object"},"reka":{"additionalProperties":{},"type":"object"},"relace":{"additionalProperties":{},"type":"object"},"replicate":{"additionalProperties":{},"type":"object"},"runway":{"additionalProperties":{},"type":"object"},"sail-research":{"additionalProperties":{},"type":"object"},"sakana":{"additionalProperties":{},"type":"object"},"sakana-ai":{"additionalProperties":{},"type":"object"},"sambanova":{"additionalProperties":{},"type":"object"},"sambanova-cloaked":{"additionalProperties":{},"type":"object"},"seed":{"additionalProperties":{"description":"Начальное значение для воспроизводимой генерации."},"description":"Начальное значение для воспроизводимой генерации.","type":"object"},"sf-compute":{"additionalProperties":{},"type":"object"},"siliconflow":{"additionalProperties":{},"type":"object"},"sourceful":{"additionalProperties":{},"type":"object"},"stealth":{"additionalProperties":{},"type":"object"},"stepfun":{"additionalProperties":{},"type":"object"},"streamlake":{"additionalProperties":{},"type":"object"},"switchpoint":{"additionalProperties":{},"type":"object"},"targon":{"additionalProperties":{},"type":"object"},"tencent":{"additionalProperties":{},"type":"object"},"tenstorrent":{"additionalProperties":{},"type":"object"},"thinkingmachines":{"additionalProperties":{},"type":"object"},"together":{"additionalProperties":{},"type":"object"},"together-lite":{"additionalProperties":{},"type":"object"},"ubicloud":{"additionalProperties":{},"type":"object"},"upstage":{"additionalProperties":{},"type":"object"},"venice":{"additionalProperties":{},"type":"object"},"voyageai":{"additionalProperties":{},"type":"object"},"wafer":{"additionalProperties":{},"type":"object"},"wandb":{"additionalProperties":{},"type":"object"},"wandb-legacy":{"additionalProperties":{},"type":"object"},"xai":{"additionalProperties":{},"type":"object"},"xiaomi":{"additionalProperties":{},"type":"object"},"z-ai":{"additionalProperties":{},"type":"object"}},"type":"object"},"ProviderOverloadedResponse":{"example":{"error":{"code":529,"message":"Provider returned error"}},"properties":{"error":{"$ref":"#/components/schemas/ProviderOverloadedResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"ProviderOverloadedResponseErrorData":{"example":{"code":529,"message":"Provider returned error"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"ProviderPreferences":{"additionalProperties":false,"example":{"allow_fallbacks":true},"properties":{"allow_fallbacks":{"type":["boolean","null"]},"data_collection":{"enum":["deny","allow",null],"example":"allow","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"enforce_distillable_text":{"example":true,"type":["boolean","null"]},"ignore":{"example":["openai","anthropic"],"items":{"anyOf":[{"$ref":"#/components/schemas/ProviderName"},{"type":"string"}]},"type":["array","null"]},"max_price":{"properties":{"audio":{"description":"Настройки аудио.","type":"string"},"completion":{"type":"string"},"image":{"type":"string"},"prompt":{"description":"Текстовое описание желаемого результата.","type":"string"},"request":{"type":"string"}},"type":"object"},"only":{"example":["openai","anthropic"],"items":{"anyOf":[{"$ref":"#/components/schemas/ProviderName"},{"type":"string"}]},"type":["array","null"]},"order":{"example":["openai","anthropic"],"items":{"anyOf":[{"$ref":"#/components/schemas/ProviderName"},{"type":"string"}]},"type":["array","null"]},"preferred_max_latency":{"$ref":"#/components/schemas/PreferredMaxLatency"},"preferred_min_throughput":{"$ref":"#/components/schemas/PreferredMinThroughput"},"quantizations":{"items":{"$ref":"#/components/schemas/Quantization"},"type":["array","null"]},"require_parameters":{"type":["boolean","null"]},"sort":{"anyOf":[{"$ref":"#/components/schemas/ProviderSort"},{"$ref":"#/components/schemas/ProviderSortConfig"},{"type":"null"}],"example":"price"},"zdr":{"example":true,"type":["boolean","null"]}},"type":["object","null"]},"ProviderResponse":{"example":{"endpoint_id":"ep_abc123","id":"chatcmpl-abc123","is_byok":false,"latency":1200,"model_permaslug":"openai/gpt-4","provider_name":"OpenAI","status":200},"properties":{"endpoint_id":{"example":"ep_abc123","type":"string"},"id":{"example":"chatcmpl-abc123","type":"string"},"is_byok":{"example":false,"type":"boolean"},"latency":{"example":1200,"format":"double","type":"number"},"model_permaslug":{"example":"openai/gpt-4","type":"string"},"provider_name":{"enum":["AnyScale","Atoma","Cent-ML","CrofAI","Enfer","GoPomelo","HuggingFace","Hyperbolic","Hyperbolic 2","InoCloud","Kluster","Lambda","Lepton","Lynn 2","Lynn","Mancer","Modal","NCompass","Nineteen","OctoAI","Recursal","Reflection","Replicate","SambaNova 2","SF Compute","Targon","Together 2","Ubicloud","01.AI","AkashML","AI21","AionLabs","Alibaba","Ambient","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parasail","Poolside","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Reka","Relace","Sail Research","Sakana AI","SambaNova","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"example":"OpenAI","type":"string","x-speakeasy-unknown-values":"allow"},"routed_service_tier":{"enum":["flex","priority"],"example":"priority","type":"string","x-speakeasy-unknown-values":"allow"},"status":{"example":200,"type":["integer","null"]}},"required":["status"],"type":"object"},"ProviderSort":{"enum":["price","throughput","latency","exacto"],"example":"price","type":"string","x-speakeasy-unknown-values":"allow"},"ProviderSortConfig":{"example":{"by":"price","partition":"model"},"properties":{"by":{"enum":["price","throughput","latency","exacto",null],"example":"price","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"partition":{"enum":["model","none",null],"example":"model","type":["string","null"],"x-speakeasy-unknown-values":"allow"}},"type":"object"},"PublicEndpoint":{"example":{"context_length":8192,"latency_last_30m":{"p50":0.25,"p75":0.35,"p90":0.48,"p99":0.85},"max_completion_tokens":4096,"max_prompt_tokens":8192,"model_id":"openai/gpt-4","model_name":"GPT-4","name":"OpenAI: GPT-4","perf_last_30m_by_workload":{"text_generation":{"latency":{"p50":250,"p75":350,"p90":480,"p99":850},"request_count":1000,"throughput":{"p50":45.2,"p75":38.5,"p90":28.3,"p99":15.1}}},"pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"provider_name":"OpenAI","quantization":"fp16","status":0,"supported_parameters":["temperature","top_p","max_tokens"],"supports_implicit_caching":true,"supports_tool_choice":{"auto":true,"function":true,"none":true,"required":true},"supports_voice_cloning":false,"tag":"openai","throughput_last_30m":{"p50":45.2,"p75":38.5,"p90":28.3,"p99":15.1},"uptime_last_1d":99.8,"uptime_last_30m":99.5,"uptime_last_5m":100},"properties":{"context_length":{"type":"integer"},"latency_last_30m":{"$ref":"#/components/schemas/PercentileStats"},"max_completion_tokens":{"description":"Максимальное количество токенов завершения.","type":["integer","null"]},"max_prompt_tokens":{"type":["integer","null"]},"model_id":{"example":"openai/gpt-4","type":"string"},"model_name":{"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","type":"string"},"perf_last_30m_by_workload":{"additionalProperties":false,"properties":{"embeddings":{"properties":{"latency":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]},"request_count":{"type":["integer","null"]},"throughput":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]}},"required":["latency","throughput","request_count"],"type":"object"},"image_generation":{"properties":{"latency":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]},"request_count":{"type":["integer","null"]},"throughput":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]}},"required":["latency","throughput","request_count"],"type":"object"},"rerank":{"properties":{"latency":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]},"request_count":{"type":["integer","null"]},"throughput":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]}},"required":["latency","throughput","request_count"],"type":"object"},"stt":{"properties":{"latency":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]},"request_count":{"type":["integer","null"]},"throughput":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]}},"required":["latency","throughput","request_count"],"type":"object"},"text_generation":{"properties":{"latency":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]},"request_count":{"type":["integer","null"]},"throughput":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]}},"required":["latency","throughput","request_count"],"type":"object"},"tts":{"properties":{"latency":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]},"request_count":{"type":["integer","null"]},"throughput":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]}},"required":["latency","throughput","request_count"],"type":"object"},"unknown":{"properties":{"latency":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]},"request_count":{"type":["integer","null"]},"throughput":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]}},"required":["latency","throughput","request_count"],"type":"object"},"video_generation":{"properties":{"latency":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]},"request_count":{"type":["integer","null"]},"throughput":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]}},"required":["latency","throughput","request_count"],"type":"object"}},"type":"object"},"pricing":{"properties":{"audio":{"description":"Настройки аудио.","type":"string"},"audio_output":{"type":"string"},"completion":{"type":"string"},"discount":{"format":"double","type":"number"},"image":{"type":"string"},"image_output":{"type":"string"},"image_token":{"type":"string"},"input_audio_cache":{"type":"string"},"input_cache_read":{"type":"string"},"input_cache_write":{"type":"string"},"input_cache_write_1h":{"type":"string"},"internal_reasoning":{"type":"string"},"overrides":{"items":{"$ref":"#/components/schemas/PricingOverride"},"type":"array"},"prompt":{"description":"Текстовое описание желаемого результата.","type":"string"},"request":{"type":"string"},"web_search":{"type":"string"}},"required":["prompt","completion"],"type":"object"},"provider_name":{"$ref":"#/components/schemas/ProviderName"},"quantization":{"anyOf":[{"$ref":"#/components/schemas/Quantization"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/EndpointStatus"},"supported_parameters":{"items":{"$ref":"#/components/schemas/Parameter"},"type":"array"},"supports_implicit_caching":{"type":"boolean"},"supports_tool_choice":{"$ref":"#/components/schemas/ToolChoiceSupport"},"supports_voice_cloning":{"default":false,"type":"boolean"},"tag":{"type":"string"},"throughput_last_30m":{"allOf":[{"$ref":"#/components/schemas/PercentileStats"},{}]},"uptime_last_1d":{"format":"double","type":["number","null"]},"uptime_last_30m":{"format":"double","type":["number","null"]},"uptime_last_5m":{"format":"double","type":["number","null"]}},"required":["name","model_id","model_name","context_length","pricing","provider_name","tag","quantization","max_completion_tokens","max_prompt_tokens","supported_parameters","supports_tool_choice","uptime_last_30m","uptime_last_5m","uptime_last_1d","supports_implicit_caching","latency_last_30m","throughput_last_30m"],"type":"object"},"PublicPricing":{"example":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"properties":{"audio":{"description":"Настройки аудио.","type":"string"},"audio_output":{"type":"string"},"completion":{"type":"string"},"discount":{"format":"double","type":"number"},"image":{"type":"string"},"image_output":{"type":"string"},"image_token":{"type":"string"},"input_audio_cache":{"type":"string"},"input_cache_read":{"type":"string"},"input_cache_write":{"type":"string"},"input_cache_write_1h":{"type":"string"},"internal_reasoning":{"type":"string"},"overrides":{"items":{"$ref":"#/components/schemas/PricingOverride"},"type":"array"},"prompt":{"description":"Текстовое описание желаемого результата.","type":"string"},"request":{"type":"string"},"unit":{"description":"Единица расчёта аудио: characters для TTS, seconds для STT. Значения prompt и completion выражены в рублях за эту единицу.","example":"characters","type":"string"},"web_search":{"type":"string"}},"required":["prompt","completion"],"type":"object"},"Quantization":{"enum":["int4","int8","fp4","mxfp4","nvfp4","fp6","fp8","mxfp8","fp16","bf16","fp32","unknown"],"example":"fp16","type":"string","x-speakeasy-unknown-values":"allow"},"RangeCapability":{"example":{"max":100,"min":0,"type":"range"},"properties":{"max":{"type":"number"},"min":{"type":"number"},"type":{"enum":["range"],"type":"string"}},"required":["type","min","max"],"type":"object"},"RankingsDailyItem":{"example":{"date":"2026-05-11","model_permaslug":"openai/gpt-4o-2024-05-13","total_tokens":"12345678"},"properties":{"date":{"example":"2026-05-11","type":"string"},"model_permaslug":{"example":"openai/gpt-4o-2024-05-13","type":"string"},"total_tokens":{"example":"12345678","type":"string"}},"required":["date","model_permaslug","total_tokens"],"type":"object"},"RankingsDailyMeta":{"example":{"as_of":"2026-05-12T02:00:00.000Z","end_date":"2026-05-11","start_date":"2026-04-12","version":"v1"},"properties":{"as_of":{"example":"2026-05-12T02:00:00.000Z","type":"string"},"end_date":{"example":"2026-05-11","type":"string"},"start_date":{"example":"2026-04-12","type":"string"},"version":{"enum":["v1"],"type":"string"}},"required":["as_of","version","start_date","end_date"],"type":"object"},"RankingsDailyResponse":{"example":{"data":[{"date":"2026-05-11","model_permaslug":"openai/gpt-4o-2024-05-13","total_tokens":"12345678"},{"date":"2026-05-11","model_permaslug":"anthropic/claude-3.5-sonnet-20241022","total_tokens":"9876543"}],"meta":{"as_of":"2026-05-12T02:00:00.000Z","end_date":"2026-05-11","start_date":"2026-04-12","version":"v1"}},"properties":{"data":{"items":{"$ref":"#/components/schemas/RankingsDailyItem"},"type":"array"},"meta":{"$ref":"#/components/schemas/RankingsDailyMeta"}},"required":["data","meta"],"type":"object"},"ReasoningConfig":{"anyOf":[{"allOf":[{"$ref":"#/components/schemas/BaseReasoningConfig"},{"properties":{"enabled":{"type":["boolean","null"]},"max_tokens":{"description":"Максимальное количество токенов в ответе.","type":["integer","null"]}},"type":"object"}]},{"type":"null"}],"example":{"enabled":true,"summary":"auto"}},"ReasoningContext":{"enum":["auto","all_turns","current_turn",null],"example":"all_turns","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"ReasoningDeltaEvent":{"allOf":[{"$ref":"#/components/schemas/BaseReasoningDeltaEvent"},{"properties":{},"type":"object"}],"example":{"content_index":0,"delta":"First, we need","item_id":"item-1","output_index":0,"sequence_number":4,"type":"response.reasoning_text.delta"}},"ReasoningDetailEncrypted":{"example":{"data":"encrypted data","type":"reasoning.encrypted"},"properties":{"data":{"type":"string"},"format":{"$ref":"#/components/schemas/ReasoningFormat"},"id":{"type":["string","null"]},"index":{"description":"Номер результата в задаче генерации.","type":"integer"},"type":{"enum":["reasoning.encrypted"],"type":"string"}},"required":["type","data"],"type":"object"},"ReasoningDetailServerToolCall":{"example":{"arguments":"{\"prompt\":\"Compare carbon tax proposals\"}","result":"{\"status\":\"ok\",\"models\":[\"openai/gpt-4o\"]}","tool_call_id":"call_abc123","tool_name":"openrouter:fusion","type":"reasoning.server_tool_call"},"properties":{"arguments":{"type":"string"},"format":{"$ref":"#/components/schemas/ReasoningFormat"},"id":{"type":["string","null"]},"index":{"description":"Номер результата в задаче генерации.","type":"integer"},"result":{"type":"string"},"tool_call_id":{"type":["string","null"]},"tool_name":{"type":"string"},"type":{"enum":["reasoning.server_tool_call"],"type":"string"}},"required":["type","tool_name","arguments","result"],"type":"object"},"ReasoningDetailSummary":{"example":{"summary":"The model analyzed the problem by first identifying key constraints, then evaluating possible solutions...","type":"reasoning.summary"},"properties":{"format":{"$ref":"#/components/schemas/ReasoningFormat"},"id":{"type":["string","null"]},"index":{"description":"Номер результата в задаче генерации.","type":"integer"},"summary":{"type":"string"},"type":{"enum":["reasoning.summary"],"type":"string"}},"required":["type","summary"],"type":"object"},"ReasoningDetailText":{"example":{"signature":"signature","text":"The model analyzed the problem by first identifying key constraints, then evaluating possible solutions...","type":"reasoning.text"},"properties":{"format":{"$ref":"#/components/schemas/ReasoningFormat"},"id":{"type":["string","null"]},"index":{"description":"Номер результата в задаче генерации.","type":"integer"},"signature":{"type":["string","null"]},"text":{"type":["string","null"]},"type":{"enum":["reasoning.text"],"type":"string"}},"required":["type"],"type":"object"},"ReasoningDetailUnion":{"discriminator":{"mapping":{"reasoning.encrypted":"#/components/schemas/ReasoningDetailEncrypted","reasoning.server_tool_call":"#/components/schemas/ReasoningDetailServerToolCall","reasoning.summary":"#/components/schemas/ReasoningDetailSummary","reasoning.text":"#/components/schemas/ReasoningDetailText"},"propertyName":"type"},"example":{"summary":"The model analyzed the problem by first identifying key constraints, then evaluating possible solutions...","type":"reasoning.summary"},"oneOf":[{"$ref":"#/components/schemas/ReasoningDetailSummary"},{"$ref":"#/components/schemas/ReasoningDetailEncrypted"},{"$ref":"#/components/schemas/ReasoningDetailText"},{"$ref":"#/components/schemas/ReasoningDetailServerToolCall"}]},"ReasoningDoneEvent":{"allOf":[{"$ref":"#/components/schemas/BaseReasoningDoneEvent"},{"properties":{},"type":"object"}],"example":{"content_index":0,"item_id":"item-1","output_index":0,"sequence_number":6,"text":"First, we need to identify the key components and then combine them logically.","type":"response.reasoning_text.done"}},"ReasoningEffort":{"enum":["max","xhigh","high","medium","low","minimal","none",null],"example":"medium","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"ReasoningFormat":{"enum":["unknown","openai-responses-v1","azure-openai-responses-v1","bedrock-openai-responses-v1","bedrock-xai-responses-v1","xai-responses-v1","meta-responses-v1","anthropic-claude-v1","google-gemini-v1",null],"example":"unknown","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"ReasoningItem":{"allOf":[{"$ref":"#/components/schemas/OutputItemReasoning"},{"properties":{"content":{"description":"Содержимое сообщения или входные данные.","items":{"$ref":"#/components/schemas/ReasoningTextContent","description":"Содержимое сообщения или входные данные."},"type":["array","null"]},"format":{"$ref":"#/components/schemas/ReasoningFormat"},"signature":{"type":["string","null"]}},"type":"object"}],"example":{"id":"reasoning-abc123","summary":[{"text":"Step by step analysis","type":"summary_text"}],"type":"reasoning"}},"ReasoningMode":{"enum":["standard","pro",null],"example":"standard","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"ReasoningSummaryPartAddedEvent":{"allOf":[{"$ref":"#/components/schemas/BaseReasoningSummaryPartAddedEvent"},{"properties":{},"type":"object"}],"example":{"item_id":"item-1","output_index":0,"part":{"text":"","type":"summary_text"},"sequence_number":3,"summary_index":0,"type":"response.reasoning_summary_part.added"}},"ReasoningSummaryPartDoneEvent":{"allOf":[{"$ref":"#/components/schemas/BaseReasoningSummaryPartDoneEvent"},{"properties":{},"type":"object"}],"example":{"item_id":"item-1","output_index":0,"part":{"text":"Analyzing the problem step by step to find the optimal solution.","type":"summary_text"},"sequence_number":7,"summary_index":0,"type":"response.reasoning_summary_part.done"}},"ReasoningSummaryText":{"example":{"text":"Analyzed the problem using first principles","type":"summary_text"},"properties":{"text":{"type":"string"},"type":{"enum":["summary_text"],"type":"string"}},"required":["type","text"],"type":"object"},"ReasoningSummaryTextDeltaEvent":{"allOf":[{"$ref":"#/components/schemas/BaseReasoningSummaryTextDeltaEvent"},{"properties":{},"type":"object"}],"example":{"delta":"Analyzing","item_id":"item-1","output_index":0,"sequence_number":4,"summary_index":0,"type":"response.reasoning_summary_text.delta"}},"ReasoningSummaryTextDoneEvent":{"allOf":[{"$ref":"#/components/schemas/BaseReasoningSummaryTextDoneEvent"},{"properties":{},"type":"object"}],"example":{"item_id":"item-1","output_index":0,"sequence_number":6,"summary_index":0,"text":"Analyzing the problem step by step to find the optimal solution.","type":"response.reasoning_summary_text.done"}},"ReasoningSummaryVerbosity":{"enum":["auto","concise","detailed",null],"example":"auto","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"ReasoningTextContent":{"example":{"text":"Let me think step by step about this problem...","type":"reasoning_text"},"properties":{"text":{"type":"string"},"type":{"enum":["reasoning_text"],"type":"string"}},"required":["type","text"],"type":"object"},"RefusalDeltaEvent":{"allOf":[{"$ref":"#/components/schemas/BaseRefusalDeltaEvent"},{"properties":{},"type":"object"}],"example":{"content_index":0,"delta":"I'm sorry","item_id":"item-1","output_index":0,"sequence_number":4,"type":"response.refusal.delta"}},"RefusalDoneEvent":{"allOf":[{"$ref":"#/components/schemas/BaseRefusalDoneEvent"},{"properties":{},"type":"object"}],"example":{"content_index":0,"item_id":"item-1","output_index":0,"refusal":"I'm sorry, but I can't assist with that request.","sequence_number":6,"type":"response.refusal.done"}},"RequestMetadata":{"additionalProperties":{"maxLength":512,"type":"string"},"example":{"session_id":"abc-def-ghi","user_id":"123"},"type":["object","null"]},"RequestTimeoutResponse":{"example":{"error":{"code":408,"message":"Operation timed out. Please try again later."}},"properties":{"error":{"$ref":"#/components/schemas/RequestTimeoutResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"RequestTimeoutResponseErrorData":{"example":{"code":408,"message":"Operation timed out. Please try again later."},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"ResponseHealingPlugin":{"example":{"enabled":true,"id":"response-healing"},"properties":{"enabled":{"type":"boolean"},"id":{"enum":["response-healing"],"type":"string"}},"required":["id"],"type":"object"},"ResponseIncludesEnum":{"enum":["file_search_call.results","message.input_image.image_url","computer_call_output.output.image_url","reasoning.encrypted_content","code_interpreter_call.outputs"],"example":"file_search_call.results","type":"string","x-speakeasy-unknown-values":"allow"},"ResponseOutputText":{"example":{"annotations":[{"end_index":42,"start_index":0,"title":"Paris - Wikipedia","type":"url_citation","url":"https://en.wikipedia.org/wiki/Paris"}],"text":"The capital of France is Paris.","type":"output_text"},"properties":{"annotations":{"items":{"$ref":"#/components/schemas/OpenAIResponsesAnnotation"},"type":"array"},"logprobs":{"description":"Возвращать логарифмы вероятностей токенов.","items":{"description":"Возвращать логарифмы вероятностей токенов.","properties":{"bytes":{"items":{"type":"integer"},"type":"array"},"logprob":{"format":"double","type":"number"},"token":{"type":"string"},"top_logprobs":{"description":"Количество наиболее вероятных токенов с их логарифмами вероятностей.","items":{"description":"Количество наиболее вероятных токенов с их логарифмами вероятностей.","properties":{"bytes":{"items":{"type":"integer"},"type":"array"},"logprob":{"format":"double","type":"number"},"token":{"type":"string"}},"required":["token","bytes","logprob"],"type":"object"},"type":"array"}},"required":["token","bytes","logprob","top_logprobs"],"type":"object"},"type":"array"},"text":{"type":"string"},"type":{"enum":["output_text"],"type":"string"}},"required":["type","text"],"type":"object"},"ResponsesErrorField":{"example":{"code":"rate_limit_exceeded","message":"Rate limit exceeded. Please try again later."},"properties":{"code":{"enum":["server_error","rate_limit_exceeded","invalid_prompt","vector_store_timeout","invalid_image","invalid_image_format","invalid_base64_image","invalid_image_url","image_too_large","image_too_small","image_parse_error","image_content_policy_violation","invalid_image_mode","image_file_too_large","unsupported_image_media_type","empty_image_file","failed_to_download_image","image_file_not_found","bio_policy","cyber_policy","misalignment_policy_violation","data_residency_mismatch"],"type":"string","x-speakeasy-unknown-values":"allow"},"message":{"type":"string"}},"required":["code","message"],"type":["object","null"]},"ResponsesRequest":{"example":{"input":[{"content":"Hello, how are you?","role":"user","type":"message"}],"model":"anthropic/claude-4.5-sonnet-20250929","temperature":0.7,"tools":[{"name":"get_current_weather","parameters":{"properties":{"location":{"type":"string"}},"type":"object"},"type":"function"}],"top_p":0.9},"properties":{"background":{"description":"Параметры фона результата.","type":["boolean","null"]},"cache_control":{"$ref":"#/components/schemas/AnthropicCacheControlDirective"},"debug":{"$ref":"#/components/schemas/ChatDebugOptions"},"frequency_penalty":{"description":"Штраф за частое повторение токенов.","format":"double","type":["number","null"]},"image_config":{"$ref":"#/components/schemas/ImageConfig"},"include":{"description":"Дополнительные данные, которые нужно включить в ответ.","items":{"$ref":"#/components/schemas/ResponseIncludesEnum","description":"Дополнительные данные, которые нужно включить в ответ."},"type":["array","null"]},"input":{"$ref":"#/components/schemas/Inputs","description":"Входной текст или массив входных данных."},"instructions":{"description":"Дополнительные инструкции для модели.","type":["string","null"]},"max_output_tokens":{"description":"Максимальное количество токенов в результате.","type":["integer","null"]},"max_tool_calls":{"example":30,"type":["integer","null"]},"metadata":{"$ref":"#/components/schemas/RequestMetadata","description":"Дополнительные метаданные запроса."},"modalities":{"description":"Типы результата, которые должна вернуть модель.","example":["text","image"],"items":{"$ref":"#/components/schemas/OutputModalityEnum","description":"Типы результата, которые должна вернуть модель."},"type":"array"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"models":{"description":"Дополнительные модели для резервной маршрутизации.","items":{"description":"Дополнительные модели для резервной маршрутизации.","type":"string"},"type":"array"},"parallel_tool_calls":{"description":"Разрешить одновременный вызов нескольких инструментов.","type":["boolean","null"]},"plugins":{"items":{"discriminator":{"mapping":{"auto-beta-router":"#/components/schemas/AutoBetaRouterPlugin","auto-router":"#/components/schemas/AutoRouterPlugin","context-compression":"#/components/schemas/ContextCompressionPlugin","file-parser":"#/components/schemas/FileParserPlugin","fusion":"#/components/schemas/FusionPlugin","moderation":"#/components/schemas/ModerationPlugin","pareto-router":"#/components/schemas/ParetoRouterPlugin","response-healing":"#/components/schemas/ResponseHealingPlugin","web":"#/components/schemas/WebSearchPlugin","web-fetch":"#/components/schemas/WebFetchPlugin"},"propertyName":"id"},"oneOf":[{"$ref":"#/components/schemas/AutoRouterPlugin"},{"$ref":"#/components/schemas/AutoBetaRouterPlugin"},{"$ref":"#/components/schemas/ModerationPlugin"},{"$ref":"#/components/schemas/WebSearchPlugin"},{"$ref":"#/components/schemas/WebFetchPlugin"},{"$ref":"#/components/schemas/FileParserPlugin"},{"$ref":"#/components/schemas/ResponseHealingPlugin"},{"$ref":"#/components/schemas/ContextCompressionPlugin"},{"$ref":"#/components/schemas/ParetoRouterPlugin"},{"$ref":"#/components/schemas/FusionPlugin"}]},"type":"array"},"presence_penalty":{"description":"Штраф за повторное использование уже встречавшихся токенов.","format":"double","type":["number","null"]},"previous_response_id":{},"prompt":{"$ref":"#/components/schemas/StoredPromptTemplate","description":"Текстовое описание желаемого результата."},"prompt_cache_key":{"type":["string","null"]},"prompt_cache_options":{"$ref":"#/components/schemas/PromptCacheOptions"},"provider":{"$ref":"#/components/schemas/ProviderPreferences","description":"Настройки выбора и маршрутизации провайдера."},"reasoning":{"$ref":"#/components/schemas/ReasoningConfig","description":"Настройки рассуждения модели."},"route":{"$ref":"#/components/schemas/DeprecatedRoute","description":"Правило маршрутизации запроса."},"safety_identifier":{"description":"Стабильный идентификатор для контроля безопасности.","example":"user-123","type":["string","null"]},"service_tier":{"default":"auto","description":"Желаемый уровень обслуживания запроса.","enum":["auto","default","fast","flex","priority","scale",null],"type":["string","null"],"x-speakeasy-unknown-values":"allow"},"session_id":{"maxLength":256,"type":"string"},"stop_server_tools_when":{"$ref":"#/components/schemas/StopServerToolsWhen"},"store":{"const":false,"default":false,"description":"Разрешить провайдеру сохранить результат запроса.","type":"boolean"},"stream":{"default":false,"description":"Возвращать ответ постепенно в виде потока событий.","type":"boolean"},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","format":"double","type":["number","null"]},"text":{"$ref":"#/components/schemas/TextExtendedConfig"},"tool_choice":{"$ref":"#/components/schemas/OpenAIResponsesToolChoice","description":"Правило выбора инструмента моделью."},"tools":{"description":"Инструменты, которые модель может вызвать.","items":{"anyOf":[{"allOf":[{"$ref":"#/components/schemas/FunctionTool","description":"Инструменты, которые модель может вызвать."},{"description":"Инструменты, которые модель может вызвать.","properties":{"defer_loading":{"example":true,"type":"boolean"}},"type":"object"}],"description":"Инструменты, которые модель может вызвать.","example":{"name":"get_weather","parameters":{"description":"Инструменты, которые модель может вызвать.","properties":{"location":{"type":"string"},"unit":{"enum":["celsius","fahrenheit"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["location"],"type":"object"},"type":"function"}},{"$ref":"#/components/schemas/Preview_WebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/Preview_20250311_WebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/Legacy_WebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/WebSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/FileSearchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ComputerUseServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/CodeInterpreterServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/McpServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ImageGenerationServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/CodexLocalShellTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ShellServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ApplyPatchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/CustomTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/NamespaceTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/AdvisorServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/SubagentServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/DatetimeServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/FilesServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/FusionServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ImageGenerationServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/SearchModelsServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/WebFetchServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/WebSearchServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ApplyPatchServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/BashServerTool","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ShellServerTool_OpenRouter","description":"Инструменты, которые модель может вызвать."},{"$ref":"#/components/schemas/ToolSearchServerTool","description":"Инструменты, которые модель может вызвать."}],"description":"Инструменты, которые модель может вызвать."},"type":"array"},"top_k":{"description":"Количество наиболее вероятных токенов для выборки.","type":"integer"},"top_logprobs":{"description":"Количество наиболее вероятных токенов с их логарифмами вероятностей.","type":["integer","null"]},"top_p":{"description":"Порог вероятностной выборки токенов.","format":"double","type":["number","null"]},"trace":{"$ref":"#/components/schemas/TraceConfig"},"truncation":{"$ref":"#/components/schemas/OpenAIResponsesTruncation","description":"Правило сокращения слишком длинного входного контекста."},"user":{"description":"Идентификатор конечного пользователя.","maxLength":256,"type":"string"}},"type":"object"},"ResponsesStreamingResponse":{"example":{"data":{"content_index":0,"delta":"Hello","item_id":"item-1","logprobs":[],"output_index":0,"sequence_number":4,"type":"response.output_text.delta"}},"properties":{"data":{"$ref":"#/components/schemas/StreamEvents"}},"required":["data"],"type":"object"},"RouterAttempt":{"example":{"model":"openai/gpt-4o","provider":"OpenAI","status":200},"properties":{"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"provider":{"description":"Настройки выбора и маршрутизации провайдера.","type":"string"},"status":{"type":"integer"}},"required":["provider","model","status"],"type":"object"},"RouterParams":{"additionalProperties":{},"example":{"version_group":"anthropic/claude-sonnet-4"},"properties":{"quality_floor":{"format":"double","type":"number"},"throughput_floor":{"format":"double","type":"number"},"version_group":{"type":"string"}},"type":"object"},"RoutingStrategy":{"enum":["direct","auto","free","latest","alias","fallback","pareto","bodybuilder","fusion"],"example":"direct","type":"string","x-speakeasy-unknown-values":"allow"},"STTInputAudio":{"example":{"data":"UklGRiQA...","format":"wav"},"properties":{"data":{"type":"string"},"format":{"pattern":"^[a-zA-Z0-9][a-zA-Z0-9+._-]{0,15}$","type":"string"}},"required":["data","format"],"type":"object"},"STTRequest":{"example":{"input_audio":{"data":"UklGRiQA...","format":"wav"},"language":"en","model":"openai/whisper-large-v3"},"properties":{"input_audio":{"$ref":"#/components/schemas/STTInputAudio"},"language":{"description":"Код языка в формате ISO 639-1.","example":"en","type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"openai/whisper-large-v3","type":"string"},"provider":{"description":"Настройки выбора и маршрутизации провайдера.","properties":{"options":{"$ref":"#/components/schemas/ProviderOptions"}},"type":"object"},"response_format":{"description":"Требуемый формат результата.","enum":["json","verbose_json"],"example":"json","type":"string","x-speakeasy-unknown-values":"allow"},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","example":0,"format":"double","type":"number"},"timestamp_granularities":{"description":"Требуемая детализация временных меток.","example":["segment"],"items":{"$ref":"#/components/schemas/STTTimestampGranularity","description":"Требуемая детализация временных меток."},"type":"array"}},"required":["model","input_audio"],"type":"object"},"STTResponse":{"example":{"text":"Hello, this is a test of OpenAI speech-to-text transcription.","usage":{"cost":0.000508,"input_tokens":83,"output_tokens":30,"seconds":9.2,"total_tokens":113}},"properties":{"duration":{"description":"Продолжительность создаваемого видео.","example":9.2,"format":"double","type":"number"},"language":{"description":"Код языка в формате ISO 639-1.","example":"english","type":"string"},"segments":{"items":{"$ref":"#/components/schemas/STTSegment"},"type":"array"},"task":{"example":"transcribe","type":"string"},"text":{"example":"Hello, this is a test of OpenAI speech-to-text transcription. The weather is sunny today and the temperature is around 72 degrees.","type":"string"},"usage":{"$ref":"#/components/schemas/STTUsage","description":"Сведения об использованных токенах и стоимости."},"words":{"items":{"$ref":"#/components/schemas/STTWord"},"type":"array"}},"required":["text"],"type":"object"},"STTSegment":{"example":{"avg_logprob":-0.28,"compression_ratio":1.13,"end":3.2,"id":0,"no_speech_prob":0.01,"seek":0,"speaker":0,"start":0,"temperature":0,"text":"Hello there.","tokens":[50364,2425,456]},"properties":{"avg_logprob":{"format":"double","type":"number"},"compression_ratio":{"format":"double","type":"number"},"end":{"example":3.2,"format":"double","type":"number"},"id":{"example":0,"type":"integer"},"no_speech_prob":{"format":"double","type":"number"},"seek":{"example":0,"type":"integer"},"speaker":{"example":0,"type":"integer"},"start":{"example":0,"format":"double","type":"number"},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","format":"double","type":"number"},"text":{"example":"Hello there.","type":"string"},"tokens":{"items":{"type":"integer"},"type":"array"}},"required":["id","start","end","text"],"type":"object"},"STTTimestampGranularity":{"enum":["word","segment"],"example":"word","type":"string","x-speakeasy-unknown-values":"allow"},"STTUsage":{"example":{"cost":0.000508,"input_tokens":83,"output_tokens":30,"seconds":9.2,"total_tokens":113},"properties":{"cost":{"example":0.000508,"format":"double","type":"number"},"input_tokens":{"example":83,"type":"integer"},"output_tokens":{"example":30,"type":"integer"},"seconds":{"example":9.2,"format":"double","type":"number"},"total_tokens":{"example":113,"type":"integer"}},"type":"object"},"STTWord":{"example":{"end":0.4,"speaker":0,"start":0,"word":"Hello"},"properties":{"end":{"example":0.4,"format":"double","type":"number"},"speaker":{"example":0,"type":"integer"},"start":{"example":0,"format":"double","type":"number"},"word":{"example":"Hello","type":"string"}},"required":["word","start","end"],"type":"object"},"ScimGroup":{"example":{"created_at":"2025-08-24T10:30:00.000Z","display_name":"Engineering","external_id":"group-external-id","id":"550e8400-e29b-41d4-a716-446655440000","organization_id":"org_123456","updated_at":"2025-08-24T10:30:00.000Z"},"properties":{"created_at":{"type":"string"},"display_name":{"type":"string"},"external_id":{"type":["string","null"]},"id":{"format":"uuid","type":"string"},"organization_id":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","organization_id","external_id","display_name","created_at","updated_at"],"type":"object"},"ScimGroupMapping":{"example":{"created_at":"2025-08-24T10:30:00.000Z","id":"770e8400-e29b-41d4-a716-446655440000","organization_id":"org_123456","role":"member","scim_group_id":"550e8400-e29b-41d4-a716-446655440000","updated_at":"2025-08-24T10:30:00.000Z","workspace_id":"660e8400-e29b-41d4-a716-446655440000"},"properties":{"created_at":{"type":"string"},"id":{"format":"uuid","type":"string"},"organization_id":{"type":"string"},"role":{"description":"Роль участника диалога.","enum":["admin","member"],"type":"string","x-speakeasy-unknown-values":"allow"},"scim_group_id":{"format":"uuid","type":"string"},"updated_at":{"type":"string"},"workspace_id":{"format":"uuid","type":"string"}},"required":["id","organization_id","scim_group_id","workspace_id","role","created_at","updated_at"],"type":"object"},"ScimSyncJob":{"properties":{"created_at":{"type":"string"},"deleted_groups":{"type":["integer","null"]},"error_message":{"type":["string","null"]},"finished_at":{"type":["string","null"]},"id":{"format":"uuid","type":"string"},"started_at":{"type":["string","null"]},"status":{"enum":["queued","running","succeeded","failed"],"type":"string","x-speakeasy-unknown-values":"allow"},"synced_groups":{"type":["integer","null"]}},"required":["id","status","synced_groups","deleted_groups","error_message","created_at","started_at","finished_at"],"type":"object"},"SearchContextSizeEnum":{"enum":["low","medium","high"],"example":"medium","type":"string","x-speakeasy-unknown-values":"allow"},"SearchModelsServerToolConfig":{"example":{"max_results":5},"properties":{"max_results":{"example":5,"type":"integer"}},"type":"object"},"SearchModelsServerTool_OpenRouter":{"example":{"parameters":{"max_results":5},"type":"openrouter:experimental__search_models"},"properties":{"parameters":{"$ref":"#/components/schemas/SearchModelsServerToolConfig"},"type":{"enum":["openrouter:experimental__search_models"],"type":"string"}},"required":["type"],"type":"object"},"SearchQualityLevel":{"enum":["low","medium","high"],"example":"medium","type":"string","x-speakeasy-unknown-values":"allow"},"ServerToolUseDetails":{"example":{"tool_calls_executed":2,"tool_calls_requested":2,"web_search_requests":2},"properties":{"tool_calls_executed":{"type":["integer","null"]},"tool_calls_requested":{"type":["integer","null"]},"web_search_requests":{"type":["integer","null"]}},"type":["object","null"]},"ServiceTier":{"enum":["auto","default","flex","priority","scale",null],"example":"default","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"ServiceUnavailableResponse":{"example":{"error":{"code":503,"message":"Service temporarily unavailable"}},"properties":{"error":{"$ref":"#/components/schemas/ServiceUnavailableResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"ServiceUnavailableResponseErrorData":{"example":{"code":503,"message":"Service temporarily unavailable"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"SessionCostItem":{"properties":{"app_name":{"example":"Hermes Agent","type":"string"},"app_slug":{"example":"hermes-agent","type":"string"},"median_session_cost_usd":{"example":1.74,"format":"double","type":"number"},"model_permaslug":{"example":"anthropic/claude-4.8-opus","type":"string"},"turn_range":{"enum":["1-turn","2-9-turns","10-49-turns","50-plus-turns"],"example":"10-49-turns","type":"string","x-speakeasy-unknown-values":"allow"}},"required":["app_slug","app_name","turn_range","model_permaslug","median_session_cost_usd"],"type":"object"},"SessionCostMeta":{"properties":{"as_of":{"example":"2026-05-12T02:00:00.000Z","type":"string"},"version":{"enum":["v1"],"type":"string"},"window_days":{"example":30,"type":["integer","null"]},"window_end_date":{"example":"2026-05-11","type":["string","null"]}},"required":["as_of","version","window_days","window_end_date"],"type":"object"},"SessionCostResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SessionCostItem"},"type":"array"},"meta":{"$ref":"#/components/schemas/SessionCostMeta"}},"required":["data","meta"],"type":"object"},"ShellCallItem":{"example":{"action":{"commands":["ls","-la"],"max_output_length":10000},"call_id":"call-abc123","status":"completed","type":"shell_call"},"properties":{"action":{"properties":{"commands":{"items":{"type":"string"},"type":"array"},"max_output_length":{"type":["integer","null"]},"timeout_ms":{"type":["integer","null"]}},"required":["commands"],"type":"object"},"arguments":{"type":["string","null"]},"call_id":{"type":"string"},"environment":{},"id":{"type":["string","null"]},"status":{"anyOf":[{"$ref":"#/components/schemas/ToolCallStatus"},{"type":"null"}]},"type":{"enum":["shell_call"],"type":"string"}},"required":["type","call_id","action"],"type":"object"},"ShellCallOutputContent":{"additionalProperties":{},"example":{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"total 0\n"},"properties":{"outcome":{"oneOf":[{"additionalProperties":{},"properties":{"exit_code":{"type":"integer"},"type":{"enum":["exit"],"type":"string"}},"required":["type","exit_code"],"type":"object"},{"additionalProperties":{},"properties":{"type":{"enum":["timeout"],"type":"string"}},"required":["type"],"type":"object"}]},"stderr":{"type":"string"},"stdout":{"type":"string"}},"required":["stdout","stderr","outcome"],"type":"object"},"ShellCallOutputItem":{"example":{"call_id":"call-abc123","output":[{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"total 0\n"}],"status":"completed","type":"shell_call_output"},"properties":{"call_id":{"type":"string"},"container_id":{"type":"string"},"files":{"items":{"properties":{"container_id":{"type":"string"},"end_index":{"type":"integer"},"file_id":{"type":"string"},"filename":{"type":"string"},"start_index":{"type":"integer"},"type":{"enum":["container_file_citation"],"type":"string"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object"},"type":"array"},"id":{"type":["string","null"]},"max_output_length":{"type":["integer","null"]},"output":{"items":{"$ref":"#/components/schemas/ShellCallOutputContent"},"type":"array"},"status":{"anyOf":[{"$ref":"#/components/schemas/ToolCallStatus"},{"type":"null"}]},"type":{"enum":["shell_call_output"],"type":"string"}},"required":["type","call_id","output"],"type":"object"},"ShellCallStatus":{"enum":["in_progress","completed","incomplete"],"example":"completed","type":"string","x-speakeasy-unknown-values":"allow"},"ShellServerTool":{"example":{"type":"shell"},"properties":{"type":{"enum":["shell"],"type":"string"}},"required":["type"],"type":"object"},"ShellServerToolConfig":{"example":{"engine":"openrouter","environment":{"type":"container_auto"}},"properties":{"engine":{"$ref":"#/components/schemas/ShellServerToolEngine"},"environment":{"$ref":"#/components/schemas/ShellServerToolEnvironment"}},"type":"object"},"ShellServerToolEngine":{"enum":["auto","openrouter"],"example":"openrouter","type":"string","x-speakeasy-unknown-values":"allow"},"ShellServerToolEnvironment":{"discriminator":{"mapping":{"container_auto":"#/components/schemas/ContainerAutoEnvironment","container_reference":"#/components/schemas/ContainerReferenceEnvironment"},"propertyName":"type"},"example":{"type":"container_auto"},"oneOf":[{"$ref":"#/components/schemas/ContainerAutoEnvironment"},{"$ref":"#/components/schemas/ContainerReferenceEnvironment"}]},"ShellServerTool_OpenRouter":{"example":{"parameters":{"engine":"openrouter","environment":{"type":"container_auto"}},"type":"openrouter:shell"},"properties":{"parameters":{"$ref":"#/components/schemas/ShellServerToolConfig"},"type":{"enum":["openrouter:shell"],"type":"string"}},"required":["type"],"type":"object"},"SpeechInputReference":{"discriminator":{"mapping":{"input_audio":"#/components/schemas/SpeechInputReferenceAudio","text":"#/components/schemas/SpeechInputReferenceText"},"propertyName":"type"},"oneOf":[{"$ref":"#/components/schemas/SpeechInputReferenceAudio"},{"$ref":"#/components/schemas/SpeechInputReferenceText"}]},"SpeechInputReferenceAudio":{"example":{"input_audio":{"data":"data:audio/wav;base64,UklGRuQXDABXQVZF..."},"type":"input_audio"},"properties":{"input_audio":{"$ref":"#/components/schemas/SpeechInputReferenceAudioInput"},"type":{"enum":["input_audio"],"type":"string"}},"required":["type","input_audio"],"type":"object"},"SpeechInputReferenceAudioInput":{"properties":{"data":{"example":"data:audio/wav;base64,UklGRuQXDABXQVZF...","maxLength":20971520,"minLength":1,"type":"string"},"format":{"example":"wav","type":"string"}},"required":["data"],"type":"object"},"SpeechInputReferenceText":{"example":{"text":"I used to rule the world.","type":"text"},"properties":{"text":{"example":"I used to rule the world.","maxLength":10000,"type":"string"},"type":{"enum":["text"],"type":"string"}},"required":["type","text"],"type":"object"},"SpeechRequest":{"example":{"input":"Hello world","model":"mistralai/voxtral-mini-tts-2603","response_format":"pcm","speed":1,"voice":"en_paul_neutral"},"properties":{"input":{"description":"Входной текст или массив входных данных.","example":"Hello world","type":"string"},"input_references":{"description":"Исходные материалы, которые модель учитывает при генерации.","example":[{"description":"Исходные материалы, которые модель учитывает при генерации.","input_audio":{"data":"data:audio/wav;base64,UklGRuQXDABXQVZF...","description":"Исходные материалы, которые модель учитывает при генерации."},"type":"input_audio"},{"description":"Исходные материалы, которые модель учитывает при генерации.","text":"I used to rule the world.","type":"text"}],"items":{"$ref":"#/components/schemas/SpeechInputReference","description":"Исходные материалы, которые модель учитывает при генерации."},"type":"array"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"mistralai/voxtral-mini-tts-2603","type":"string"},"provider":{"description":"Настройки выбора и маршрутизации провайдера.","properties":{"options":{"$ref":"#/components/schemas/ProviderOptions"}},"type":"object"},"response_format":{"default":"pcm","description":"Требуемый формат результата.","enum":["mp3","pcm"],"example":"pcm","type":"string","x-speakeasy-unknown-values":"allow"},"speed":{"description":"Скорость воспроизведения речи.","example":1,"format":"double","type":"number"},"voice":{"description":"Идентификатор голоса для синтеза речи.","example":"en_paul_neutral","minLength":1,"type":"string"}},"required":["model","input"],"type":"object"},"StopServerToolsWhen":{"example":[{"step_count":5,"type":"step_count_is"},{"max_cost_in_dollars":0.5,"type":"max_cost"}],"items":{"$ref":"#/components/schemas/StopServerToolsWhenCondition"},"minItems":1,"type":"array"},"StopServerToolsWhenCondition":{"discriminator":{"mapping":{"finish_reason_is":"#/components/schemas/StopServerToolsWhenFinishReasonIs","has_tool_call":"#/components/schemas/StopServerToolsWhenHasToolCall","max_cost":"#/components/schemas/StopServerToolsWhenMaxCost","max_tokens_used":"#/components/schemas/StopServerToolsWhenMaxTokensUsed","step_count_is":"#/components/schemas/StopServerToolsWhenStepCountIs"},"propertyName":"type"},"example":{"step_count":5,"type":"step_count_is"},"oneOf":[{"$ref":"#/components/schemas/StopServerToolsWhenStepCountIs"},{"$ref":"#/components/schemas/StopServerToolsWhenHasToolCall"},{"$ref":"#/components/schemas/StopServerToolsWhenMaxTokensUsed"},{"$ref":"#/components/schemas/StopServerToolsWhenMaxCost"},{"$ref":"#/components/schemas/StopServerToolsWhenFinishReasonIs"}]},"StopServerToolsWhenFinishReasonIs":{"example":{"reason":"length","type":"finish_reason_is"},"properties":{"reason":{"minLength":1,"type":"string"},"type":{"enum":["finish_reason_is"],"type":"string"}},"required":["type","reason"],"type":"object"},"StopServerToolsWhenHasToolCall":{"example":{"tool_name":"finalize","type":"has_tool_call"},"properties":{"tool_name":{"minLength":1,"type":"string"},"type":{"enum":["has_tool_call"],"type":"string"}},"required":["type","tool_name"],"type":"object"},"StopServerToolsWhenMaxCost":{"example":{"max_cost_in_dollars":0.5,"type":"max_cost"},"properties":{"max_cost_in_dollars":{"format":"double","type":"number"},"type":{"enum":["max_cost"],"type":"string"}},"required":["type","max_cost_in_dollars"],"type":"object"},"StopServerToolsWhenMaxTokensUsed":{"example":{"max_tokens":10000,"type":"max_tokens_used"},"properties":{"max_tokens":{"description":"Максимальное количество токенов в ответе.","type":"integer"},"type":{"enum":["max_tokens_used"],"type":"string"}},"required":["type","max_tokens"],"type":"object"},"StopServerToolsWhenStepCountIs":{"example":{"step_count":5,"type":"step_count_is"},"properties":{"step_count":{"type":"integer"},"type":{"enum":["step_count_is"],"type":"string"}},"required":["type","step_count"],"type":"object"},"StoredPromptTemplate":{"example":{"id":"prompt-abc123","variables":{"name":"John"}},"properties":{"id":{"type":"string"},"variables":{"additionalProperties":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/InputText"},{"$ref":"#/components/schemas/InputImage"},{"$ref":"#/components/schemas/InputFile"}]},"type":["object","null"]}},"required":["id"],"type":["object","null"]},"StreamEvents":{"discriminator":{"mapping":{"error":"#/components/schemas/ErrorEvent","response.apply_patch_call_operation_diff.delta":"#/components/schemas/ApplyPatchCallOperationDiffDeltaEvent","response.apply_patch_call_operation_diff.done":"#/components/schemas/ApplyPatchCallOperationDiffDoneEvent","response.code_interpreter_call.completed":"#/components/schemas/CodeInterpreterCallCompletedEvent","response.code_interpreter_call.in_progress":"#/components/schemas/CodeInterpreterCallInProgressEvent","response.code_interpreter_call.interpreting":"#/components/schemas/CodeInterpreterCallInterpretingEvent","response.code_interpreter_call_code.delta":"#/components/schemas/CodeInterpreterCallCodeDeltaEvent","response.code_interpreter_call_code.done":"#/components/schemas/CodeInterpreterCallCodeDoneEvent","response.completed":"#/components/schemas/StreamEventsResponseCompleted","response.content_part.added":"#/components/schemas/ContentPartAddedEvent","response.content_part.done":"#/components/schemas/ContentPartDoneEvent","response.created":"#/components/schemas/OpenResponsesCreatedEvent","response.custom_tool_call_input.delta":"#/components/schemas/CustomToolCallInputDeltaEvent","response.custom_tool_call_input.done":"#/components/schemas/CustomToolCallInputDoneEvent","response.debug":"#/components/schemas/DebugEvent","response.failed":"#/components/schemas/StreamEventsResponseFailed","response.function_call_arguments.delta":"#/components/schemas/FunctionCallArgsDeltaEvent","response.function_call_arguments.done":"#/components/schemas/FunctionCallArgsDoneEvent","response.fusion_call.analysis.completed":"#/components/schemas/FusionCallAnalysisCompletedEvent","response.fusion_call.analysis.in_progress":"#/components/schemas/FusionCallAnalysisInProgressEvent","response.fusion_call.completed":"#/components/schemas/FusionCallCompletedEvent","response.fusion_call.in_progress":"#/components/schemas/FusionCallInProgressEvent","response.fusion_call.panel.added":"#/components/schemas/FusionCallPanelAddedEvent","response.fusion_call.panel.completed":"#/components/schemas/FusionCallPanelCompletedEvent","response.fusion_call.panel.delta":"#/components/schemas/FusionCallPanelDeltaEvent","response.fusion_call.panel.failed":"#/components/schemas/FusionCallPanelFailedEvent","response.fusion_call.panel.reasoning.delta":"#/components/schemas/FusionCallPanelReasoningDeltaEvent","response.image_generation_call.completed":"#/components/schemas/ImageGenCallCompletedEvent","response.image_generation_call.generating":"#/components/schemas/ImageGenCallGeneratingEvent","response.image_generation_call.in_progress":"#/components/schemas/ImageGenCallInProgressEvent","response.image_generation_call.partial_image":"#/components/schemas/ImageGenCallPartialImageEvent","response.in_progress":"#/components/schemas/OpenResponsesInProgressEvent","response.incomplete":"#/components/schemas/StreamEventsResponseIncomplete","response.output_item.added":"#/components/schemas/StreamEventsResponseOutputItemAdded","response.output_item.done":"#/components/schemas/StreamEventsResponseOutputItemDone","response.output_text.annotation.added":"#/components/schemas/AnnotationAddedEvent","response.output_text.delta":"#/components/schemas/TextDeltaEvent","response.output_text.done":"#/components/schemas/TextDoneEvent","response.reasoning_summary_part.added":"#/components/schemas/ReasoningSummaryPartAddedEvent","response.reasoning_summary_part.done":"#/components/schemas/ReasoningSummaryPartDoneEvent","response.reasoning_summary_text.delta":"#/components/schemas/ReasoningSummaryTextDeltaEvent","response.reasoning_summary_text.done":"#/components/schemas/ReasoningSummaryTextDoneEvent","response.reasoning_text.delta":"#/components/schemas/ReasoningDeltaEvent","response.reasoning_text.done":"#/components/schemas/ReasoningDoneEvent","response.refusal.delta":"#/components/schemas/RefusalDeltaEvent","response.refusal.done":"#/components/schemas/RefusalDoneEvent","response.web_search_call.completed":"#/components/schemas/WebSearchCallCompletedEvent","response.web_search_call.in_progress":"#/components/schemas/WebSearchCallInProgressEvent","response.web_search_call.searching":"#/components/schemas/WebSearchCallSearchingEvent"},"propertyName":"type"},"example":{"response":{"completed_at":null,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":null,"status":"in_progress","temperature":null,"tool_choice":"auto","tools":[],"top_p":null},"sequence_number":0,"type":"response.created"},"oneOf":[{"$ref":"#/components/schemas/OpenResponsesCreatedEvent"},{"$ref":"#/components/schemas/OpenResponsesInProgressEvent"},{"$ref":"#/components/schemas/StreamEventsResponseCompleted"},{"$ref":"#/components/schemas/StreamEventsResponseIncomplete"},{"$ref":"#/components/schemas/StreamEventsResponseFailed"},{"$ref":"#/components/schemas/ErrorEvent"},{"$ref":"#/components/schemas/StreamEventsResponseOutputItemAdded"},{"$ref":"#/components/schemas/StreamEventsResponseOutputItemDone"},{"$ref":"#/components/schemas/ContentPartAddedEvent"},{"$ref":"#/components/schemas/ContentPartDoneEvent"},{"$ref":"#/components/schemas/TextDeltaEvent"},{"$ref":"#/components/schemas/TextDoneEvent"},{"$ref":"#/components/schemas/RefusalDeltaEvent"},{"$ref":"#/components/schemas/RefusalDoneEvent"},{"$ref":"#/components/schemas/AnnotationAddedEvent"},{"$ref":"#/components/schemas/FunctionCallArgsDeltaEvent"},{"$ref":"#/components/schemas/FunctionCallArgsDoneEvent"},{"$ref":"#/components/schemas/ReasoningDeltaEvent"},{"$ref":"#/components/schemas/ReasoningDoneEvent"},{"$ref":"#/components/schemas/ReasoningSummaryPartAddedEvent"},{"$ref":"#/components/schemas/ReasoningSummaryPartDoneEvent"},{"$ref":"#/components/schemas/ReasoningSummaryTextDeltaEvent"},{"$ref":"#/components/schemas/ReasoningSummaryTextDoneEvent"},{"$ref":"#/components/schemas/ImageGenCallInProgressEvent"},{"$ref":"#/components/schemas/ImageGenCallGeneratingEvent"},{"$ref":"#/components/schemas/ImageGenCallPartialImageEvent"},{"$ref":"#/components/schemas/ImageGenCallCompletedEvent"},{"$ref":"#/components/schemas/CodeInterpreterCallInProgressEvent"},{"$ref":"#/components/schemas/CodeInterpreterCallInterpretingEvent"},{"$ref":"#/components/schemas/CodeInterpreterCallCompletedEvent"},{"$ref":"#/components/schemas/CodeInterpreterCallCodeDeltaEvent"},{"$ref":"#/components/schemas/CodeInterpreterCallCodeDoneEvent"},{"$ref":"#/components/schemas/WebSearchCallInProgressEvent"},{"$ref":"#/components/schemas/WebSearchCallSearchingEvent"},{"$ref":"#/components/schemas/WebSearchCallCompletedEvent"},{"$ref":"#/components/schemas/CustomToolCallInputDeltaEvent"},{"$ref":"#/components/schemas/CustomToolCallInputDoneEvent"},{"$ref":"#/components/schemas/ApplyPatchCallOperationDiffDeltaEvent"},{"$ref":"#/components/schemas/ApplyPatchCallOperationDiffDoneEvent"},{"$ref":"#/components/schemas/FusionCallInProgressEvent"},{"$ref":"#/components/schemas/FusionCallPanelAddedEvent"},{"$ref":"#/components/schemas/FusionCallPanelDeltaEvent"},{"$ref":"#/components/schemas/FusionCallPanelReasoningDeltaEvent"},{"$ref":"#/components/schemas/FusionCallPanelCompletedEvent"},{"$ref":"#/components/schemas/FusionCallPanelFailedEvent"},{"$ref":"#/components/schemas/FusionCallAnalysisInProgressEvent"},{"$ref":"#/components/schemas/FusionCallAnalysisCompletedEvent"},{"$ref":"#/components/schemas/FusionCallCompletedEvent"},{"$ref":"#/components/schemas/DebugEvent"}]},"StreamEventsResponseCompleted":{"allOf":[{"$ref":"#/components/schemas/CompletedEvent"},{"properties":{"response":{"$ref":"#/components/schemas/OpenResponsesResult"}},"type":"object"}],"example":{"response":{"completed_at":null,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":null,"status":"completed","temperature":null,"tool_choice":"auto","tools":[],"top_p":null},"sequence_number":10,"type":"response.completed"}},"StreamEventsResponseFailed":{"allOf":[{"$ref":"#/components/schemas/FailedEvent"},{"properties":{"response":{"$ref":"#/components/schemas/OpenResponsesResult"}},"type":"object"}],"example":{"response":{"completed_at":null,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":null,"status":"failed","temperature":null,"tool_choice":"auto","tools":[],"top_p":null},"sequence_number":3,"type":"response.failed"}},"StreamEventsResponseIncomplete":{"allOf":[{"$ref":"#/components/schemas/IncompleteEvent"},{"properties":{"response":{"$ref":"#/components/schemas/OpenResponsesResult"}},"type":"object"}],"example":{"response":{"completed_at":null,"created_at":1704067200,"error":null,"frequency_penalty":null,"id":"resp-abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"gpt-4","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":null,"status":"incomplete","temperature":null,"tool_choice":"auto","tools":[],"top_p":null},"sequence_number":5,"type":"response.incomplete"}},"StreamEventsResponseOutputItemAdded":{"allOf":[{"$ref":"#/components/schemas/OutputItemAddedEvent"},{"properties":{"item":{"$ref":"#/components/schemas/OutputItems"}},"type":"object"}],"example":{"item":{"content":[],"id":"item-1","role":"assistant","status":"in_progress","type":"message"},"output_index":0,"sequence_number":2,"type":"response.output_item.added"}},"StreamEventsResponseOutputItemDone":{"allOf":[{"$ref":"#/components/schemas/OutputItemDoneEvent"},{"properties":{"item":{"$ref":"#/components/schemas/OutputItems"}},"type":"object"}],"example":{"item":{"content":[{"annotations":[],"text":"Hello! How can I help you?","type":"output_text"}],"id":"item-1","role":"assistant","status":"completed","type":"message"},"output_index":0,"sequence_number":8,"type":"response.output_item.done"}},"StreamLogprob":{"allOf":[{"$ref":"#/components/schemas/OpenResponsesLogProbs"},{"properties":{"top_logprobs":{"description":"Количество наиболее вероятных токенов с их логарифмами вероятностей.","items":{"$ref":"#/components/schemas/StreamLogprobTopLogprob","description":"Количество наиболее вероятных токенов с их логарифмами вероятностей."},"type":"array"}},"type":"object"}],"example":{"bytes":[72,101,108,108,111],"logprob":-0.5,"token":"Hello","top_logprobs":[]}},"StreamLogprobTopLogprob":{"allOf":[{"$ref":"#/components/schemas/OpenResponsesTopLogprobs"},{"properties":{},"type":"object"}],"example":{"bytes":[72,101,108,108,111],"logprob":-0.5,"token":"Hello"}},"SubagentNestedTool":{"additionalProperties":{},"example":{"type":"openrouter:web_search"},"properties":{"parameters":{"additionalProperties":{},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"},"SubagentReasoning":{"example":{"effort":"low"},"properties":{"effort":{"enum":["max","xhigh","high","medium","low","minimal","none"],"type":"string","x-speakeasy-unknown-values":"allow"},"max_tokens":{"description":"Максимальное количество токенов в ответе.","type":"integer"}},"type":"object"},"SubagentServerToolConfig":{"example":{"model":"~anthropic/claude-haiku-latest","name":"summarizer"},"properties":{"inherit_functions":{"example":true,"type":"boolean"},"inherited_function_names":{"example":["lookup_order"],"items":{"minLength":1,"type":"string"},"type":"array"},"instructions":{"description":"Дополнительные инструкции для модели.","example":"You are a fast, focused worker. Complete the task exactly as described.","type":"string"},"max_completion_tokens":{"description":"Максимальное количество токенов завершения.","example":2048,"type":"integer"},"max_tool_calls":{"example":5,"maximum":25,"minimum":1,"type":"integer"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"~anthropic/claude-haiku-latest","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"summarizer","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9 _-]+$","type":"string"},"reasoning":{"$ref":"#/components/schemas/SubagentReasoning","description":"Настройки рассуждения модели."},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","example":0.7,"format":"double","type":"number"},"tools":{"description":"Инструменты, которые модель может вызвать.","items":{"$ref":"#/components/schemas/SubagentNestedTool","description":"Инструменты, которые модель может вызвать."},"type":"array"}},"type":"object"},"SubagentServerTool_OpenRouter":{"example":{"parameters":{"model":"~anthropic/claude-haiku-latest"},"type":"openrouter:subagent"},"properties":{"parameters":{"$ref":"#/components/schemas/SubagentServerToolConfig"},"type":{"enum":["openrouter:subagent"],"type":"string"}},"required":["type"],"type":"object"},"SubmitGenerationFeedbackRequest":{"example":{"category":"incorrect_response","comment":"The model repeated the same paragraph three times.","generation_id":"gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG"},"properties":{"category":{"enum":["latency","incoherence","incorrect_response","formatting","billing","api_error","other"],"example":"incorrect_response","type":"string","x-speakeasy-unknown-values":"allow"},"comment":{"example":"The model repeated the same paragraph three times.","maxLength":1000,"type":"string"},"generation_id":{"example":"gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG","minLength":1,"type":"string"}},"required":["generation_id","category"],"type":"object"},"SubmitGenerationFeedbackResponse":{"example":{"data":{"success":true}},"properties":{"data":{"properties":{"success":{"const":true,"example":true,"type":"boolean"}},"required":["success"],"type":"object"}},"required":["data"],"type":"object"},"SupportedParameters":{"additionalProperties":{"$ref":"#/components/schemas/CapabilityDescriptor"},"example":{"output_compression":{"max":100,"min":0,"type":"range"},"resolution":{"type":"enum","values":["1K","2K","4K"]},"seed":{"type":"boolean"}},"type":"object"},"TaskClassificationItem":{"example":{"category_token_share":0.48,"category_usage_share":0.51,"display_name":"Code Generation","macro_category":"code","models":[{"id":"openai/gpt-4.1-mini","tag_token_share":0.75,"tag_usage_share":0.55},{"id":"anthropic/claude-sonnet-4","tag_token_share":0.12,"tag_usage_share":0.2}],"tag":"code:general_impl","token_share":0.31,"usage_share":0.23},"properties":{"category_token_share":{"example":0.48,"format":"double","type":"number"},"category_usage_share":{"example":0.51,"format":"double","type":"number"},"display_name":{"example":"Code Generation","type":"string"},"macro_category":{"example":"code","type":"string"},"models":{"description":"Дополнительные модели для резервной маршрутизации.","items":{"$ref":"#/components/schemas/TaskClassificationModel","description":"Дополнительные модели для резервной маршрутизации."},"type":"array"},"tag":{"example":"code:general_impl","type":"string"},"token_share":{"example":0.31,"format":"double","type":"number"},"usage_share":{"example":0.23,"format":"double","type":"number"}},"required":["tag","display_name","macro_category","usage_share","token_share","category_usage_share","category_token_share","models"],"type":"object"},"TaskClassificationMacroCategory":{"example":{"key":"code","label":"Code","token_share":0.52,"usage_share":0.45},"properties":{"key":{"example":"code","type":"string"},"label":{"example":"Code","type":"string"},"token_share":{"example":0.52,"format":"double","type":"number"},"usage_share":{"example":0.45,"format":"double","type":"number"}},"required":["key","label","usage_share","token_share"],"type":"object"},"TaskClassificationModel":{"example":{"id":"openai/gpt-4.1-mini","tag_token_share":0.75,"tag_usage_share":0.55},"properties":{"id":{"example":"openai/gpt-4.1-mini","type":"string"},"tag_token_share":{"example":0.75,"format":"double","type":"number"},"tag_usage_share":{"example":0.55,"format":"double","type":"number"}},"required":["id","tag_usage_share","tag_token_share"],"type":"object"},"TaskClassificationResponse":{"example":{"data":{"as_of":"2026-06-17","classifications":[{"category_token_share":0.48,"category_usage_share":0.51,"display_name":"Code Generation","macro_category":"code","models":[{"id":"openai/gpt-4.1-mini","tag_token_share":0.75,"tag_usage_share":0.55}],"tag":"code:general_impl","token_share":0.31,"usage_share":0.23}],"macro_categories":[{"key":"code","label":"Code","token_share":0.52,"usage_share":0.45}],"window_days":7}},"properties":{"data":{"properties":{"as_of":{"example":"2026-06-17","type":"string"},"classifications":{"items":{"$ref":"#/components/schemas/TaskClassificationItem"},"type":"array"},"macro_categories":{"items":{"$ref":"#/components/schemas/TaskClassificationMacroCategory"},"type":"array"},"window_days":{"example":7,"type":"integer"}},"required":["window_days","as_of","classifications","macro_categories"],"type":"object"}},"required":["data"],"type":"object"},"TextConfig":{"example":{"format":{"type":"text"},"verbosity":"medium"},"properties":{"format":{"$ref":"#/components/schemas/Formats"},"verbosity":{"description":"Уровень подробности ответа.","enum":["high","low","medium",null],"type":["string","null"],"x-speakeasy-unknown-values":"allow"}},"type":"object"},"TextDeltaEvent":{"allOf":[{"$ref":"#/components/schemas/BaseTextDeltaEvent"},{"properties":{"logprobs":{"description":"Возвращать логарифмы вероятностей токенов.","items":{"$ref":"#/components/schemas/StreamLogprob","description":"Возвращать логарифмы вероятностей токенов."},"type":"array"}},"type":"object"}],"example":{"content_index":0,"delta":"Hello","item_id":"item-1","logprobs":[],"output_index":0,"sequence_number":4,"type":"response.output_text.delta"}},"TextDoneEvent":{"allOf":[{"$ref":"#/components/schemas/BaseTextDoneEvent"},{"properties":{"logprobs":{"description":"Возвращать логарифмы вероятностей токенов.","items":{"$ref":"#/components/schemas/StreamLogprob","description":"Возвращать логарифмы вероятностей токенов."},"type":"array"}},"type":"object"}],"example":{"content_index":0,"item_id":"item-1","logprobs":[],"output_index":0,"sequence_number":6,"text":"Hello! How can I help you?","type":"response.output_text.done"}},"TextExtendedConfig":{"allOf":[{"$ref":"#/components/schemas/TextConfig"},{"properties":{"verbosity":{"description":"Уровень подробности ответа.","enum":["low","medium","high","xhigh","max",null],"type":["string","null"],"x-speakeasy-unknown-values":"allow"}},"type":"object"}],"example":{"format":{"type":"text"}}},"TokenExchangeRequest":{"example":{"federation_policy_id":"4b2f7d1e-8c3a-4e5f-9a6b-1c2d3e4f5a6b","grant_type":"urn:ietf:params:oauth:grant-type:token-exchange","subject_token":"\u003cjwt from your identity provider\u003e","subject_token_type":"urn:ietf:params:oauth:token-type:jwt"},"properties":{"federation_policy_id":{"example":"4b2f7d1e-8c3a-4e5f-9a6b-1c2d3e4f5a6b","format":"uuid","type":"string"},"grant_type":{"enum":["urn:ietf:params:oauth:grant-type:token-exchange"],"example":"urn:ietf:params:oauth:grant-type:token-exchange","type":"string"},"requested_token_type":{"enum":["urn:ietf:params:oauth:token-type:access_token"],"example":"urn:ietf:params:oauth:token-type:access_token","type":"string"},"scope":{"enum":["inference"],"example":"inference","type":"string"},"subject_token":{"example":"\u003cjwt from your identity provider\u003e","maxLength":16384,"minLength":1,"type":"string"},"subject_token_type":{"enum":["urn:ietf:params:oauth:token-type:jwt"],"example":"urn:ietf:params:oauth:token-type:jwt","type":"string"}},"required":["grant_type","subject_token","federation_policy_id","subject_token_type"],"type":"object"},"TokenExchangeResponse":{"example":{"access_token":"\u003cshort-lived openrouter access token jwt\u003e","expires_in":900,"issued_token_type":"urn:ietf:params:oauth:token-type:access_token","scope":"inference","token_type":"Bearer"},"properties":{"access_token":{"example":"\u003cshort-lived openrouter access token jwt\u003e","type":"string"},"expires_in":{"example":900,"type":"integer"},"issued_token_type":{"enum":["urn:ietf:params:oauth:token-type:access_token"],"example":"urn:ietf:params:oauth:token-type:access_token","type":"string"},"scope":{"example":"inference","type":"string"},"token_type":{"enum":["Bearer"],"example":"Bearer","type":"string"}},"required":["access_token","issued_token_type","token_type","expires_in","scope"],"type":"object"},"TooManyRequestsResponse":{"example":{"error":{"code":429,"message":"Rate limit exceeded"}},"properties":{"error":{"$ref":"#/components/schemas/TooManyRequestsResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"TooManyRequestsResponseErrorData":{"example":{"code":429,"message":"Rate limit exceeded"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"ToolCallStatus":{"enum":["in_progress","completed","incomplete"],"example":"completed","type":"string","x-speakeasy-unknown-values":"allow"},"ToolChoiceAllowed":{"example":{"mode":"auto","tools":[{"name":"get_weather","type":"function"}],"type":"allowed_tools"},"properties":{"mode":{"anyOf":[{"enum":["auto"],"type":"string"},{"enum":["required"],"type":"string"}]},"tools":{"description":"Инструменты, которые модель может вызвать.","items":{"additionalProperties":{"description":"Инструменты, которые модель может вызвать."},"description":"Инструменты, которые модель может вызвать.","type":"object"},"type":"array"},"type":{"enum":["allowed_tools"],"type":"string"}},"required":["type","mode","tools"],"type":"object"},"ToolChoiceSupport":{"example":{"auto":true,"function":true,"none":true,"required":true},"properties":{"auto":{"type":"boolean"},"function":{"type":"boolean"},"none":{"type":"boolean"},"required":{"type":"boolean"}},"required":["none","auto","required","function"],"type":"object"},"ToolSearchServerTool":{"example":{"parameters":{"max_results":5},"type":"openrouter:tool_search"},"properties":{"parameters":{"$ref":"#/components/schemas/ToolSearchServerToolConfig"},"type":{"enum":["openrouter:tool_search"],"type":"string"}},"required":["type"],"type":"object"},"ToolSearchServerToolConfig":{"example":{"max_results":5},"properties":{"max_results":{"example":5,"type":"integer"}},"type":"object"},"TopProviderInfo":{"example":{"context_length":8192,"is_moderated":true,"max_completion_tokens":4096},"properties":{"context_length":{"example":8192,"nullable":true,"type":["integer","null"]},"is_moderated":{"example":true,"type":"boolean"},"max_completion_tokens":{"description":"Максимальное количество токенов завершения.","example":4096,"nullable":true,"type":["integer","null"]}},"required":["is_moderated"],"type":"object"},"TraceConfig":{"additionalProperties":{},"example":{"trace_id":"trace-abc123","trace_name":"my-app-trace"},"properties":{"generation_name":{"type":"string"},"parent_span_id":{"type":"string"},"span_name":{"type":"string"},"trace_id":{"type":"string"},"trace_name":{"type":"string"}},"type":"object"},"Truncation":{"enum":["auto","disabled",null],"example":"auto","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"URLCitation":{"example":{"content":"OpenRouter provides a unified API for accessing LLMs from multiple providers.","end_index":42,"start_index":0,"title":"OpenRouter Documentation","type":"url_citation","url":"https://openrouter.ai/docs"},"properties":{"content":{"description":"Содержимое сообщения или входные данные.","type":"string"},"end_index":{"type":"integer"},"start_index":{"type":"integer"},"title":{"type":"string"},"type":{"enum":["url_citation"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["type","url","title","start_index","end_index"],"type":"object"},"UnauthorizedResponse":{"example":{"error":{"code":401,"message":"Missing Authentication header"}},"properties":{"error":{"$ref":"#/components/schemas/UnauthorizedResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"UnauthorizedResponseErrorData":{"example":{"code":401,"message":"Missing Authentication header"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"UnifiedBenchmarkPricing":{"example":{"completion":"0.000015","prompt":"0.000003"},"properties":{"completion":{"example":"0.000015","type":"string"},"prompt":{"description":"Текстовое описание желаемого результата.","example":"0.000003","type":"string"}},"required":["prompt","completion"],"type":["object","null"]},"UnifiedBenchmarksAAItem":{"example":{"agentic_index":58.3,"coding_index":65.8,"display_name":"GPT-4o","intelligence_index":71.2,"model_permaslug":"openai/gpt-4o","pricing":{"completion":"0.00001","prompt":"0.0000025"},"source":"artificial-analysis"},"properties":{"agentic_index":{"example":58.3,"format":"double","type":["number","null"]},"coding_index":{"example":65.8,"format":"double","type":["number","null"]},"display_name":{"example":"GPT-4o","type":"string"},"intelligence_index":{"example":71.2,"format":"double","type":["number","null"]},"model_permaslug":{"example":"openai/gpt-4o","type":"string"},"pricing":{"$ref":"#/components/schemas/UnifiedBenchmarkPricing"},"source":{"enum":["artificial-analysis"],"type":"string"}},"required":["source","model_permaslug","display_name","intelligence_index","coding_index","agentic_index","pricing"],"type":"object"},"UnifiedBenchmarksDAItem":{"example":{"arena":"models","avg_generation_time_ms":3200,"category":"codecategories","display_name":"Claude Sonnet 4","elo":1423,"model_permaslug":"anthropic/claude-sonnet-4","pricing":{"completion":"0.000015","prompt":"0.000003"},"source":"design-arena","tournament_stats":{"first_place":12,"fourth_place":2,"second_place":8,"third_place":5,"total":27},"win_rate":72},"properties":{"arena":{"example":"models","type":"string"},"avg_generation_time_ms":{"example":3200,"format":"double","type":["number","null"]},"category":{"example":"codecategories","type":"string"},"display_name":{"example":"Claude Sonnet 4","type":"string"},"elo":{"example":1423,"format":"double","type":"number"},"model_permaslug":{"example":"anthropic/claude-sonnet-4","type":"string"},"pricing":{"$ref":"#/components/schemas/UnifiedBenchmarkPricing"},"source":{"enum":["design-arena"],"type":"string"},"tournament_stats":{"properties":{"first_place":{"type":["integer","null"]},"fourth_place":{"type":["integer","null"]},"second_place":{"type":["integer","null"]},"third_place":{"type":["integer","null"]},"total":{"type":["integer","null"]}},"required":["first_place","second_place","third_place","fourth_place","total"],"type":"object"},"win_rate":{"example":72,"format":"double","type":"number"}},"required":["source","model_permaslug","display_name","arena","category","elo","win_rate","avg_generation_time_ms","tournament_stats","pricing"],"type":"object"},"UnifiedBenchmarksMeta":{"example":{"as_of":"2026-06-03T12:00:00Z","citation":"Source: Artificial Analysis (artificialanalysis.ai) via OpenRouter (openrouter.ai/rankings).","model_count":50,"source":"artificial-analysis","source_url":"https://artificialanalysis.ai","task_type":null,"version":"v1"},"properties":{"as_of":{"example":"2026-06-03T12:00:00Z","type":"string"},"citation":{"example":"Source: Artificial Analysis (artificialanalysis.ai) via OpenRouter (openrouter.ai/rankings).","type":["string","null"]},"model_count":{"type":"integer"},"source":{"enum":["artificial-analysis","design-arena","openrouter",null],"example":"artificial-analysis","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"source_url":{"example":"https://artificialanalysis.ai","type":["string","null"]},"task_type":{"type":["string","null"]},"version":{"enum":["v1"],"type":"string"}},"required":["as_of","version","source","source_url","citation","model_count","task_type"],"type":"object"},"UnifiedBenchmarksORItem":{"example":{"accuracy":0.72,"accuracy_stddev":0.03,"avg_cost_per_task":0.002,"benchmark_type":"gpqa_diamond","display_name":"GPT-4o","last_run_timestamp":"2026-06-03T12:00:00Z","model_permaslug":"openai/gpt-4o","source":"openrouter","total_tasks":300},"properties":{"accuracy":{"example":0.72,"format":"double","type":"number"},"accuracy_stddev":{"example":0.03,"format":"double","type":["number","null"]},"avg_cost_per_task":{"example":0.002,"format":"double","type":["number","null"]},"benchmark_type":{"enum":["gpqa_diamond","tau_bench_verified_airline"],"example":"gpqa_diamond","type":"string","x-speakeasy-unknown-values":"allow"},"display_name":{"example":"GPT-4o","type":"string"},"last_run_timestamp":{"example":"2026-06-03T12:00:00Z","type":"string"},"model_permaslug":{"example":"openai/gpt-4o","type":"string"},"source":{"enum":["openrouter"],"type":"string"},"total_tasks":{"example":300,"type":"integer"}},"required":["source","model_permaslug","display_name","benchmark_type","accuracy","accuracy_stddev","avg_cost_per_task","total_tasks","last_run_timestamp"],"type":"object"},"UnifiedBenchmarksResponse":{"example":{"data":[{"agentic_index":58.3,"coding_index":65.8,"display_name":"GPT-4o","intelligence_index":71.2,"model_permaslug":"openai/gpt-4o","pricing":{"completion":"0.00001","prompt":"0.0000025"},"source":"artificial-analysis"},{"accuracy":0.72,"accuracy_stddev":0.03,"avg_cost_per_task":0.002,"benchmark_type":"gpqa_diamond","display_name":"GPT-4o","last_run_timestamp":"2026-06-03T12:00:00Z","model_permaslug":"openai/gpt-4o","source":"openrouter","total_tasks":300}],"meta":{"as_of":"2026-06-03T12:00:00Z","citation":null,"model_count":1,"source":null,"source_url":null,"task_type":null,"version":"v1"}},"properties":{"data":{"items":{"oneOf":[{"$ref":"#/components/schemas/UnifiedBenchmarksAAItem"},{"$ref":"#/components/schemas/UnifiedBenchmarksDAItem"},{"$ref":"#/components/schemas/UnifiedBenchmarksORItem"},{"$ref":"#/components/schemas/UnifiedBenchmarksSearchItem"}]},"type":"array"},"meta":{"$ref":"#/components/schemas/UnifiedBenchmarksMeta"}},"required":["data","meta"],"type":"object"},"UnifiedBenchmarksSearchItem":{"properties":{"avg_cost_per_task":{"example":0.031,"format":"double","type":["number","null"]},"avg_latency_per_task_ms":{"example":45210,"format":"double","type":["number","null"]},"benchmark_type":{"enum":["search_browsecomp","search_hle","search_dsqa","search_widesearch"],"example":"search_browsecomp","type":"string","x-speakeasy-unknown-values":"allow"},"display_name":{"example":"GPT-4o","type":"string"},"last_run_timestamp":{"example":"2026-07-28T13:38:18Z","type":"string"},"model_permaslug":{"example":"openai/gpt-4o","type":"string"},"primary_metric":{"enum":["accuracy","f1_by_item"],"example":"accuracy","type":"string","x-speakeasy-unknown-values":"allow"},"primary_score":{"example":0.72,"format":"double","type":"number"},"run_config":{"$ref":"#/components/schemas/UnifiedBenchmarksSearchRunConfig"},"search_engine":{"example":"exa","type":"string"},"search_surface":{"enum":["server-tool","plugin"],"example":"server-tool","type":"string","x-speakeasy-unknown-values":"allow"},"source":{"enum":["openrouter"],"type":"string"},"total_tasks":{"example":100,"type":"integer"}},"required":["source","model_permaslug","display_name","benchmark_type","primary_metric","primary_score","total_tasks","avg_cost_per_task","avg_latency_per_task_ms","search_engine","search_surface","last_run_timestamp"],"type":"object"},"UnifiedBenchmarksSearchRunConfig":{"properties":{"max_agent_turns":{"example":25,"type":["integer","null"]},"reasoning_effort":{"description":"Желаемая глубина рассуждения модели.","example":"high","type":["string","null"]},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","example":0.2,"format":"double","type":["number","null"]}},"required":["max_agent_turns","reasoning_effort","temperature"],"type":"object"},"UnprocessableEntityResponse":{"example":{"error":{"code":422,"message":"Invalid argument"}},"properties":{"error":{"$ref":"#/components/schemas/UnprocessableEntityResponseErrorData"},"openrouter_metadata":{"additionalProperties":{},"type":["object","null"]},"user_id":{"type":["string","null"]}},"required":["error"],"type":"object"},"UnprocessableEntityResponseErrorData":{"example":{"code":422,"message":"Invalid argument"},"properties":{"code":{"type":"integer"},"message":{"type":"string"},"metadata":{"additionalProperties":{"description":"Дополнительные метаданные запроса."},"description":"Дополнительные метаданные запроса.","type":["object","null"]}},"required":["code","message"],"type":"object"},"UpdateBYOKKeyRequest":{"example":{"disabled":false,"name":"Updated OpenAI Key"},"properties":{"allowed_api_key_hashes":{"example":["f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943"],"items":{"pattern":"^[a-f0-9]{64}$","type":"string"},"maxItems":100,"minItems":1,"type":["array","null"]},"allowed_models":{"example":null,"items":{"type":"string"},"maxItems":100,"type":["array","null"]},"allowed_user_ids":{"example":null,"items":{"type":"string"},"maxItems":100,"type":["array","null"]},"disabled":{"example":false,"type":"boolean"},"is_byok_only":{"example":false,"type":"boolean"},"is_fallback":{"example":false,"type":"boolean"},"is_required":{"example":false,"type":"boolean"},"key":{"example":"sk-proj-newkey456...","minLength":1,"type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Updated OpenAI Key","maxLength":255,"type":["string","null"]}},"type":"object"},"UpdateBYOKKeyResponse":{"example":{"data":{"allowed_api_key_hashes":null,"allowed_models":null,"allowed_user_ids":null,"created_at":"2025-08-24T10:30:00Z","disabled":false,"id":"11111111-2222-3333-4444-555555555555","is_byok_only":false,"is_fallback":false,"is_required":false,"label":"sk-...AbCd","name":"Updated OpenAI Key","provider":"openai","sort_order":0,"workspace_id":"550e8400-e29b-41d4-a716-446655440000"}},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/BYOKKey"},{}]}},"required":["data"],"type":"object"},"UpdateGuardrailRequest":{"example":{"limit_usd":75,"name":"Updated Guardrail Name","reset_interval":"weekly"},"properties":{"allowed_data_regions":{"example":["europe"],"items":{"$ref":"#/components/schemas/GuardrailDataRegion"},"minItems":1,"type":["array","null"]},"allowed_models":{"example":["openai/gpt-5.2"],"items":{"type":"string"},"minItems":1,"type":["array","null"]},"allowed_providers":{"example":["openai","anthropic","deepseek"],"items":{"type":"string"},"minItems":1,"type":["array","null"]},"content_filter_builtins":{"example":[{"action":"block","slug":"regex-prompt-injection"}],"items":{"$ref":"#/components/schemas/ContentFilterBuiltinEntryInput"},"type":["array","null"]},"content_filters":{"example":null,"items":{"$ref":"#/components/schemas/ContentFilterEntry"},"type":["array","null"]},"description":{"example":"Updated description","maxLength":1000,"type":["string","null"]},"enable_free_model_publication":{"example":false,"type":["boolean","null"]},"enable_free_model_training":{"example":true,"type":["boolean","null"]},"enable_paid_model_training":{"example":true,"type":["boolean","null"]},"enforce_zdr":{"deprecated":true,"example":true,"type":["boolean","null"]},"enforce_zdr_anthropic":{"example":true,"type":["boolean","null"]},"enforce_zdr_google":{"example":true,"type":["boolean","null"]},"enforce_zdr_openai":{"example":true,"type":["boolean","null"]},"enforce_zdr_other":{"example":true,"type":["boolean","null"]},"enforce_zdr_xai":{"example":true,"type":["boolean","null"]},"ignored_models":{"example":["openai/gpt-4o-mini"],"items":{"type":"string"},"minItems":1,"type":["array","null"]},"ignored_providers":{"example":["azure"],"items":{"type":"string"},"minItems":1,"type":["array","null"]},"include_byok_in_budgets":{"example":true,"type":"boolean"},"limit_usd":{"example":75,"format":"double","type":["number","null"]},"name":{"description":"Необязательное имя участника или инструмента.","example":"Updated Guardrail Name","maxLength":200,"minLength":1,"type":"string"},"reset_interval":{"$ref":"#/components/schemas/GuardrailInterval"}},"type":"object"},"UpdateGuardrailResponse":{"example":{"data":{"allowed_models":null,"allowed_providers":["openai"],"content_filter_builtins":[{"action":"redact","label":"[EMAIL]","slug":"email"}],"content_filters":null,"created_at":"2025-08-24T10:30:00Z","enable_free_model_publication":false,"enable_free_model_training":true,"enable_paid_model_training":true,"enforce_zdr":null,"enforce_zdr_anthropic":true,"enforce_zdr_google":true,"enforce_zdr_openai":true,"enforce_zdr_other":true,"enforce_zdr_xai":true,"id":"550e8400-e29b-41d4-a716-446655440000","ignored_models":null,"ignored_providers":null,"include_byok_in_budgets":true,"limit_usd":75,"name":"Updated Guardrail Name","reset_interval":"weekly","updated_at":"2025-08-24T16:00:00Z","workspace_id":"0df9e665-d932-5740-b2c7-b52af166bc11"}},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/Guardrail"},{}]}},"required":["data"],"type":"object"},"UpdateObservabilityDestinationRequest":{"example":{"enabled":false,"name":"Updated Langfuse"},"properties":{"api_key_hashes":{"example":null,"items":{"type":"string"},"minItems":1,"type":["array","null"]},"broadcast_generation_cost":{"example":false,"type":"boolean"},"broadcast_generation_identity":{"example":false,"type":"boolean"},"broadcast_generation_request_context":{"example":false,"type":"boolean"},"config":{"additionalProperties":{},"example":{"baseUrl":"https://us.cloud.langfuse.com","publicKey":"pk-l...EfGh","secretKey":"sk-l...AbCd"},"type":"object"},"enabled":{"example":true,"type":"boolean"},"filter_rules":{"allOf":[{"$ref":"#/components/schemas/ObservabilityFilterRulesConfigNullable"},{}]},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production Langfuse","type":"string"},"privacy_mode":{"example":false,"type":"boolean"},"regions":{"example":["global"],"items":{"$ref":"#/components/schemas/ObservabilityDataRegionInput"},"minItems":1,"type":"array"},"sampling_rate":{"example":1,"format":"double","type":"number"}},"type":"object"},"UpdateObservabilityDestinationResponse":{"example":{"data":{"api_key_hashes":null,"broadcast_generation_cost":false,"broadcast_generation_identity":false,"broadcast_generation_request_context":false,"config":{"baseUrl":"https://us.cloud.langfuse.com","publicKey":"pk-l...EfGh","secretKey":"sk-l...AbCd"},"created_at":"2025-08-24T10:30:00Z","enabled":true,"filter_rules":null,"id":"99999999-aaaa-bbbb-cccc-dddddddddddd","name":"Production Langfuse","privacy_mode":false,"regions":["global"],"sampling_rate":1,"type":"langfuse","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"}},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/ObservabilityDestination"},{}]}},"required":["data"],"type":"object"},"UpdateScimGroupMappingRequest":{"properties":{"role":{"description":"Роль участника диалога.","enum":["admin","member"],"type":"string","x-speakeasy-unknown-values":"allow"}},"required":["role"],"type":"object"},"UpdateScimGroupMappingResponse":{"properties":{"data":{"$ref":"#/components/schemas/ScimGroupMapping"}},"required":["data"],"type":"object"},"UpdateWorkspaceRequest":{"example":{"name":"Updated Workspace","slug":"updated-workspace"},"properties":{"default_image_model":{"example":"openai/dall-e-3","type":["string","null"]},"default_provider_sort":{"example":"price","type":["string","null"]},"default_text_model":{"example":"openai/gpt-4o","type":["string","null"]},"description":{"example":"Updated description","maxLength":500,"type":["string","null"]},"io_logging_api_key_ids":{"example":null,"items":{"type":"integer"},"type":["array","null"]},"io_logging_sampling_rate":{"example":1,"format":"double","type":"number"},"is_data_discount_logging_enabled":{"example":true,"type":"boolean"},"is_observability_broadcast_enabled":{"example":false,"type":"boolean"},"is_observability_io_logging_enabled":{"example":false,"type":"boolean"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Updated Workspace","maxLength":100,"minLength":1,"type":"string"},"slug":{"description":"Короткий идентификатор модели.","example":"updated-workspace","maxLength":50,"minLength":1,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"}},"type":"object"},"UpdateWorkspaceResponse":{"example":{"data":{"created_at":"2025-08-24T10:30:00Z","created_by":"user_abc123","default_guardrail_id":"595d5849-7e86-51fd-a7c0-705c34e4afff","default_image_model":"openai/dall-e-3","default_provider_sort":"price","default_text_model":"openai/gpt-4o","id":"550e8400-e29b-41d4-a716-446655440000","include_byok_in_budgets":false,"io_logging_api_key_ids":null,"io_logging_sampling_rate":1,"is_data_discount_logging_enabled":true,"is_observability_broadcast_enabled":false,"is_observability_io_logging_enabled":false,"name":"Updated Workspace","slug":"updated-workspace","updated_at":"2025-08-25T10:00:00Z"}},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/Workspace"},{}]}},"required":["data"],"type":"object"},"UpsertWorkspaceBudgetRequest":{"example":{"include_byok_in_budgets":true,"limit_usd":100},"properties":{"include_byok_in_budgets":{"example":true,"type":"boolean"},"limit_usd":{"example":100,"format":"double","type":"number"}},"required":["limit_usd"],"type":"object"},"UpsertWorkspaceBudgetResponse":{"example":{"data":{"created_at":"2025-08-24T10:30:00Z","id":"770e8400-e29b-41d4-a716-446655440000","limit_usd":100,"reset_interval":"monthly","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"include_byok_in_budgets":true},"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/WorkspaceBudget"},{}]},"include_byok_in_budgets":{"example":true,"type":"boolean"}},"required":["data"],"type":"object"},"Usage":{"anyOf":[{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesUsage"},{"properties":{"cost":{"format":"double","type":["number","null"]},"cost_details":{"properties":{"server_tool_cost":{"format":"double","type":["number","null"]},"upstream_inference_cost":{"format":"double","type":["number","null"]},"upstream_inference_input_cost":{"format":"double","type":"number"},"upstream_inference_output_cost":{"format":"double","type":"number"}},"required":["upstream_inference_input_cost","upstream_inference_output_cost"],"type":"object"},"is_byok":{"type":"boolean"},"server_tool_use_details":{"$ref":"#/components/schemas/ServerToolUseDetails"}},"type":"object"}]},{"type":"null"}],"example":{"cost":0.0012,"cost_details":{"upstream_inference_cost":null,"upstream_inference_input_cost":0.0008,"upstream_inference_output_cost":0.0004},"input_tokens":10,"input_tokens_details":{"cached_tokens":0},"output_tokens":25,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":35}},"VideoGenerationRequest":{"example":{"aspect_ratio":"16:9","duration":8,"model":"google/veo-3.1","prompt":"A serene mountain landscape at sunset","resolution":"720p"},"properties":{"aspect_ratio":{"description":"Соотношение сторон результата.","enum":["16:9","9:16","1:1","4:3","3:4","3:2","2:3","21:9","9:21"],"example":"16:9","type":"string","x-speakeasy-unknown-values":"allow"},"callback_url":{"example":"https://example.com/webhook","format":"uri","type":"string"},"creativity":{"example":1,"type":"integer"},"duration":{"description":"Продолжительность создаваемого видео.","example":8,"minimum":1,"type":"integer"},"frame_images":{"items":{"$ref":"#/components/schemas/FrameImage"},"type":"array"},"generate_audio":{"example":true,"type":"boolean"},"input_references":{"description":"Исходные материалы, которые модель учитывает при генерации.","items":{"$ref":"#/components/schemas/InputReference","description":"Исходные материалы, которые модель учитывает при генерации."},"type":"array"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"prompt":{"description":"Текстовое описание желаемого результата.","example":"A serene mountain landscape at sunset","type":"string"},"provider":{"description":"Настройки выбора и маршрутизации провайдера.","properties":{"options":{"allOf":[{"$ref":"#/components/schemas/ProviderOptions"},{"example":{"google-vertex":{"output_config":{"effort":"low"}}}}]}},"type":"object"},"resolution":{"description":"Разрешение результата.","enum":["480p","720p","768p","1080p","1K","2K","4K"],"example":"720p","type":"string","x-speakeasy-unknown-values":"allow"},"seed":{"description":"Начальное значение для воспроизводимой генерации.","type":"integer"},"size":{"description":"Размер создаваемого изображения.","example":"1280x720","type":"string"},"upscale_factor":{"example":2,"exclusiveMinimum":true,"minimum":0,"type":"number"}},"required":["model"],"type":"object"},"VideoGenerationResponse":{"example":{"generation_id":"gen-xyz789","id":"job-abc123","polling_url":"/api/v1/videos/job-abc123","status":"pending"},"properties":{"error":{"type":"string"},"generation_id":{"type":"string"},"id":{"type":"string"},"polling_url":{"type":"string"},"status":{"enum":["pending","in_progress","completed","failed","cancelled","expired"],"type":"string","x-speakeasy-unknown-values":"allow"},"unsigned_urls":{"items":{"type":"string"},"type":"array"},"usage":{"$ref":"#/components/schemas/VideoGenerationUsage","description":"Сведения об использованных токенах и стоимости."}},"required":["id","polling_url","status"],"type":"object"},"VideoGenerationUsage":{"example":{"cost":0.5,"is_byok":false},"properties":{"cost":{"format":"double","type":["number","null"]},"is_byok":{"type":"boolean"}},"type":"object"},"VideoModel":{"example":{"allowed_passthrough_parameters":[],"canonical_slug":"google/veo-3.1","created":1700000000,"generate_audio":true,"id":"google/veo-3.1","name":"Veo 3.1","pricing_skus":{"generate":"0.50"},"seed":null,"supported_aspect_ratios":["16:9"],"supported_durations":[5,8],"supported_frame_images":["first_frame","last_frame"],"supported_resolutions":["720p"],"supported_sizes":null},"properties":{"allowed_passthrough_parameters":{"items":{"type":"string"},"type":"array"},"canonical_slug":{"example":"openai/gpt-4","type":"string"},"created":{"example":1692901234,"type":"integer"},"creativity":{"items":{"type":"integer"},"type":["array","null"]},"description":{"example":"GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.","type":"string"},"generate_audio":{"type":["boolean","null"]},"hugging_face_id":{"example":"microsoft/DialoGPT-medium","type":["string","null"]},"id":{"example":"openai/gpt-4","type":"string"},"name":{"description":"Необязательное имя участника или инструмента.","example":"GPT-4","type":"string"},"pricing_skus":{"additionalProperties":{"type":"string"},"type":["object","null"]},"seed":{"description":"Начальное значение для воспроизводимой генерации.","type":["boolean","null"]},"supported_aspect_ratios":{"items":{"enum":["16:9","9:16","1:1","4:3","3:4","3:2","2:3","21:9","9:21"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":["array","null"]},"supported_durations":{"items":{"type":"integer"},"type":["array","null"]},"supported_frame_images":{"items":{"enum":["first_frame","last_frame"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":["array","null"]},"supported_resolutions":{"items":{"enum":["480p","720p","768p","1080p","1K","2K","4K"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":["array","null"]},"supported_sizes":{"items":{"enum":["480x480","480x640","480x720","480x854","480x1120","560x752","640x480","640x640","720x480","720x720","720x960","720x1080","720x1280","720x1680","752x560","768x768","768x1024","768x1152","768x1366","768x1792","834x1112","854x480","960x720","960x960","992x432","1024x768","1080x720","1080x1080","1080x1440","1080x1620","1080x1920","1080x2520","1112x834","1120x480","1152x768","1280x720","1366x768","1440x1080","1440x1440","1440x1920","1440x2160","1440x2560","1440x3360","1470x630","1620x1080","1680x720","1792x768","1920x1080","1920x1440","2160x1440","2160x2160","2160x2880","2160x3240","2160x3840","2160x5040","2520x1080","2560x1440","2880x2160","3240x2160","3360x1440","3840x2160","5040x2160"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":["array","null"]},"upscale_factor":{"properties":{"max":{"format":"double","type":["number","null"]},"min":{"format":"double","type":["number","null"]}},"type":["object","null"]}},"required":["id","canonical_slug","name","created","supported_resolutions","supported_aspect_ratios","supported_sizes","supported_durations","supported_frame_images","upscale_factor","creativity","generate_audio","seed","allowed_passthrough_parameters"],"type":"object"},"VideoModelsListResponse":{"example":{"data":[{"allowed_passthrough_parameters":[],"canonical_slug":"google/veo-3.1","created":1700000000,"generate_audio":true,"id":"google/veo-3.1","name":"Veo 3.1","pricing_skus":{"generate":"0.50"},"seed":null,"supported_aspect_ratios":["16:9"],"supported_durations":[5,8],"supported_frame_images":["first_frame","last_frame"],"supported_resolutions":["720p"],"supported_sizes":null}]},"properties":{"data":{"items":{"$ref":"#/components/schemas/VideoModel"},"type":"array"}},"required":["data"],"type":"object"},"WebFetchEngineEnum":{"enum":["auto","native","openrouter","exa","parallel","firecrawl"],"example":"auto","type":"string","x-speakeasy-unknown-values":"allow"},"WebFetchPlugin":{"example":{"id":"web-fetch","max_uses":10},"properties":{"allowed_domains":{"items":{"type":"string"},"type":"array"},"blocked_domains":{"items":{"type":"string"},"type":"array"},"id":{"enum":["web-fetch"],"type":"string"},"max_content_tokens":{"type":"integer"},"max_uses":{"type":"integer"}},"required":["id"],"type":"object"},"WebFetchServerTool":{"example":{"parameters":{"max_uses":10},"type":"openrouter:web_fetch"},"properties":{"parameters":{"$ref":"#/components/schemas/WebFetchServerToolConfig"},"type":{"enum":["openrouter:web_fetch"],"type":"string"}},"required":["type"],"type":"object"},"WebFetchServerToolConfig":{"example":{"max_content_tokens":100000,"max_uses":10},"properties":{"allowed_domains":{"items":{"type":"string"},"type":"array"},"blocked_domains":{"items":{"type":"string"},"type":"array"},"engine":{"$ref":"#/components/schemas/WebFetchEngineEnum"},"max_content_tokens":{"example":100000,"type":"integer"},"max_uses":{"example":10,"type":"integer"}},"type":"object"},"WebSearchCallCompletedEvent":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesSearchCompleted"},{"properties":{},"type":"object"}],"example":{"item_id":"ws-123","output_index":0,"sequence_number":3,"type":"response.web_search_call.completed"}},"WebSearchCallInProgressEvent":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesWebSearchCallInProgress"},{"properties":{},"type":"object"}],"example":{"item_id":"ws-123","output_index":0,"sequence_number":1,"type":"response.web_search_call.in_progress"}},"WebSearchCallSearchingEvent":{"allOf":[{"$ref":"#/components/schemas/OpenAIResponsesWebSearchCallSearching"},{"properties":{},"type":"object"}],"example":{"item_id":"ws-123","output_index":0,"sequence_number":2,"type":"response.web_search_call.searching"}},"WebSearchConfig":{"example":{"max_results":5,"search_context_size":"medium"},"properties":{"allowed_domains":{"items":{"type":"string"},"type":"array"},"engine":{"$ref":"#/components/schemas/WebSearchEngineEnum"},"excluded_domains":{"items":{"type":"string"},"type":"array"},"max_characters":{"example":2000,"type":"integer"},"max_results":{"example":5,"type":"integer"},"max_total_results":{"example":50,"type":"integer"},"max_uses":{"example":3,"type":"integer"},"mode":{"$ref":"#/components/schemas/WebSearchMode"},"search_context_size":{"$ref":"#/components/schemas/SearchQualityLevel"},"user_location":{"$ref":"#/components/schemas/WebSearchUserLocationServerTool"}},"type":"object"},"WebSearchDomainFilter":{"example":{"allowed_domains":["example.com"],"blocked_domains":["spam.com"],"excluded_domains":["spam.com"]},"properties":{"allowed_domains":{"items":{"type":"string"},"type":["array","null"]},"blocked_domains":{"items":{"type":"string"},"type":["array","null"]},"excluded_domains":{"items":{"type":"string"},"type":["array","null"]}},"type":["object","null"]},"WebSearchEngine":{"enum":["native","exa","firecrawl","parallel","perplexity"],"example":"exa","type":"string","x-speakeasy-unknown-values":"allow"},"WebSearchEngineEnum":{"enum":["native","exa","parallel","firecrawl","perplexity","auto"],"example":"auto","type":"string","x-speakeasy-unknown-values":"allow"},"WebSearchMode":{"enum":["instant","fast","auto","deep-lite","deep","deep-reasoning","turbo","basic","advanced"],"example":"auto","type":"string","x-speakeasy-unknown-values":"allow"},"WebSearchPlugin":{"example":{"enabled":true,"id":"web","max_results":5},"properties":{"enabled":{"type":"boolean"},"engine":{"$ref":"#/components/schemas/WebSearchEngine"},"exclude_domains":{"example":["example.com","*.substack.com","openai.com/blog"],"items":{"type":"string"},"type":"array"},"id":{"enum":["web"],"type":"string"},"include_domains":{"example":["example.com","*.substack.com","openai.com/blog"],"items":{"type":"string"},"type":"array"},"max_results":{"type":"integer"},"max_uses":{"type":"integer"},"mode":{"$ref":"#/components/schemas/WebSearchMode"},"search_prompt":{"type":"string"},"user_location":{"allOf":[{"$ref":"#/components/schemas/WebSearchUserLocation"},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"required":["type"]}]}},"required":["id"],"type":"object"},"WebSearchServerTool":{"example":{"engine":"auto","filters":{"allowed_domains":["example.com"]},"type":"web_search_2025_08_26"},"properties":{"engine":{"$ref":"#/components/schemas/WebSearchEngineEnum"},"filters":{"$ref":"#/components/schemas/WebSearchDomainFilter"},"max_results":{"example":5,"type":"integer"},"max_uses":{"example":3,"type":"integer"},"mode":{"$ref":"#/components/schemas/WebSearchMode"},"search_context_size":{"$ref":"#/components/schemas/SearchContextSizeEnum"},"type":{"enum":["web_search_2025_08_26"],"type":"string"},"user_location":{"$ref":"#/components/schemas/WebSearchUserLocation"}},"required":["type"],"type":"object"},"WebSearchServerToolConfig":{"example":{"max_results":5,"search_context_size":"medium"},"properties":{"allowed_domains":{"items":{"type":"string"},"type":"array"},"engine":{"$ref":"#/components/schemas/WebSearchEngineEnum"},"excluded_domains":{"items":{"type":"string"},"type":"array"},"max_characters":{"example":2000,"type":"integer"},"max_results":{"example":5,"type":"integer"},"max_total_results":{"example":50,"type":"integer"},"max_uses":{"example":3,"type":"integer"},"mode":{"$ref":"#/components/schemas/WebSearchMode"},"search_context_size":{"$ref":"#/components/schemas/SearchQualityLevel"},"user_location":{"$ref":"#/components/schemas/WebSearchUserLocationServerTool"}},"type":"object"},"WebSearchServerTool_OpenRouter":{"example":{"parameters":{"max_results":5},"type":"openrouter:web_search"},"properties":{"parameters":{"$ref":"#/components/schemas/WebSearchServerToolConfig"},"type":{"enum":["openrouter:web_search"],"type":"string"}},"required":["type"],"type":"object"},"WebSearchSource":{"example":{"type":"url","url":"https://example.com/article"},"properties":{"type":{"enum":["url"],"type":"string"},"url":{"description":"Адрес ресурса.","type":"string"}},"required":["type","url"],"type":"object"},"WebSearchStatus":{"enum":["completed","searching","in_progress","failed"],"example":"completed","type":"string","x-speakeasy-unknown-values":"allow"},"WebSearchUserLocation":{"example":{"city":"San Francisco","country":"USA","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"type":["string","null"]},"country":{"type":["string","null"]},"region":{"type":["string","null"]},"timezone":{"type":["string","null"]},"type":{"enum":["approximate"],"type":"string"}},"type":["object","null"]},"WebSearchUserLocationServerTool":{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"type":["string","null"]},"country":{"type":["string","null"]},"region":{"type":["string","null"]},"timezone":{"type":["string","null"]},"type":{"enum":["approximate"],"type":"string"}},"type":"object"},"Workspace":{"example":{"created_at":"2025-08-24T10:30:00Z","created_by":"user_abc123","default_guardrail_id":"595d5849-7e86-51fd-a7c0-705c34e4afff","default_image_model":"openai/dall-e-3","default_provider_sort":"price","default_text_model":"openai/gpt-4o","id":"550e8400-e29b-41d4-a716-446655440000","include_byok_in_budgets":false,"io_logging_api_key_ids":null,"io_logging_sampling_rate":1,"is_data_discount_logging_enabled":true,"is_observability_broadcast_enabled":false,"is_observability_io_logging_enabled":false,"name":"Production","slug":"production","updated_at":"2025-08-24T15:45:00Z"},"properties":{"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"created_by":{"example":"user_abc123","type":["string","null"]},"default_guardrail_id":{"example":"595d5849-7e86-51fd-a7c0-705c34e4afff","format":"uuid","type":"string"},"default_image_model":{"example":"openai/dall-e-3","type":["string","null"]},"default_provider_sort":{"example":"price","type":["string","null"]},"default_text_model":{"example":"openai/gpt-4o","type":["string","null"]},"description":{"example":"Production environment workspace","type":["string","null"]},"id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"},"include_byok_in_budgets":{"example":false,"type":"boolean"},"io_logging_api_key_ids":{"example":null,"items":{"type":"integer"},"type":["array","null"]},"io_logging_sampling_rate":{"example":1,"format":"double","type":"number"},"is_data_discount_logging_enabled":{"example":true,"type":"boolean"},"is_observability_broadcast_enabled":{"example":false,"type":"boolean"},"is_observability_io_logging_enabled":{"example":false,"type":"boolean"},"name":{"description":"Необязательное имя участника или инструмента.","example":"Production","type":"string"},"slug":{"description":"Короткий идентификатор модели.","example":"production","type":"string"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":["string","null"]}},"required":["id","default_guardrail_id","name","slug","description","default_text_model","default_image_model","default_provider_sort","is_observability_io_logging_enabled","is_observability_broadcast_enabled","is_data_discount_logging_enabled","io_logging_sampling_rate","io_logging_api_key_ids","created_at","updated_at","created_by"],"type":"object"},"WorkspaceBudget":{"example":{"created_at":"2025-08-24T10:30:00Z","id":"770e8400-e29b-41d4-a716-446655440000","limit_usd":100,"reset_interval":"monthly","updated_at":"2025-08-24T15:45:00Z","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"id":{"example":"770e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"},"limit_usd":{"example":100,"format":"double","type":"number"},"reset_interval":{"enum":["daily","weekly","monthly",null],"example":"monthly","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"updated_at":{"example":"2025-08-24T15:45:00Z","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","limit_usd","reset_interval","created_at","updated_at"],"type":"object"},"WorkspaceBudgetInterval":{"enum":["daily","weekly","monthly","lifetime"],"example":"monthly","type":"string","x-speakeasy-unknown-values":"allow"},"WorkspaceMember":{"example":{"created_at":"2025-08-24T10:30:00Z","id":"660e8400-e29b-41d4-a716-446655440000","role":"member","user_id":"user_abc123","workspace_id":"550e8400-e29b-41d4-a716-446655440000"},"properties":{"created_at":{"example":"2025-08-24T10:30:00Z","type":"string"},"id":{"example":"660e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"},"role":{"description":"Роль участника диалога.","enum":["admin","member"],"example":"member","type":"string","x-speakeasy-unknown-values":"allow"},"user_id":{"example":"user_abc123","type":"string"},"workspace_id":{"example":"550e8400-e29b-41d4-a716-446655440000","format":"uuid","type":"string"}},"required":["id","workspace_id","user_id","role","created_at"],"type":"object"}},"securitySchemes":{"bearerAuth":{"description":"API-ключ LLMora из Telegram","scheme":"bearer","type":"http"}}},"externalDocs":{"url":"https://openrouter.ai/docs"},"info":{"description":"Публичный API LLMora с совместимостью с OpenRouter. Все модели используют оригинальные идентификаторы OpenRouter. Описания моделей в каталоге LLMora переводятся на русский, названия не изменяются.\n\n## Рублёвое списание\n\nДля /chat/completions и /images/generations LLMora резервирует средства перед запросом, после ответа списывает фактическую стоимость в рублях, а остаток резерва возвращает. При ошибке списание отменяется.\n\nСтоимость завершённого non-streaming запроса возвращается в HTTP-заголовке X-LLMora-Cost-RUB и JSON-поле llmora.cost_rub. Публичный API отдаёт клиентские цены и списания в рублях; provider USD cost используется только во внутреннем учёте.\n\nПри stream=true стоимость приходит в финальном SSE-сообщении перед data: [DONE] в поле llmora.cost_rub, а также в trailer/header X-LLMora-Cost-RUB, когда клиент поддерживает trailer headers.\n\n## Кэш промпта\n\nPOST /chat/completions включает cache_control:{\"type\":\"ephemeral\"} для моделей OpenRouter с отдельной ценой записи кэша, когда в запросе больше одного сообщения и клиент не передал cache_control, prompt_cache_options или маркеры кэша в сообщениях. Поддерживаются prompt_cache_key, prompt_cache_options, cache_control и session_id на уровне запроса, а также cache_control и prompt_cache_breakpoint в текстовых блоках. Явные настройки клиента имеют приоритет. Для моделей с автоматическим кэшем у провайдера дополнительные параметры не нужны.\n\nПри наличии статистики OpenRouter ответ содержит usage.prompt_tokens_details.cached_tokens и usage.prompt_tokens_details.cache_write_tokens. GET /requests возвращает cache_read_tokens и cache_write_tokens для каждого запроса; ноль может означать отсутствие попадания в кэш или отсутствие данных от провайдера. Фактическая стоимость OpenRouter имеет приоритет при расчёте списания; если она отсутствует, LLMora использует цены обычных и кэшированных токенов из каталога. Запись в кэш может быть дороже обычного ввода. LLMora не возвращает ранее сохранённый ответ по совпадению промпта; сохранение ответа по Idempotency-Key служит только для безопасного повтора того же запроса.\n\n## Данные API\n\nLLMora не сохраняет тела API-запросов как историю переписки. Для биллинга, лимитов, аудита и идемпотентности могут храниться технические метаданные запроса, криптографический хеш тела без возможности восстановить исходный текст, а также ответ модели для повторной выдачи результата при безопасном повторе. Подробнее: https://llmora.ru/privacy.\n\n## Генерация изображений\n\n/images/generations — OpenAI-compatible alias для OpenRouter /images с рублёвым списанием LLMora. В ответе возвращаются X-LLMora-Cost-RUB и llmora.cost_rub. Поддерживаются text-to-image prompts, параметры качества/размера изображения и reference images через input_references с https/http URL или data:image/jpeg|png|webp;base64 URL. Streaming для этого billed alias пока не включён.\n\nImage-output модели также можно вызывать через /chat/completions, если клиент использует OpenRouter/OpenAI-style multimodal chat. Передайте modalities:[\"image\",\"text\"] или modalities:[\"image\"], а сгенерированные изображения вернутся в choices[].message.images[]. LLMora сохраняет это поле и нормализует data:image/...;base64 ответы в b64_json.\n\nПример:\n\n    {\"model\":\"bytedance-seed/seedream-4.5\",\"prompt\":\"a red panda astronaut floating in space, studio lighting\"}\n\nПример с reference image:\n\n    {\"model\":\"bytedance-seed/seedream-4.5\",\"prompt\":\"make this room look like a calm cyberpunk cafe\",\"input_references\":[{\"type\":\"image_url\",\"image_url\":{\"url\":\"data:image/png;base64,...\"}}]}\n\n## Аудио (TTS/STT)\n\nВсе речевые модели, включая ElevenLabs, вызываются через общий API. Используйте ключ LLMora и base_url https://api.llmora.ru/v1.\n\nPOST /audio/speech принимает JSON с model, input и voice, возвращая бинарное аудио. Для ElevenLabs используйте model: elevenlabs/eleven-turbo-v2, voice: george, response_format: mp3. Голос выбирайте из supported_voices модели в GET /models. Лимит llmora.max_input_characters проверяется по символам Unicode до отправки провайдеру; превышение возвращает HTTP 400. Текст не обрезается и не разбивается.\n\n    {\"model\":\"elevenlabs/eleven-turbo-v2\",\"input\":\"Добрый день!\",\"voice\":\"george\",\"response_format\":\"mp3\"}\n\nЛимиты TTS: Eleven v3 и v3 Conversational — 5000 символов; v4, v4 Turbo и Multilingual v2 — 10000; Turbo v2 и Flash v2 — 30000; Turbo v2.5 и Flash v2.5 — 40000. Каталог содержит актуальное ограничение для выбранной модели.\n\nPOST /audio/transcriptions принимает JSON с обязательными model и input_audio. Используйте elevenlabs/scribe-v2 или elevenlabs/scribe-v2-medical. В input_audio передайте data в base64 и format либо доступный провайдеру url.\n\n    {\"model\":\"elevenlabs/scribe-v2\",\"input_audio\":{\"data\":\"\u003cBASE64_AUDIO\u003e\",\"format\":\"mp3\"},\"language\":\"ru\"}\n\nOpenAI SDK также может отправить multipart/form-data с file и model: один файл до 50 МиБ (52428800 байт). LLMora преобразует multipart в JSON OpenRouter без перекодирования аудио. Необязательные language, diarize, keyterms, response_format, temperature и timestamp_granularities передаются провайдеру; их поддержка зависит от выбранной модели.\n\nGET /models возвращает llmora.model_type: audio, supported_voices, llmora.max_input_characters, llmora.max_input_files, llmora.max_file_size_bytes и маршруты supported_api_endpoints. pricing.unit означает characters для TTS или seconds для STT; prompt и completion — клиентская цена в рублях за единицу. Фактическая стоимость определяется после ответа OpenRouter и приходит в X-LLMora-Cost-RUB. Аудио проходит через общий аудио пул и получает X-LLMora-Job-ID; результат доступен по GET /jobs/{id}/output.\n\n\n## Аккаунт\n\nGET /balance возвращает доступный и зарезервированный баланс в RUB. GET /transactions, /payments и /requests возвращают историю списаний, пополнений и AI-запросов соответственно. /requests включает cache_read_tokens и cache_write_tokens; оба поля равны нулю, если OpenRouter не сообщил об использовании кэша. Эти методы доступны только владельцу API-ключа; суммы передаются точными десятичными строками в полях *_rub. Параметр limit ограничивает список от 1 до 100 записей (по умолчанию 20).\n\n## Jobs и отмена\n\nКаждый chat/image/systemone/audio запрос получает durable job в PostgreSQL. Для API доступны GET /jobs/{id}, POST /jobs/{id}/cancel и GET /jobs/{id}/output для готового аудио; идентификатор приходит в HTTP-заголовке X-LLMora-Job-ID, в том числе при streaming. Публичный /chat/completions не добавляет служебное type: job событие в SSE: поток содержит совместимые с OpenAI chat.completion.chunk объекты и завершается data: [DONE]. Redis используется только для wake-up воркеров, поэтому опрос остаётся надёжным при недоступности Redis.\n\n## Мультимодальный ввод\n\n/chat/completions принимает старый формат content:string и OpenAI/OpenRouter-compatible content[] с text и image_url. Поддерживаются https/http URL и data:image/jpeg|png|webp;base64 URLs. LLMora не скачивает remote image_url на API path, а передаёт URL провайдеру; signed URLs не следует передавать, если они содержат секретные параметры. Документные file objects в публичном API пока не принимаются: PDF/TXT/MD/CSV/JSON включены сначала для Telegram flow.\n\nПример image_url:\n\n    {\"model\":\"openai/gpt-4o-mini\",\"messages\":[{\"role\":\"user\",\"content\":[{\"type\":\"text\",\"text\":\"Describe this image\"},{\"type\":\"image_url\",\"image_url\":{\"url\":\"https://example.com/image.jpg\"}}]}]}\n\nПример data URL:\n\n    {\"model\":\"openai/gpt-4o-mini\",\"messages\":[{\"role\":\"user\",\"content\":[{\"type\":\"text\",\"text\":\"What is shown?\"},{\"type\":\"image_url\",\"image_url\":{\"url\":\"data:image/png;base64,...\"}}]}]}\n\nПример chat image generation:\n\n    {\"model\":\"google/nano-banana-2-lite\",\"modalities\":[\"image\",\"text\"],\"messages\":[{\"role\":\"user\",\"content\":\"Нарисуй уютную кофейню на Луне\"}]}\n\nGET /models добавляет поля llmora.input_modalities, llmora.output_modalities, llmora.supports_pdf и llmora.supports_image_output, чтобы клиент заранее видел, какие inputs можно отправлять выбранной модели и какие модели умеют генерировать изображения.","title":"LLMora API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/audio/speech":{"post":{"description":"Синтез речи через OpenRouter. Передайте model, input и голос из supported_voices выбранной модели в GET /models. Например, elevenlabs/eleven-turbo-v2 с voice: george. Лимит текста хранится в llmora.max_input_characters и проверяется по символам Unicode до вызова провайдера: превышение возвращает HTTP 400 без обрезки текста. Для Eleven v3 лимит 5000, Multilingual v2 и v4 — 10000, Turbo v2 и Flash v2 — 30000, Turbo v2.5 и Flash v2.5 — 40000. Ответ — бинарное аудио; response_format: mp3 подходит для сохранения в файл. Фактическое списание в рублях возвращается в X-LLMora-Cost-RUB, идентификатор задачи — в X-LLMora-Job-ID.","requestBody":{"content":{"application/json":{"schema":{"properties":{"input":{"description":"Текст для озвучки. Максимум символов зависит от модели и указан в llmora.max_input_characters каталога GET /models.","example":"Добрый день!","minLength":1,"type":"string"},"input_references":{"description":"Исходные материалы, которые модель учитывает при генерации.","items":{"$ref":"#/components/schemas/SpeechInputReference","description":"Исходные материалы, которые модель учитывает при генерации."},"type":"array"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"elevenlabs/eleven-turbo-v2","type":"string"},"provider":{"description":"Дополнительные настройки выбранного провайдера.","type":"object"},"response_format":{"description":"Формат аудио. Поддержка форматов и значение по умолчанию зависят от модели; для ElevenLabs используйте mp3.","example":"mp3","type":"string"},"speed":{"description":"Скорость воспроизведения речи.","example":1,"type":"number"},"voice":{"description":"Имя голоса из supported_voices выбранной модели в GET /models. Например, george для ElevenLabs.","example":"george","type":"string"}},"required":["model","input"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"audio/*":{"schema":{"format":"binary","type":"string"}}},"description":"Аудиофайл"},"400":{"description":"Некорректный запрос"},"415":{"description":"Content-Type должен быть application/json"}},"summary":"Синтезировать речь из текста (TTS)","tags":["Аудио"]}},"/audio/transcriptions":{"post":{"description":"Распознавание речи через OpenRouter. Используйте elevenlabs/scribe-v2 или elevenlabs/scribe-v2-medical. JSON содержит model и input_audio: data в base64 с format либо url. OpenAI SDK может передать multipart/form-data с model и одним file; LLMora преобразует его в JSON OpenRouter без перекодирования аудио. Multipart ограничен одним файлом до 50 МиБ (52428800 байт). Каталог GET /models хранит ограничения в llmora.max_input_files и llmora.max_file_size_bytes. Опции diarize, keyterms, language и временных меток передаются провайдеру; их поддержка зависит от модели. Для STT цена в каталоге указана за секунду (pricing.unit: seconds); фактическое рублёвое списание возвращается в X-LLMora-Cost-RUB.","requestBody":{"content":{"application/json":{"example":{"input_audio":{"data":"\u003cBASE64_AUDIO\u003e","format":"mp3"},"language":"ru","model":"elevenlabs/scribe-v2"},"schema":{"properties":{"diarize":{"type":"boolean"},"input_audio":{"description":"Передайте data в base64 и format либо доступный провайдеру url.","oneOf":[{"required":["data","format"]},{"required":["url"]}],"properties":{"data":{"description":"Аудио в base64.","type":"string"},"format":{"example":"mp3","type":"string"},"url":{"description":"Адрес ресурса.","format":"uri","type":"string"}},"type":"object"},"keyterms":{"items":{"type":"string"},"type":"array"},"language":{"description":"Код языка в формате ISO 639-1.","example":"ru","type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"elevenlabs/scribe-v2","type":"string"},"provider":{"description":"Настройки выбора и маршрутизации провайдера.","type":"object"},"response_format":{"description":"Требуемый формат результата.","enum":["json","verbose_json"],"type":"string"},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","example":0,"type":"number"},"timestamp_granularities":{"description":"Требуемая детализация временных меток.","items":{"description":"Требуемая детализация временных меток.","type":"string"},"type":"array"}},"required":["model","input_audio"],"type":"object"}},"multipart/form-data":{"schema":{"properties":{"diarize":{"description":"Разделять говорящих, если модель поддерживает диаризацию.","type":"boolean"},"file":{"description":"Один аудиофайл, не более 50 МиБ (52428800 байт).","format":"binary","type":"string"},"keyterms":{"description":"Термины, которые модель должна учитывать при распознавании.","items":{"type":"string"},"type":"array"},"language":{"description":"Необязательный код языка ISO 639-1.","example":"ru","type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"elevenlabs/scribe-v2","type":"string"},"response_format":{"default":"json","description":"Требуемый формат результата.","enum":["json","verbose_json"],"type":"string","x-speakeasy-unknown-values":"allow"},"temperature":{"description":"Степень случайности ответа. Меньшее значение делает результат предсказуемее.","example":0,"type":"number"},"timestamp_granularities[]":{"description":"Требуемая детализация временных меток.","items":{"description":"Требуемая детализация временных меток.","enum":["segment","word"],"type":"string"},"type":"array"}},"required":["file","model"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/STTResponse"}}},"description":"Расшифровка аудио"},"400":{"description":"Некорректный аудиофайл или запрос"},"413":{"description":"Аудиофайл или multipart-запрос превышает допустимый размер"},"415":{"description":"Content-Type должен быть application/json или multipart/form-data"}},"summary":"Распознать речь из аудио (STT)","tags":["Аудио"]}},"/balance":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"available_rub":{"example":"150.00","type":"string"},"currency":{"example":"RUB","type":"string"},"object":{"example":"llmora.balance","type":"string"},"reserved_rub":{"example":"0.00","type":"string"}},"type":"object"}}},"description":"Текущий баланс аккаунта"}},"summary":"Получить баланс","tags":["Аккаунт"]}},"/chat/completions":{"post":{"description":"Совместимая с OpenRouter генерация ответа с резервированием и списанием средств в рублях. При stream=true поток содержит OpenAI-совместимые chat.completion.chunk объекты и завершается data: [DONE]. Идентификатор задания передаётся в HTTP-заголовке X-LLMora-Job-ID; служебное type: job событие в SSE не отправляется. Передайте web_search:true, чтобы подключить веб-поиск OpenRouter и получить свежие данные с источниками в ответе. Количество источников задаётся web_search_max_results (1–10, по умолчанию 3). В обычном ответе источники находятся в choices[].message.citations[]. Поисковые вызовы тарифицируются отдельно.","operationId":"createLLMoraChatCompletion","parameters":[{"description":"Ключ идемпотентности для безопасного повтора non-streaming запроса.","in":"header","name":"Idempotency-Key","schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"example":{"messages":[{"content":"Нарисуй уютную кофейню на Луне","role":"user"}],"modalities":["image","text"],"model":"google/nano-banana-2-lite"},"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"Ответ модели или SSE-поток при stream=true. Фактическая стоимость возвращается в X-LLMora-Cost-RUB и llmora.cost_rub; для stream=true финальная стоимость приходит перед [DONE].","headers":{"X-LLMora-Cost-RUB":{"description":"Фактическая стоимость запроса в рублях; для stream=true может прийти как trailer header.","schema":{"example":"0.70","type":"string"}},"X-LLMora-Job-ID":{"description":"Идентификатор задания для GET /jobs/{id} и POST /jobs/{id}/cancel, в том числе при streaming.","schema":{"format":"uuid","type":"string"}}}},"400":{"description":"Неверный запрос"},"401":{"description":"Неверный API-ключ"},"402":{"description":"Недостаточно средств"},"429":{"description":"Превышен лимит"}},"summary":"Создать chat completion","tags":["Чат"]}},"/embeddings":{"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}],"post":{"description":"Создаёт векторные представления входного текста.","operationId":"createEmbeddings","requestBody":{"content":{"application/json":{"schema":{"example":{"dimensions":1536,"input":"The quick brown fox jumps over the lazy dog","model":"openai/text-embedding-3-small"},"properties":{"dimensions":{"description":"Количество измерений результирующего вектора.","example":1536,"minimum":1,"type":"integer"},"encoding_format":{"description":"Формат числового представления результата.","enum":["float","base64"],"example":"float","type":"string","x-speakeasy-unknown-values":"allow"},"input":{"anyOf":[{"description":"Входной текст или массив входных данных.","minLength":1,"type":"string"},{"description":"Входной текст или массив входных данных.","items":{"description":"Входной текст или массив входных данных.","minLength":1,"type":"string"},"type":"array"},{"description":"Входной текст или массив входных данных.","items":{"description":"Входной текст или массив входных данных.","type":"number"},"type":"array"},{"description":"Входной текст или массив входных данных.","items":{"description":"Входной текст или массив входных данных.","items":{"description":"Входной текст или массив входных данных.","type":"number"},"type":"array"},"type":"array"},{"description":"Входной текст или массив входных данных.","items":{"description":"Входной текст или массив входных данных.","properties":{"content":{"description":"Содержимое сообщения или входные данные.","items":{"description":"Содержимое сообщения или входные данные.","oneOf":[{"description":"Содержимое сообщения или входные данные.","properties":{"text":{"minLength":1,"type":"string"},"type":{"enum":["text"],"type":"string"}},"required":["type","text"],"type":"object"},{"description":"Содержимое сообщения или входные данные.","properties":{"image_url":{"description":"Ссылка на изображение или объект с параметрами изображения.","properties":{"url":{"description":"Адрес ресурса.","type":"string"}},"required":["url"],"type":"object"},"type":{"enum":["image_url"],"type":"string"}},"required":["type","image_url"],"type":"object"},{"$ref":"#/components/schemas/ContentPartInputAudio","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/ContentPartInputVideo","description":"Содержимое сообщения или входные данные."},{"$ref":"#/components/schemas/ContentPartInputFile","description":"Содержимое сообщения или входные данные."}]},"minItems":1,"type":"array"}},"required":["content"],"type":"object"},"type":"array"}],"description":"Входной текст или массив входных данных.","example":"The quick brown fox jumps over the lazy dog"},"input_type":{"example":"search_query","type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"openai/text-embedding-3-small","type":"string"},"provider":{"allOf":[{"$ref":"#/components/schemas/ProviderPreferences","description":"Настройки выбора и маршрутизации провайдера."},{"description":"Настройки выбора и маршрутизации провайдера."}],"description":"Настройки выбора и маршрутизации провайдера."},"user":{"description":"Идентификатор конечного пользователя.","example":"user-1234","type":"string"}},"required":["input","model"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"example":{"data":[{"embedding":[0.0023064255,-0.009327292,0.015797347],"index":0,"object":"embedding"}],"model":"openai/text-embedding-3-small","object":"list","usage":{"prompt_tokens":8,"total_tokens":8}},"properties":{"data":{"example":[{"embedding":[0.0023064255,-0.009327292,0.015797347],"index":0,"object":"embedding"}],"items":{"example":{"embedding":[0.0023064255,-0.009327292,0.015797347],"index":0,"object":"embedding"},"properties":{"embedding":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"string"}],"example":[0.0023064255,-0.009327292,0.015797347]},"index":{"description":"Номер результата в задаче генерации.","example":0,"type":"integer"},"object":{"enum":["embedding"],"type":"string"}},"required":["object","embedding"],"type":"object"},"type":"array"},"id":{"example":"embd-1234567890","type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"openai/text-embedding-3-small","type":"string"},"object":{"enum":["list"],"type":"string"},"usage":{"description":"Сведения об использованных токенах и стоимости.","example":{"description":"Сведения об использованных токенах и стоимости.","prompt_tokens":8,"total_tokens":8},"properties":{"cost":{"example":0.0001,"format":"double","type":"number"},"cost_details":{"$ref":"#/components/schemas/CostDetails"},"is_byok":{"type":"boolean"},"prompt_tokens":{"example":8,"type":"integer"},"prompt_tokens_details":{"properties":{"audio_tokens":{"type":"integer"},"file_tokens":{"type":"integer"},"image_tokens":{"example":258,"type":"integer"},"text_tokens":{"example":8,"type":"integer"},"video_tokens":{"type":"integer"}},"type":"object"},"total_tokens":{"example":8,"type":"integer"}},"required":["prompt_tokens","total_tokens"],"type":"object"}},"required":["object","data","model"],"type":"object"}},"text/event-stream":{"example":"data: [DONE]","schema":{"type":"string"},"x-speakeasy-sse-sentinel":"[DONE]"}}},"400":{"content":{"application/json":{"example":{"error":{"code":400,"message":"Invalid request parameters"}},"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"401":{"content":{"application/json":{"example":{"error":{"code":401,"message":"Missing Authentication header"}},"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"402":{"content":{"application/json":{"example":{"error":{"code":402,"message":"Insufficient credits. Add more using https://openrouter.ai/credits"}},"schema":{"$ref":"#/components/schemas/PaymentRequiredResponse"}}}},"403":{"content":{"application/json":{"example":{"error":{"code":403,"message":"Only management keys can perform this operation"}},"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"content":{"application/json":{"example":{"error":{"code":404,"message":"Resource not found"}},"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"408":{"content":{"application/json":{"example":{"error":{"code":408,"message":"Operation timed out. Please try again later."}},"schema":{"$ref":"#/components/schemas/RequestTimeoutResponse"}}}},"413":{"content":{"application/json":{"example":{"error":{"code":413,"message":"Request payload too large"}},"schema":{"$ref":"#/components/schemas/PayloadTooLargeResponse"}}}},"429":{"content":{"application/json":{"example":{"error":{"code":429,"message":"Rate limit exceeded"}},"schema":{"$ref":"#/components/schemas/TooManyRequestsResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}},"502":{"content":{"application/json":{"example":{"error":{"code":502,"message":"Provider returned error"}},"schema":{"$ref":"#/components/schemas/BadGatewayResponse"}}}},"503":{"content":{"application/json":{"example":{"error":{"code":503,"message":"Service temporarily unavailable"}},"schema":{"$ref":"#/components/schemas/ServiceUnavailableResponse"}}}},"524":{"content":{"application/json":{"example":{"error":{"code":524,"message":"Request timed out. Please try again later."}},"schema":{"$ref":"#/components/schemas/EdgeNetworkTimeoutResponse"}}}},"529":{"content":{"application/json":{"example":{"error":{"code":529,"message":"Provider returned error"}},"schema":{"$ref":"#/components/schemas/ProviderOverloadedResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Создать эмбеддинги","tags":["Эмбеддинги"],"x-speakeasy-name-override":"generate"}},"/embeddings/models":{"get":{"description":"Возвращает список моделей, поддерживающих эмбеддинги.","operationId":"listEmbeddingsModels","parameters":[{"description":"Смещение от начала списка.","in":"query","name":"offset","required":false,"schema":{"default":0,"example":0,"minimum":0,"type":["integer","null"]}},{"description":"Максимальное количество записей в ответе.","in":"query","name":"limit","required":false,"schema":{"default":500,"example":500,"maximum":1000,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"example":{"data":[{"architecture":{"input_modalities":["text"],"instruct_type":null,"modality":"text-\u003etext","output_modalities":["embeddings"],"tokenizer":"GPT"},"canonical_slug":"openai/text-embedding-3-small","context_length":8192,"created":1692901234,"default_parameters":null,"expiration_date":null,"id":"openai/text-embedding-3-small","knowledge_cutoff":null,"links":{"details":"/api/v1/models/openai/text-embedding-3-small/endpoints"},"name":"Text Embedding 3 Small","per_request_limits":null,"pricing":{"completion":"0","image":"0","prompt":"0.00000002","request":"0"},"supported_parameters":[],"supported_voices":null,"top_provider":{"context_length":8192,"is_moderated":false,"max_completion_tokens":null}}]},"schema":{"$ref":"#/components/schemas/ModelsListResponse"}}}},"400":{"content":{"application/json":{"example":{"error":{"code":400,"message":"Invalid request parameters"}},"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Получить модели для эмбеддингов","tags":["Эмбеддинги"],"x-speakeasy-name-override":"listModels","x-speakeasy-pagination":{"inputs":[{"description":"Смещение от начала списка.","in":"parameters","name":"offset","type":"offset"},{"description":"Максимальное количество записей в ответе.","in":"parameters","name":"limit","type":"limit"}],"outputs":{"results":"$.data"},"type":"offsetLimit"}},"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}]},"/images":{"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}],"post":{"description":"Создаёт изображение по текстовому описанию.","operationId":"createImages","requestBody":{"content":{"application/json":{"example":{"model":"bytedance-seed/seedream-4.5","prompt":"a red panda astronaut floating in space, studio lighting"},"schema":{"$ref":"#/components/schemas/ImageGenerationRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"created":1748372400,"data":[{"b64_json":"\u003cbase64-encoded-image\u003e"}],"usage":{"completion_tokens":4175,"cost":0.04,"prompt_tokens":0,"total_tokens":4175}},"schema":{"$ref":"#/components/schemas/ImageGenerationResponse"}},"text/event-stream":{"example":{"data":{"b64_json":"\u003cbase64-encoded-partial-image\u003e","partial_image_index":0,"type":"image_generation.partial_image"}},"schema":{"$ref":"#/components/schemas/ImageStreamingResponse"},"x-speakeasy-sse-sentinel":"[DONE]"}}},"400":{"content":{"application/json":{"example":{"error":{"code":400,"message":"Invalid request parameters"}},"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"401":{"content":{"application/json":{"example":{"error":{"code":401,"message":"Missing Authentication header"}},"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"402":{"content":{"application/json":{"example":{"error":{"code":402,"message":"Insufficient credits. Add more using https://openrouter.ai/credits"}},"schema":{"$ref":"#/components/schemas/PaymentRequiredResponse"}}}},"403":{"content":{"application/json":{"example":{"error":{"code":403,"message":"Only management keys can perform this operation"}},"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"content":{"application/json":{"example":{"error":{"code":404,"message":"Resource not found"}},"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"413":{"content":{"application/json":{"example":{"error":{"code":413,"message":"Request payload too large"}},"schema":{"$ref":"#/components/schemas/PayloadTooLargeResponse"}}}},"429":{"content":{"application/json":{"example":{"error":{"code":429,"message":"Rate limit exceeded"}},"schema":{"$ref":"#/components/schemas/TooManyRequestsResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}},"502":{"content":{"application/json":{"example":{"error":{"code":502,"message":"Provider returned error"}},"schema":{"$ref":"#/components/schemas/BadGatewayResponse"}}}},"524":{"content":{"application/json":{"example":{"error":{"code":524,"message":"Request timed out. Please try again later."}},"schema":{"$ref":"#/components/schemas/EdgeNetworkTimeoutResponse"}}}},"529":{"content":{"application/json":{"example":{"error":{"code":529,"message":"Provider returned error"}},"schema":{"$ref":"#/components/schemas/ProviderOverloadedResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Сгенерировать изображение","tags":["Изображения"],"x-speakeasy-name-override":"generate"}},"/images/generations":{"post":{"description":"Совместимая с OpenAI генерация изображений с резервированием и списанием средств в рублях. Запрос пересылается в OpenRouter /images; input_references можно использовать как исходные изображения.","operationId":"createLLMoraImageGeneration","requestBody":{"content":{"application/json":{"example":{"input_references":[{"image_url":{"url":"data:image/png;base64,..."},"type":"image_url"}],"model":"bytedance-seed/seedream-4.5","output_format":"png","prompt":"make this room look like a calm cyberpunk cafe","quality":"high","size":"2K"},"schema":{"$ref":"#/components/schemas/ImageGenerationRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"created":{"example":1748372400,"type":"integer"},"data":{"items":{"properties":{"b64_json":{"description":"Содержимое изображения в Base64.","type":"string"},"media_type":{"example":"image/png","type":"string"},"url":{"description":"Адрес ресурса.","example":"https://example.com/generated.png","type":"string"}},"type":"object"},"type":"array"},"llmora":{"properties":{"cost_rub":{"example":"3.20","type":"string"}},"type":"object"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"bytedance-seed/seedream-4.5","type":"string"},"usage":{"$ref":"#/components/schemas/ImageGenerationUsage","description":"Сведения об использованных токенах и стоимости."}},"type":"object"}}},"description":"Сгенерированное изображение. Фактическая стоимость возвращается в X-LLMora-Cost-RUB и llmora.cost_rub.","headers":{"X-LLMora-Cost-RUB":{"description":"Фактическая стоимость генерации в рублях.","schema":{"example":"3.20","type":"string"}}}},"400":{"description":"Неверный запрос"},"401":{"description":"Неверный API-ключ"},"402":{"description":"Недостаточно средств"},"429":{"description":"Превышен лимит"}},"summary":"Сгенерировать изображение","tags":["Изображения"]}},"/images/models":{"get":{"description":"Возвращает модели, поддерживающие генерацию изображений.","operationId":"listImageModels","responses":{"200":{"content":{"application/json":{"example":{"data":[{"architecture":{"input_modalities":["text"],"output_modalities":["image"]},"created":1692901234,"endpoints":"/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints","id":"bytedance-seed/seedream-4.5","name":"Seedream 4.5","supported_parameters":{"resolution":{"type":"enum","values":["1K","2K","4K"]}},"supports_streaming":false}]},"schema":{"$ref":"#/components/schemas/ImageModelsListResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Получить модели генерации изображений","tags":["Изображения"],"x-speakeasy-name-override":"listModels"},"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}]},"/images/models/{author}/{slug}/endpoints":{"get":{"description":"Возвращает доступные эндпоинты выбранной модели.","operationId":"listImageModelEndpoints","parameters":[{"description":"Автор или организация модели.","in":"path","name":"author","required":true,"schema":{"example":"bytedance-seed","type":"string"}},{"description":"Короткий идентификатор модели.","in":"path","name":"slug","required":true,"schema":{"example":"seedream-4.5","type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"endpoints":[{"allowed_passthrough_parameters":[],"pricing":[{"billable":"output_image","cost_usd":0.05,"unit":"image"}],"provider_name":"Bytedance","provider_slug":"bytedance","provider_tag":"bytedance","supported_parameters":{"resolution":{"type":"enum","values":["1K","2K","4K"]}},"supports_streaming":false}],"id":"bytedance-seed/seedream-4.5"},"schema":{"$ref":"#/components/schemas/ImageModelEndpointsResponse"}}}},"404":{"content":{"application/json":{"example":{"error":{"code":404,"message":"Resource not found"}},"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Получить эндпоинты модели изображений","tags":["Изображения"],"x-speakeasy-name-override":"listModelEndpoints"},"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}]},"/jobs/{id}":{"get":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"attempts":{"type":"integer"},"completed_at":{"format":"date-time","nullable":true,"type":"string"},"created_at":{"format":"date-time","type":"string"},"error":{"type":"string"},"id":{"format":"uuid","type":"string"},"kind":{"type":"string"},"object":{"example":"job","type":"string"},"pool":{"type":"string"},"result":{},"started_at":{"format":"date-time","nullable":true,"type":"string"},"status":{"enum":["queued","running","completed","failed","cancel_requested","cancelled"],"type":"string"}},"type":"object"}}},"description":"Состояние job"},"404":{"description":"Job не найдена"}},"summary":"Получить состояние AI job","tags":["Jobs"]}},"/jobs/{id}/cancel":{"post":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"properties":{"attempts":{"type":"integer"},"completed_at":{"format":"date-time","nullable":true,"type":"string"},"created_at":{"format":"date-time","type":"string"},"error":{"type":"string"},"id":{"format":"uuid","type":"string"},"kind":{"type":"string"},"object":{"example":"job","type":"string"},"pool":{"type":"string"},"result":{},"started_at":{"format":"date-time","nullable":true,"type":"string"},"status":{"enum":["queued","running","completed","failed","cancel_requested","cancelled"],"type":"string"}},"type":"object"}}},"description":"Отмена запрошена"},"404":{"description":"Job не найдена"}},"summary":"Отменить AI job","tags":["Jobs"]}},"/jobs/{id}/output":{"get":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"audio/mpeg":{"schema":{"format":"binary","type":"string"}}},"description":"Аудио"},"404":{"description":"Аудио недоступно"}},"summary":"Скачать готовое аудио job","tags":["Jobs"]}},"/messages":{"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}],"post":{"description":"Создаёт ответ в формате Anthropic Messages API.","operationId":"createMessages","parameters":[{"description":"Дополнительные метаданные маршрутизации OpenRouter.","example":"enabled","in":"header","name":"X-OpenRouter-Metadata","required":false,"schema":{"$ref":"#/components/schemas/MetadataLevel"}}],"requestBody":{"content":{"application/json":{"example":{"max_tokens":1024,"messages":[{"content":"Hello, how are you?","role":"user"}],"model":"anthropic/claude-sonnet-4"},"schema":{"$ref":"#/components/schemas/MessagesRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"container":null,"content":[{"citations":[],"text":"I'm doing well, thank you for asking! How can I help you today?","type":"text"}],"id":"msg_abc123","model":"anthropic/claude-sonnet-4","role":"assistant","stop_details":null,"stop_reason":"end_turn","stop_sequence":null,"type":"message","usage":{"cache_creation":null,"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"inference_geo":null,"input_tokens":12,"output_tokens":18,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"}},"schema":{"$ref":"#/components/schemas/MessagesResult"}},"text/event-stream":{"example":{"data":{"delta":{"text":"Hello","type":"text_delta"},"index":0,"type":"content_block_delta"},"event":"content_block_delta"},"schema":{"$ref":"#/components/schemas/MessagesStreamingResponse"},"x-speakeasy-sse-sentinel":"[DONE]"}}},"400":{"content":{"application/json":{"example":{"error":{"message":"Invalid request: messages is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"schema":{"$ref":"#/components/schemas/AnthropicMessagesErrorResponse"}}}},"401":{"content":{"application/json":{"example":{"error":{"message":"Invalid API key","type":"authentication_error"},"request_id":null,"type":"error"},"schema":{"$ref":"#/components/schemas/AnthropicMessagesErrorResponse"}}}},"403":{"content":{"application/json":{"examples":{"guardrail-blocked":{"summary":"Guardrail blocked the request","value":{"error":{"message":"Request blocked: prompt injection patterns detected","type":"permission_error"},"openrouter_metadata":{"pipeline":[{"name":"regex_pi_detection","summary":"Blocked: prompt injection detected (1 pattern matched)","type":"guardrail"}]},"request_id":null,"type":"error"}},"insufficient-permissions":{"summary":"Insufficient permissions","value":{"error":{"message":"Only management keys can perform this operation","type":"permission_error"},"request_id":null,"type":"error"}}},"schema":{"$ref":"#/components/schemas/AnthropicMessagesErrorResponse"}}}},"404":{"content":{"application/json":{"example":{"error":{"message":"Model not found","type":"not_found_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"},"schema":{"$ref":"#/components/schemas/AnthropicMessagesErrorResponse"}}}},"429":{"content":{"application/json":{"example":{"error":{"message":"Rate limit exceeded","type":"rate_limit_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"},"schema":{"$ref":"#/components/schemas/AnthropicMessagesErrorResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"message":"Internal server error","type":"api_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"},"schema":{"$ref":"#/components/schemas/AnthropicMessagesErrorResponse"}}}},"503":{"content":{"application/json":{"example":{"error":{"message":"Service temporarily overloaded","type":"overloaded_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"},"schema":{"$ref":"#/components/schemas/AnthropicMessagesErrorResponse"}}}},"529":{"content":{"application/json":{"example":{"error":{"message":"Provider is temporarily overloaded","type":"overloaded_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"},"schema":{"$ref":"#/components/schemas/AnthropicMessagesErrorResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Создать сообщение","tags":["Сообщения Anthropic"],"x-speakeasy-ignore":true,"x-speakeasy-name-override":"create","x-speakeasy-stream-request-field":"stream"}},"/model/{author}/{slug}":{"get":{"description":"Возвращает сведения о модели по её идентификатору.","operationId":"getModel","parameters":[{"description":"Автор или организация модели.","in":"path","name":"author","required":true,"schema":{"example":"openai","type":"string"}},{"description":"Короткий идентификатор модели.","in":"path","name":"slug","required":true,"schema":{"example":"gpt-4","type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"data":{"architecture":{"input_modalities":["text"],"instruct_type":"chatml","modality":"text-\u003etext","output_modalities":["text"],"tokenizer":"GPT"},"canonical_slug":"openai/gpt-4","context_length":8192,"created":1692901234,"default_parameters":null,"expiration_date":null,"id":"openai/gpt-4","knowledge_cutoff":null,"links":{"details":"/api/v1/models/openai/gpt-4/endpoints"},"name":"GPT-4","per_request_limits":null,"pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"supported_parameters":["temperature","top_p","max_tokens"],"supported_voices":null,"top_provider":{"context_length":8192,"is_moderated":true,"max_completion_tokens":4096}}},"schema":{"$ref":"#/components/schemas/ModelResponse"}}}},"403":{"content":{"application/json":{"example":{"error":{"code":403,"message":"Only management keys can perform this operation"}},"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"content":{"application/json":{"example":{"error":{"code":404,"message":"Resource not found"}},"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Получить модель","tags":["Модели"],"x-speakeasy-name-override":"get"},"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}]},"/models":{"get":{"description":"Список включённых моделей, включая TTS и STT. Идентификаторы и названия совпадают с OpenRouter; описания локализуются на русский язык. Для речи возвращаются supported_voices, llmora.model_type: audio, llmora.max_input_characters, llmora.max_input_files, llmora.max_file_size_bytes и supported_api_endpoints. pricing.unit указывает characters для TTS или seconds для STT; prompt и completion содержат клиентскую цену в рублях за единицу.","operationId":"listLLMoraModels","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Model"},"type":"array"},"object":{"example":"list","type":"string"}},"type":"object"}}},"description":"Список моделей LLMora"}},"summary":"Список доступных моделей","tags":["Модели"]}},"/models/count":{"get":{"description":"Возвращает общее количество доступных моделей.","operationId":"listModelsCount","parameters":[{"description":"Фильтр по поддерживаемым типам результата.","in":"query","name":"output_modalities","required":false,"schema":{"example":"text","type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"data":{"count":150}},"schema":{"$ref":"#/components/schemas/ModelsCountResponse"}}}},"400":{"content":{"application/json":{"example":{"error":{"code":400,"message":"Invalid request parameters"}},"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"403":{"content":{"application/json":{"example":{"error":{"code":403,"message":"Only management keys can perform this operation"}},"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Получить количество моделей","tags":["Модели"],"x-speakeasy-name-override":"count"},"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}]},"/models/{author}/{slug}/endpoints":{"get":{"description":"Возвращает доступные эндпоинты и провайдеров выбранной модели.","operationId":"listEndpoints","parameters":[{"description":"Автор или организация модели.","in":"path","name":"author","required":true,"schema":{"example":"openai","type":"string"}},{"description":"Короткий идентификатор модели.","in":"path","name":"slug","required":true,"schema":{"example":"gpt-4","type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"data":{"architecture":{"input_modalities":["text"],"instruct_type":"chatml","modality":"text-\u003etext","output_modalities":["text"],"tokenizer":"GPT"},"created":1692901234,"endpoints":[],"id":"openai/gpt-4","name":"GPT-4"}},"schema":{"example":{"data":{"architecture":{"input_modalities":["text"],"instruct_type":"chatml","modality":"text-\u003etext","output_modalities":["text"],"tokenizer":"GPT"},"created":1692901234,"endpoints":[{"context_length":8192,"latency_last_30m":{"p50":0.25,"p75":0.35,"p90":0.48,"p99":0.85},"max_completion_tokens":4096,"max_prompt_tokens":8192,"model_id":"openai/gpt-4","model_name":"GPT-4","name":"OpenAI: GPT-4","pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"provider_name":"OpenAI","quantization":"fp16","status":0,"supported_parameters":["temperature","top_p","max_tokens"],"supports_implicit_caching":true,"tag":"openai","throughput_last_30m":{"p50":45.2,"p75":38.5,"p90":28.3,"p99":15.1},"uptime_last_1d":99.8,"uptime_last_30m":99.5,"uptime_last_5m":100}],"id":"openai/gpt-4","name":"GPT-4"}},"properties":{"data":{"$ref":"#/components/schemas/ListEndpointsResponse"}},"required":["data"],"type":"object"}}}},"403":{"content":{"application/json":{"example":{"error":{"code":403,"message":"Only management keys can perform this operation"}},"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"content":{"application/json":{"example":{"error":{"code":404,"message":"Resource not found"}},"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Получить эндпоинты модели","tags":["Эндпоинты моделей"],"x-speakeasy-name-override":"list"},"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}]},"/payments":{"get":{"description":"Пополнения баланса и их статусы.","parameters":[{"description":"Максимальное количество записей в ответе.","in":"query","name":"limit","schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"object":{"example":"list","type":"string"}},"type":"object"}}},"description":"Записи истории"}},"summary":"История платежей","tags":["Аккаунт"]}},"/providers":{"get":{"description":"Возвращает доступных провайдеров моделей.","operationId":"listProviders","responses":{"200":{"content":{"application/json":{"example":{"data":[{"datacenters":["US","IE"],"headquarters":"US","name":"OpenAI","privacy_policy_url":"https://openai.com/privacy","slug":"openai","status_page_url":"https://status.openai.com","terms_of_service_url":"https://openai.com/terms"}]},"schema":{"example":{"data":[{"datacenters":["US","IE"],"headquarters":"US","name":"OpenAI","privacy_policy_url":"https://openai.com/privacy","slug":"openai","status_page_url":"https://status.openai.com","terms_of_service_url":"https://openai.com/terms"}]},"properties":{"data":{"items":{"example":{"datacenters":["US","IE"],"headquarters":"US","name":"OpenAI","privacy_policy_url":"https://openai.com/privacy","slug":"openai","status_page_url":"https://status.openai.com","terms_of_service_url":"https://openai.com/terms"},"properties":{"datacenters":{"example":["US","IE"],"items":{"enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":["array","null"]},"headquarters":{"enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW",null],"example":"US","type":["string","null"],"x-speakeasy-unknown-values":"allow"},"name":{"description":"Необязательное имя участника или инструмента.","example":"OpenAI","type":"string"},"privacy_policy_url":{"example":"https://openai.com/privacy","type":["string","null"]},"slug":{"description":"Короткий идентификатор модели.","example":"openai","type":"string"},"status_page_url":{"example":"https://status.openai.com","type":["string","null"]},"terms_of_service_url":{"example":"https://openai.com/terms","type":["string","null"]}},"required":["name","slug","privacy_policy_url"],"type":"object"},"type":"array"}},"required":["data"],"type":"object"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Получить список провайдеров","tags":["Провайдеры"],"x-speakeasy-name-override":"list"},"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}]},"/requests":{"get":{"description":"Завершённые и неуспешные AI-запросы с фактической стоимостью в рублях. Поля cache_read_tokens и cache_write_tokens всегда присутствуют; ноль может означать отсутствие попадания в кэш или данных от провайдера.","parameters":[{"description":"Максимальное количество записей в ответе.","in":"query","name":"limit","schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"properties":{"cache_read_tokens":{"description":"Токены, прочитанные из кэша провайдера; 0 также может означать отсутствие данных.","format":"int64","type":"integer"},"cache_write_tokens":{"description":"Токены, записанные в кэш провайдера; 0 также может означать отсутствие данных.","format":"int64","type":"integer"},"cost_rub":{"description":"Фактическое списание в рублях.","type":"string"},"created_at":{"format":"date-time","type":"string"},"input_tokens":{"format":"int64","type":"integer"},"model":{"description":"Идентификатор модели, которая обработает запрос.","type":"string"},"output_tokens":{"format":"int64","type":"integer"},"source":{"type":"string"},"status":{"type":"string"}},"type":"object"},"type":"array"},"object":{"example":"list","type":"string"}},"type":"object"}}},"description":"Записи истории"}},"summary":"История AI-запросов","tags":["Аккаунт"]}},"/rerank":{"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}],"post":{"description":"Сортирует документы по релевантности запросу.","operationId":"createRerank","requestBody":{"content":{"application/json":{"schema":{"example":{"documents":["Paris is the capital of France.","Berlin is the capital of Germany."],"model":"cohere/rerank-v3.5","query":"What is the capital of France?","top_n":3},"properties":{"documents":{"description":"Документы для сортировки по релевантности.","example":["Paris is the capital of France.","Berlin is the capital of Germany."],"items":{"anyOf":[{"description":"Документы для сортировки по релевантности.","type":"string"},{"description":"Документы для сортировки по релевантности.","properties":{"image":{"example":"https://upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Phytogenic.png","type":"string"},"text":{"example":"AI enables robots to perceive, plan, and act autonomously.","type":"string"}},"type":"object"}],"description":"Документы для сортировки по релевантности."},"minItems":1,"type":"array"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"cohere/rerank-v3.5","type":"string"},"provider":{"allOf":[{"$ref":"#/components/schemas/ProviderPreferences","description":"Настройки выбора и маршрутизации провайдера."},{"description":"Настройки выбора и маршрутизации провайдера."}],"description":"Настройки выбора и маршрутизации провайдера."},"query":{"description":"Запрос, относительно которого оцениваются документы.","example":"What is the capital of France?","type":"string"},"top_n":{"description":"Количество наиболее релевантных документов в ответе.","example":3,"minimum":1,"type":"integer"}},"required":["model","query","documents"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"example":{"id":"gen-rerank-1234567890-abc","model":"cohere/rerank-v3.5","results":[{"document":{"text":"Paris is the capital of France."},"index":0,"relevance_score":0.98}],"usage":{"search_units":1,"total_tokens":150}},"properties":{"id":{"example":"gen-rerank-1234567890-abc","type":"string"},"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"cohere/rerank-v3.5","type":"string"},"provider":{"description":"Настройки выбора и маршрутизации провайдера.","example":"Cohere","type":"string"},"results":{"example":[{"document":{"text":"Paris is the capital of France."},"index":0,"relevance_score":0.98}],"items":{"example":{"document":{"text":"Paris is the capital of France."},"index":0,"relevance_score":0.98},"properties":{"document":{"properties":{"image":{"example":"https://example.com/image.png","type":"string"},"text":{"example":"Paris is the capital of France.","type":"string"}},"type":"object"},"index":{"description":"Номер результата в задаче генерации.","example":0,"type":"integer"},"relevance_score":{"example":0.98,"format":"double","type":"number"}},"required":["index","relevance_score","document"],"type":"object"},"type":"array"},"usage":{"description":"Сведения об использованных токенах и стоимости.","example":{"description":"Сведения об использованных токенах и стоимости.","search_units":1,"total_tokens":150},"properties":{"cost":{"example":0.001,"format":"double","type":"number"},"search_units":{"example":1,"type":"integer"},"total_tokens":{"example":150,"type":"integer"}},"type":"object"}},"required":["model","results"],"type":"object"}},"text/event-stream":{"example":"data: [DONE]","schema":{"type":"string"},"x-speakeasy-sse-sentinel":"[DONE]"}}},"400":{"content":{"application/json":{"example":{"error":{"code":400,"message":"Invalid request parameters"}},"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"401":{"content":{"application/json":{"example":{"error":{"code":401,"message":"Missing Authentication header"}},"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"402":{"content":{"application/json":{"example":{"error":{"code":402,"message":"Insufficient credits. Add more using https://openrouter.ai/credits"}},"schema":{"$ref":"#/components/schemas/PaymentRequiredResponse"}}}},"403":{"content":{"application/json":{"example":{"error":{"code":403,"message":"Only management keys can perform this operation"}},"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"content":{"application/json":{"example":{"error":{"code":404,"message":"Resource not found"}},"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"413":{"content":{"application/json":{"example":{"error":{"code":413,"message":"Request payload too large"}},"schema":{"$ref":"#/components/schemas/PayloadTooLargeResponse"}}}},"429":{"content":{"application/json":{"example":{"error":{"code":429,"message":"Rate limit exceeded"}},"schema":{"$ref":"#/components/schemas/TooManyRequestsResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}},"502":{"content":{"application/json":{"example":{"error":{"code":502,"message":"Provider returned error"}},"schema":{"$ref":"#/components/schemas/BadGatewayResponse"}}}},"503":{"content":{"application/json":{"example":{"error":{"code":503,"message":"Service temporarily unavailable"}},"schema":{"$ref":"#/components/schemas/ServiceUnavailableResponse"}}}},"524":{"content":{"application/json":{"example":{"error":{"code":524,"message":"Request timed out. Please try again later."}},"schema":{"$ref":"#/components/schemas/EdgeNetworkTimeoutResponse"}}}},"529":{"content":{"application/json":{"example":{"error":{"code":529,"message":"Provider returned error"}},"schema":{"$ref":"#/components/schemas/ProviderOverloadedResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Реранжировать документы","tags":["Реранжирование"],"x-speakeasy-name-override":"rerank"}},"/responses":{"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}],"post":{"description":"Создаёт ответ через OpenAI-совместимый Responses API.","operationId":"createResponses","parameters":[{"description":"Дополнительные метаданные маршрутизации OpenRouter.","example":"enabled","in":"header","name":"X-OpenRouter-Metadata","required":false,"schema":{"$ref":"#/components/schemas/MetadataLevel"}}],"requestBody":{"content":{"application/json":{"example":{"input":"Tell me a joke","model":"openai/gpt-4o"},"schema":{"$ref":"#/components/schemas/ResponsesRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"completed_at":1700000010,"created_at":1700000000,"error":null,"frequency_penalty":null,"id":"resp_abc123","incomplete_details":null,"instructions":null,"max_output_tokens":null,"metadata":null,"model":"openai/gpt-4o","object":"response","output":[{"content":[{"annotations":[],"text":"Why did the chicken cross the road? To get to the other side!","type":"output_text"}],"id":"msg-abc123","role":"assistant","status":"completed","type":"message"}],"parallel_tool_calls":true,"presence_penalty":null,"status":"completed","temperature":null,"tool_choice":"auto","tools":[],"top_p":null,"usage":{"input_tokens":10,"input_tokens_details":{"cached_tokens":0},"output_tokens":20,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":30}},"schema":{"$ref":"#/components/schemas/OpenResponsesResult"}},"text/event-stream":{"example":{"data":{"content_index":0,"delta":"Hello","item_id":"item-1","logprobs":[],"output_index":0,"sequence_number":4,"type":"response.output_text.delta"}},"schema":{"$ref":"#/components/schemas/ResponsesStreamingResponse"},"x-speakeasy-sse-sentinel":"[DONE]"}}},"400":{"content":{"application/json":{"example":{"error":{"code":400,"message":"Invalid request parameters"}},"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"401":{"content":{"application/json":{"example":{"error":{"code":401,"message":"Missing Authentication header"}},"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"402":{"content":{"application/json":{"example":{"error":{"code":402,"message":"Insufficient credits. Add more using https://openrouter.ai/credits"}},"schema":{"$ref":"#/components/schemas/PaymentRequiredResponse"}}}},"403":{"content":{"application/json":{"examples":{"guardrail-blocked":{"summary":"Guardrail blocked the request","value":{"error":{"code":403,"message":"Request blocked: prompt injection patterns detected","metadata":{"patterns":["ignore all previous instructions"]}},"openrouter_metadata":{"attempt":1,"endpoints":{"available":[{"model":"openai/gpt-4o","provider":"OpenAI","selected":false}],"total":1},"is_byok":false,"pipeline":[{"data":{"action":"blocked","detected":true,"engines":["regex"],"patterns":["ignore all previous instructions"]},"guardrail_id":"grd_abc123","guardrail_scope":"api-key","name":"regex_pi_detection","summary":"Blocked: prompt injection detected (1 pattern matched)","type":"guardrail"}],"region":"iad","requested":"openai/gpt-4o","strategy":"direct","summary":"available=1"}}},"insufficient-permissions":{"summary":"Insufficient permissions","value":{"error":{"code":403,"message":"Only management keys can perform this operation"}}}},"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"content":{"application/json":{"example":{"error":{"code":404,"message":"Resource not found"}},"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"408":{"content":{"application/json":{"example":{"error":{"code":408,"message":"Operation timed out. Please try again later."}},"schema":{"$ref":"#/components/schemas/RequestTimeoutResponse"}}}},"413":{"content":{"application/json":{"example":{"error":{"code":413,"message":"Request payload too large"}},"schema":{"$ref":"#/components/schemas/PayloadTooLargeResponse"}}}},"422":{"content":{"application/json":{"example":{"error":{"code":422,"message":"Invalid argument"}},"schema":{"$ref":"#/components/schemas/UnprocessableEntityResponse"}}}},"429":{"content":{"application/json":{"example":{"error":{"code":429,"message":"Rate limit exceeded"}},"schema":{"$ref":"#/components/schemas/TooManyRequestsResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}},"502":{"content":{"application/json":{"example":{"error":{"code":502,"message":"Provider returned error"}},"schema":{"$ref":"#/components/schemas/BadGatewayResponse"}}}},"503":{"content":{"application/json":{"example":{"error":{"code":503,"message":"Service temporarily unavailable"}},"schema":{"$ref":"#/components/schemas/ServiceUnavailableResponse"}}}},"524":{"content":{"application/json":{"example":{"error":{"code":524,"message":"Request timed out. Please try again later."}},"schema":{"$ref":"#/components/schemas/EdgeNetworkTimeoutResponse"}}}},"529":{"content":{"application/json":{"example":{"error":{"code":529,"message":"Provider returned error"}},"schema":{"$ref":"#/components/schemas/ProviderOverloadedResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Создать ответ","tags":["Ответы"],"x-speakeasy-name-override":"send","x-speakeasy-stream-request-field":"stream"}},"/systemone":{"post":{"description":"Отправляет состояние и typed questions в System One модель Jev. LLMora резервирует средства, списывает фактическую стоимость и возвращает ответы и provider usage.","operationId":"createLLMoraSystemOneDecision","requestBody":{"content":{"application/json":{"example":{"model":"typesafe/jev-router","questions":{"is_even":{"instructions":"Is the number 4 even?","type":"noul"}},"state":"The number 4 is even."},"schema":{"properties":{"model":{"description":"Идентификатор модели, которая обработает запрос.","example":"typesafe/jev-router","type":"string"},"questions":{"description":"Именованные вопросы типов noul, choice или score.","type":"object"},"state":{"description":"Состояние для оценки Jev; строка или JSON-объект."}},"required":["model","state","questions"],"type":"object"}}},"required":true},"responses":{"200":{"description":"Типизированные ответы Jev. Стоимость в рублях также возвращается в X-LLMora-Cost-RUB."},"400":{"description":"Неверный запрос или модель не поддерживает System One"},"401":{"description":"Неверный API-ключ"},"402":{"description":"Недостаточно средств"}},"summary":"Задать типизированные вопросы Jev","tags":["Чат"]}},"/transactions":{"get":{"description":"Начисления и списания баланса.","parameters":[{"description":"Максимальное количество записей в ответе.","in":"query","name":"limit","schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"object":{"example":"list","type":"string"}},"type":"object"}}},"description":"Записи истории"}},"summary":"История операций","tags":["Аккаунт"]}},"/videos":{"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}],"post":{"description":"Создаёт задачу генерации видео.","operationId":"createVideos","requestBody":{"content":{"application/json":{"example":{"aspect_ratio":"16:9","duration":8,"model":"google/veo-3.1","prompt":"A serene mountain landscape at sunset","resolution":"720p"},"schema":{"$ref":"#/components/schemas/VideoGenerationRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"example":{"generation_id":"gen-xyz789","id":"job-abc123","polling_url":"/api/v1/videos/job-abc123","status":"pending"},"schema":{"$ref":"#/components/schemas/VideoGenerationResponse"}}}},"400":{"content":{"application/json":{"example":{"error":{"code":400,"message":"Invalid request parameters"}},"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"401":{"content":{"application/json":{"example":{"error":{"code":401,"message":"Missing Authentication header"}},"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"402":{"content":{"application/json":{"example":{"error":{"code":402,"message":"Insufficient credits. Add more using https://openrouter.ai/credits"}},"schema":{"$ref":"#/components/schemas/PaymentRequiredResponse"}}}},"403":{"content":{"application/json":{"example":{"error":{"code":403,"message":"Only management keys can perform this operation"}},"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"content":{"application/json":{"example":{"error":{"code":404,"message":"Resource not found"}},"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"413":{"content":{"application/json":{"example":{"error":{"code":413,"message":"Request payload too large"}},"schema":{"$ref":"#/components/schemas/PayloadTooLargeResponse"}}}},"429":{"content":{"application/json":{"example":{"error":{"code":429,"message":"Rate limit exceeded"}},"schema":{"$ref":"#/components/schemas/TooManyRequestsResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Запустить генерацию видео","tags":["Видео"],"x-speakeasy-name-override":"generate"}},"/videos/models":{"get":{"description":"Возвращает модели, поддерживающие генерацию видео.","operationId":"listVideosModels","responses":{"200":{"content":{"application/json":{"example":{"data":[{"allowed_passthrough_parameters":[],"canonical_slug":"google/veo-3.1","created":1700000000,"generate_audio":true,"id":"google/veo-3.1","name":"Veo 3.1","pricing_skus":{"generate":"0.50"},"seed":null,"supported_aspect_ratios":["16:9"],"supported_durations":[5,8],"supported_frame_images":["first_frame","last_frame"],"supported_resolutions":["720p"],"supported_sizes":null}]},"schema":{"$ref":"#/components/schemas/VideoModelsListResponse"}}}},"400":{"content":{"application/json":{"example":{"error":{"code":400,"message":"Invalid request parameters"}},"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Получить модели генерации видео","tags":["Видео"]},"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}]},"/videos/{jobId}":{"get":{"description":"Возвращает состояние задачи генерации видео.","operationId":"getVideos","parameters":[{"description":"Идентификатор задачи генерации.","in":"path","name":"jobId","required":true,"schema":{"example":"job-abc123","minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"generation_id":"gen-xyz789","id":"job-abc123","polling_url":"/api/v1/videos/job-abc123","status":"completed","unsigned_urls":["https://storage.example.com/video.mp4"],"usage":{"cost":0.5}},"schema":{"$ref":"#/components/schemas/VideoGenerationResponse"}}}},"401":{"content":{"application/json":{"example":{"error":{"code":401,"message":"Missing Authentication header"}},"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"content":{"application/json":{"example":{"error":{"code":403,"message":"Only management keys can perform this operation"}},"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"content":{"application/json":{"example":{"error":{"code":404,"message":"Resource not found"}},"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Получить статус генерации видео","tags":["Видео"],"x-speakeasy-name-override":"getGeneration"},"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}]},"/videos/{jobId}/content":{"get":{"description":"Возвращает содержимое готового видео.","operationId":"listVideosContent","parameters":[{"description":"Идентификатор задачи генерации.","in":"path","name":"jobId","required":true,"schema":{"example":"job-abc123","minLength":1,"type":"string"}},{"description":"Номер результата в задаче генерации.","in":"query","name":"index","required":false,"schema":{"default":0,"example":0,"minimum":0,"type":["integer","null"]}}],"responses":{"200":{"content":{"video/mp4":{"example":"\u003cbinary video data\u003e","schema":{"format":"binary","type":"string"}}}},"400":{"content":{"application/json":{"example":{"error":{"code":400,"message":"Invalid request parameters"}},"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"401":{"content":{"application/json":{"example":{"error":{"code":401,"message":"Missing Authentication header"}},"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"content":{"application/json":{"example":{"error":{"code":403,"message":"Only management keys can perform this operation"}},"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"content":{"application/json":{"example":{"error":{"code":404,"message":"Resource not found"}},"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"content":{"application/json":{"example":{"error":{"code":500,"message":"Internal Server Error"}},"schema":{"$ref":"#/components/schemas/InternalServerResponse"}}}},"502":{"content":{"application/json":{"example":{"error":{"code":502,"message":"Provider returned error"}},"schema":{"$ref":"#/components/schemas/BadGatewayResponse"}}}}},"security":[{"bearerAuth":[]}],"summary":"Скачать сгенерированное видео","tags":["Видео"],"x-speakeasy-name-override":"getVideoContent"},"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}]}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Публичный API LLMora","url":"https://api.llmora.ru/v1"}],"tags":[{"description":"Каталог и сведения о моделях","name":"Модели"},{"description":"Генерация ответов в формате Chat Completions","name":"Чат"},{"description":"OpenAI-совместимый Responses API","name":"Ответы"},{"description":"Создание сообщений в формате Anthropic Messages API","name":"Сообщения Anthropic"},{"description":"Генерация изображений","name":"Изображения"},{"description":"Генерация видео и получение результата","name":"Видео"},{"description":"Синтез и распознавание речи","name":"Аудио"},{"description":"Создание текстовых эмбеддингов","name":"Эмбеддинги"},{"description":"Реранжирование документов","name":"Реранжирование"},{"description":"Сведения о провайдерах моделей","name":"Провайдеры"},{"description":"Доступные провайдеры и эндпоинты моделей","name":"Эндпоинты моделей"},{"description":"Баланс и история аккаунта","name":"Аккаунт"}],"x-retry-strategy":{"initialDelay":500,"maxAttempts":3,"maxDelay":60000,"type":"exponential"},"x-speakeasy-globals":{"parameters":[{"$ref":"#/components/parameters/AppIdentifier"},{"$ref":"#/components/parameters/AppDisplayName"},{"$ref":"#/components/parameters/AppCategories"}]},"x-speakeasy-retries":{"backoff":{"exponent":1.5,"initialInterval":500,"maxElapsedTime":3600000,"maxInterval":60000},"retryConnectionErrors":true,"statusCodes":["5XX"],"strategy":"backoff"}}
