{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/json":{"get":{"summary":" Json List","operationId":"_json_list_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response  Json List Json Get"}}}}}}},"/json/list":{"get":{"summary":" Json List2","operationId":"_json_list2_json_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response  Json List2 Json List Get"}}}}}}},"/json/new":{"put":{"summary":" Json New","operationId":"_json_new_json_new_put","parameters":[{"name":"url","in":"query","required":false,"schema":{"type":"string","default":"about:blank","title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response  Json New Json New Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":" Json New Get","operationId":"_json_new_get_json_new_get","parameters":[{"name":"url","in":"query","required":false,"schema":{"type":"string","default":"about:blank","title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response  Json New Get Json New Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/json/close/{target_id}":{"get":{"summary":" Json Close","operationId":"_json_close_json_close__target_id__get","parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"string","title":"Target Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response  Json Close Json Close  Target Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/browser":{"get":{"summary":" Browser List","operationId":"_browser_list_browser_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/browser/new":{"post":{"summary":" Browser New","operationId":"_browser_new_browser_new_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body__browser_new_browser_new_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/browser/{target_id}/close":{"post":{"summary":" Browser Close","operationId":"_browser_close_browser__target_id__close_post","parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"string","title":"Target Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/browser/{target_id}/debug":{"post":{"summary":" Browser Debug","description":"Clickable handle: inject (or re-show) the debug panel on a target.","operationId":"_browser_debug_browser__target_id__debug_post","parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"string","title":"Target Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/browser/debug.js":{"get":{"summary":" Browser Debug Js","operationId":"_browser_debug_js_browser_debug_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/browser/{target_id}/html":{"get":{"summary":" Browser Html","operationId":"_browser_html_browser__target_id__html_get","parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"string","title":"Target Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/browser/{target_id}/action":{"post":{"summary":" Browser Action","operationId":"_browser_action_browser__target_id__action_post","parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"string","title":"Target Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response  Browser Action Browser  Target Id  Action Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/browser/{target_id}/save_provider":{"post":{"summary":" Browser Save Provider","description":"Save a studio-recorded provider as a ``.pa.py`` file in the workspace.","operationId":"_browser_save_provider_browser__target_id__save_provider_post","parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"string","title":"Target Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response  Browser Save Provider Browser  Target Id  Save Provider Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1":{"get":{"summary":"Read Root V1","operationId":"read_root_v1_v1_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/models":{"get":{"summary":"Models","operationId":"models_v1_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ModelResponseModel"},"type":"array","title":"Response 200 Models V1 Models Get"}}}}}}},"/api/{provider}/models":{"get":{"summary":"Models","operationId":"models_api__provider__models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModelResponseModel"},"title":"Response 200 Models Api  Provider  Models Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/{provider}/quota":{"get":{"summary":"Provider Quota","operationId":"provider_quota_api__provider__quota_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/{provider}/health":{"get":{"summary":"Provider Health","operationId":"provider_health_api__provider__health_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/models/{model_name}":{"post":{"summary":"Model Info","operationId":"model_info_v1_models__model_name__post","parameters":[{"name":"model_name","in":"path","required":true,"schema":{"type":"string","title":"Model Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelResponseModel"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Model Info","operationId":"model_info_v1_models__model_name__get","parameters":[{"name":"model_name","in":"path","required":true,"schema":{"type":"string","title":"Model Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelResponseModel"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/{provider}/{model}/chat/completions":{"post":{"summary":"Chat Completions","operationId":"chat_completions_api__provider___model__chat_completions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"}},{"name":"conversation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"}},{"name":"x_user","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X User"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionsConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletion"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"}}}},"/{mode}/{provider}/chat/completions":{"post":{"summary":"Chat Completions","operationId":"chat_completions__mode___provider__chat_completions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"mode","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"}},{"name":"provider","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"conversation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"}},{"name":"x_user","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X User"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionsConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletion"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"}}}},"/v1/chat/completions":{"post":{"summary":"Chat Completions","operationId":"chat_completions_v1_chat_completions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"conversation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"}},{"name":"x_user","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X User"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionsConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletion"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"}}}},"/api/{provider}/responses":{"post":{"summary":"Create Response","operationId":"create_response_api__provider__responses_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"x_user","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X User"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_create_response_api__provider__responses_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletion"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"}}}},"/v1/responses":{"post":{"summary":"Create Response","operationId":"create_response_v1_responses_post","parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"x_user","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X User"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_create_response_v1_responses_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletion"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"}}}},"/api/{provider}/messages":{"post":{"summary":"Create Message","operationId":"create_message_api__provider__messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"x-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagesConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletion"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"}}}},"/v1/messages":{"post":{"summary":"Create Message","operationId":"create_message_v1_messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"type":"string","title":"Provider"}},{"name":"x-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagesConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletion"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"}}}},"/api/{provider}/images/generations":{"post":{"summary":"Generate Image","operationId":"generate_image_api__provider__images_generations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagesResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/images/generations":{"post":{"summary":"Generate Image","operationId":"generate_image_v1_images_generations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagesResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/images/generate":{"post":{"summary":"Generate Image","operationId":"generate_image_v1_images_generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagesResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/media/generate":{"post":{"summary":"Generate Image","operationId":"generate_image_v1_media_generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagesResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/screenshot":{"get":{"summary":"Image From Url","operationId":"image_from_url_screenshot_get","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagesResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/screenshot/{name}":{"get":{"summary":"Image From Url","operationId":"image_from_url_screenshot__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagesResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/providers":{"get":{"summary":"Providers","operationId":"providers_v1_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProviderResponseModel"},"type":"array","title":"Response 200 Providers V1 Providers Get"}}}}}}},"/v1/providers/{provider}":{"get":{"summary":"Providers Info","operationId":"providers_info_v1_providers__provider__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderResponseDetailModel"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pa/providers":{"get":{"summary":"Pa Providers List","description":"List all PA providers loaded from the workspace.\n\nFilenames are never exposed; each provider is identified by a\nstable opaque ID (SHA-256 of the path, first 8 hex chars).","operationId":"pa_providers_list_pa_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pa/providers/{provider_id}":{"get":{"summary":"Pa Providers Detail","description":"Get details for a single PA provider by its opaque ID.","operationId":"pa_providers_detail_pa_providers__provider_id__get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pa/files/{file_path}":{"get":{"summary":"Pa Serve Workspace File","description":"Securely serve a workspace file for browser rendering.\n\nOnly files within ``~/.g4f/workspace`` can be served.  Path\ntraversal (``..``) is blocked.  Only the MIME types listed in\n``_WORKSPACE_SAFE_TYPES`` are served; all other extensions are\nrefused with **403 Forbidden** so that sensitive file types (e.g.\n``.env``, ``.pa.py``, ``.py``) can never be read via this route.\n\nHTML files are served with a ``Content-Security-Policy: sandbox``\ndirective (without ``allow-same-origin``), which forces the page\ninto a unique *null* browser origin.  As a result the page cannot\naccess ``localStorage``, ``sessionStorage``, ``IndexedDB``, or\ncookies belonging to the g4f server origin — the browser rejects\nall such calls with a ``SecurityError``.  The actual request\norigin (``scheme://host``) is used in every source directive (e.g.\n``default-src``) instead of ``'self'``, so that co-located CSS,\nJS, images, and fonts still load correctly despite the document\nhaving a null origin.\n\nNon-HTML sub-resources (CSS, JS, images, fonts) are served without\nthe ``sandbox`` directive; they are leaf resources and do not run\nin their own browsing context.","operationId":"pa_serve_workspace_file_pa_files__file_path__get","parameters":[{"name":"file_path","in":"path","required":true,"schema":{"type":"string","title":"File Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/secret/conversations":{"get":{"summary":"List Secret Conversations Endpoint","description":"List all secret conversations for the authenticated user.","operationId":"list_secret_conversations_endpoint_v1_secret_conversations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}},"post":{"summary":"Save Secret Conversation Endpoint","description":"Save a conversation to the user's secret workspace.","operationId":"save_secret_conversation_endpoint_v1_secret_conversations_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v1/secret/conversations/sync":{"post":{"summary":"Sync Secret Conversations Endpoint","description":"Sync (upload) multiple conversations to the user's secret workspace.","operationId":"sync_secret_conversations_endpoint_v1_secret_conversations_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v1/secret/conversations/{conversation_id}":{"get":{"summary":"Get Secret Conversation Endpoint","description":"Retrieve a single secret conversation by ID.","operationId":"get_secret_conversation_endpoint_v1_secret_conversations__conversation_id__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Secret Conversation Endpoint","description":"Delete a secret conversation by ID.","operationId":"delete_secret_conversation_endpoint_v1_secret_conversations__conversation_id__delete","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/secret/request":{"post":{"summary":"Create Secret Request Endpoint","description":"Create a pending secret-sharing request from a new device.","operationId":"create_secret_request_endpoint_v1_secret_request_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v1/secret/requests":{"get":{"summary":"List Secret Requests Endpoint","description":"List pending secret-sharing requests for the online device.","operationId":"list_secret_requests_endpoint_v1_secret_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v1/secret/request/confirm":{"post":{"summary":"Confirm Secret Request Endpoint","description":"Confirm a secret request by sending the workspace secret.","operationId":"confirm_secret_request_endpoint_v1_secret_request_confirm_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}}}}}},"/v1/secret/request/{request_id}":{"get":{"summary":"Poll Secret Request Endpoint","description":"Poll a secret request to check if it has been confirmed.","operationId":"poll_secret_request_endpoint_v1_secret_request__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Secret Request Endpoint","description":"Cancel / delete a secret-sharing request.","operationId":"delete_secret_request_endpoint_v1_secret_request__request_id__delete","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/markitdown":{"post":{"summary":"Convert","operationId":"convert_api_markitdown_post","parameters":[{"name":"path_provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path Provider"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_convert_api_markitdown_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionResponseModel"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/{path_provider}/audio/transcriptions":{"post":{"summary":"Convert","operationId":"convert_api__path_provider__audio_transcriptions_post","parameters":[{"name":"path_provider","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path Provider"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_convert_api__path_provider__audio_transcriptions_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionResponseModel"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/transcriptions":{"post":{"summary":"Convert","operationId":"convert_v1_audio_transcriptions_post","parameters":[{"name":"path_provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path Provider"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_convert_v1_audio_transcriptions_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionResponseModel"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/text/{url}":{"get":{"summary":"Convert Url","description":"Convert a URL to Markdown using MarkItDown.\n\nThe full URL (including scheme) is passed in the path, e.g.:\nGET /markitdown/https://example.com/page\n\nQuery strings are preserved by reading them from the incoming\nrequest and re-appending them to the target URL, e.g.:\nGET /markitdown/https://example.com/page?foo=bar","operationId":"convert_url_text__url__get","parameters":[{"name":"url","in":"path","required":true,"schema":{"type":"string","title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}},"text/plain":{}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/markitdown/{url}":{"get":{"summary":"Convert Url","description":"Convert a URL to Markdown using MarkItDown.\n\nThe full URL (including scheme) is passed in the path, e.g.:\nGET /markitdown/https://example.com/page\n\nQuery strings are preserved by reading them from the incoming\nrequest and re-appending them to the target URL, e.g.:\nGET /markitdown/https://example.com/page?foo=bar","operationId":"convert_url_markitdown__url__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"url","in":"path","required":true,"schema":{"type":"string","title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionResponseModel"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/{provider}/audio/speech":{"post":{"summary":"Generate Speech","operationId":"generate_speech_api__provider__audio_speech_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioSpeechConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}},"audio/*":{}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/speech":{"post":{"summary":"Generate Speech","operationId":"generate_speech_v1_audio_speech_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioSpeechConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}},"audio/*":{}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseModel"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/upload_cookies":{"post":{"summary":"Upload Cookies","operationId":"upload_cookies_v1_upload_cookies_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_cookies_v1_upload_cookies_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FileResponseModel"},"type":"array","title":"Response 200 Upload Cookies V1 Upload Cookies Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/media/{filename}":{"get":{"summary":"Get Media","operationId":"get_media_media__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"title":"Filename"}},{"name":"thumbnail","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Thumbnail"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}},"image/*":{},"audio/*":{}},"video/*":{}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/images/{filename}":{"get":{"summary":"Get Media","operationId":"get_media_images__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"title":"Filename"}},{"name":"thumbnail","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Thumbnail"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}},"image/*":{}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thumbnail/{filename}":{"get":{"summary":"Get Media Thumbnail","operationId":"get_media_thumbnail_thumbnail__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}},"image/*":{},"audio/*":{}},"video/*":{}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/logs":{"get":{"summary":"Logs Inspector","operationId":"logs_inspector_logs_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/logs":{"get":{"summary":"Get Logs","operationId":"get_logs_api_logs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":500,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Clear Logs","operationId":"clear_logs_api_logs_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AudioResponseModel":{"properties":{"data":{"type":"string","title":"Data"},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript"}},"type":"object","required":["data"],"title":"AudioResponseModel"},"AudioSpeechConfig":{"properties":{"input":{"type":"string","title":"Input"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice"},"instrcutions":{"type":"string","title":"Instrcutions","default":"Speech this text in a natural way."},"response_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Format"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"download_media":{"type":"boolean","title":"Download Media","default":true}},"type":"object","required":["input"],"title":"AudioSpeechConfig"},"Body__browser_new_browser_new_post":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"Body__browser_new_browser_new_post"},"Body_convert_api__path_provider__audio_transcriptions_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","default":"Transcribe this audio"}},"type":"object","required":["file"],"title":"Body_convert_api__path_provider__audio_transcriptions_post"},"Body_convert_api_markitdown_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","default":"Transcribe this audio"}},"type":"object","required":["file"],"title":"Body_convert_api_markitdown_post"},"Body_convert_v1_audio_transcriptions_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","default":"Transcribe this audio"}},"type":"object","required":["file"],"title":"Body_convert_v1_audio_transcriptions_post"},"Body_create_response_api__provider__responses_post":{"properties":{"config":{"$ref":"#/components/schemas/ResponsesConfig"},"credentials":{"anyOf":[{"$ref":"#/components/schemas/HTTPAuthorizationCredentials"},{"type":"null"}]}},"type":"object","required":["config"],"title":"Body_create_response_api__provider__responses_post"},"Body_create_response_v1_responses_post":{"properties":{"config":{"$ref":"#/components/schemas/ResponsesConfig"},"credentials":{"anyOf":[{"$ref":"#/components/schemas/HTTPAuthorizationCredentials"},{"type":"null"}]}},"type":"object","required":["config"],"title":"Body_create_response_v1_responses_post"},"Body_upload_cookies_v1_upload_cookies_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"}},"type":"object","required":["files"],"title":"Body_upload_cookies_v1_upload_cookies_post"},"ChatCompletion":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","title":"Object"},"created":{"type":"integer","title":"Created"},"model":{"type":"string","title":"Model"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"choices":{"items":{"$ref":"#/components/schemas/ChatCompletionChoice"},"type":"array","title":"Choices"},"usage":{"$ref":"#/components/schemas/UsageModel"},"conversation":{"additionalProperties":true,"type":"object","title":"Conversation"}},"type":"object","required":["id","object","created","model","provider","choices","usage","conversation"],"title":"ChatCompletion"},"ChatCompletionChoice":{"properties":{"index":{"type":"integer","title":"Index"},"message":{"$ref":"#/components/schemas/ChatCompletionMessage"},"finish_reason":{"type":"string","title":"Finish Reason"}},"type":"object","required":["index","message","finish_reason"],"title":"ChatCompletionChoice"},"ChatCompletionMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"},"tool_calls":{"items":{"$ref":"#/components/schemas/ToolCallModel"},"type":"array","title":"Tool Calls"},"audio":{"$ref":"#/components/schemas/AudioResponseModel"}},"type":"object","required":["role","content"],"title":"ChatCompletionMessage"},"ChatCompletionsConfig":{"properties":{"model":{"type":"string","title":"Model","default":""},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"media":{"anyOf":[{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array"},{"type":"null"}],"title":"Media"},"modalities":{"anyOf":[{"items":{"type":"string","enum":["text","audio"]},"type":"array"},{"type":"null"}],"title":"Modalities"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"presence_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Presence Penalty"},"frequency_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Frequency Penalty"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"stop":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Stop"},"api_key":{"anyOf":[{"type":"string"},{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Api Key"},"web_search":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}],"title":"Web Search"},"conversation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Conversation"},"timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout"},"stream_timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stream Timeout"},"tool_calls":{"items":{},"type":"array","title":"Tool Calls","default":[],"examples":[[{"function":{"arguments":{"add_text":true,"backend":"auto","max_results":5,"max_words":2500,"query":"search query","timeout":5},"name":"search_tool"},"type":"function"}]]},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","low","medium","high","x-high"]},{"type":"null"}],"title":"Reasoning Effort"},"logit_bias":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Logit Bias"},"audio":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio"},"response_format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Format"},"download_media":{"type":"boolean","title":"Download Media","default":false},"raw":{"type":"boolean","title":"Raw","default":false},"extra_body":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra Body"},"prompt_cache_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Key"},"tool_emulation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tool Emulation"},"agent_timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Timeout"},"messages":{"items":{"$ref":"#/components/schemas/Message"},"type":"array","title":"Messages","examples":[[{"content":"","role":"system"},{"content":"","role":"user"}]]},"stream":{"type":"boolean","title":"Stream","default":false},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"image_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Name"},"images":{"anyOf":[{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array"},{"type":"null"}],"title":"Images"},"tools":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tools"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls"},"tool_choice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Choice"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"}},"type":"object","required":["messages"],"title":"ChatCompletionsConfig"},"CompletionTokenDetails":{"properties":{"reasoning_tokens":{"type":"integer","title":"Reasoning Tokens"},"image_tokens":{"type":"integer","title":"Image Tokens"},"audio_tokens":{"type":"integer","title":"Audio Tokens"},"accepted_prediction_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Accepted Prediction Tokens"},"rejected_prediction_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rejected Prediction Tokens"}},"type":"object","required":["reasoning_tokens","image_tokens","audio_tokens"],"title":"CompletionTokenDetails"},"ContentPart":{"properties":{"type":{"type":"string","title":"Type"},"text":{"type":"string","title":"Text"},"image_url":{"additionalProperties":{"type":"string"},"type":"object","title":"Image Url"},"input_audio":{"additionalProperties":{"type":"string"},"type":"object","title":"Input Audio"},"bucket_id":{"type":"string","title":"Bucket Id"},"name":{"type":"string","title":"Name"}},"type":"object","title":"ContentPart"},"ErrorResponseMessageModel":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"ErrorResponseMessageModel"},"ErrorResponseModel":{"properties":{"error":{"$ref":"#/components/schemas/ErrorResponseMessageModel"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},"type":"object","required":["error"],"title":"ErrorResponseModel"},"FileResponseModel":{"properties":{"filename":{"type":"string","title":"Filename"}},"type":"object","required":["filename"],"title":"FileResponseModel"},"HTTPAuthorizationCredentials":{"properties":{"scheme":{"type":"string","title":"Scheme"},"credentials":{"type":"string","title":"Credentials"}},"type":"object","required":["scheme","credentials"],"title":"HTTPAuthorizationCredentials","description":"The HTTP authorization credentials in the result of using `HTTPBearer` or\n`HTTPDigest` in a dependency.\n\nThe HTTP authorization header value is split by the first space.\n\nThe first part is the `scheme`, the second part is the `credentials`.\n\nFor example, in an HTTP Bearer token scheme, the client will send a header\nlike:\n\n```\nAuthorization: Bearer deadbeef12346\n```\n\nIn this case:\n\n* `scheme` will have the value `\"Bearer\"`\n* `credentials` will have the value `\"deadbeef12346\"`"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Image":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"b64_json":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"B64 Json"},"revised_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised Prompt"}},"type":"object","required":["url","b64_json","revised_prompt"],"title":"Image"},"ImageGenerationConfig":{"properties":{"prompt":{"type":"string","title":"Prompt"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"response_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Format"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"num_inference_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Inference Steps"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"guidance_scale":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Guidance Scale"},"aspect_ratio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aspect Ratio"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"audio":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio"},"download_media":{"type":"boolean","title":"Download Media","default":true}},"type":"object","required":["prompt"],"title":"ImageGenerationConfig"},"ImagesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Image"},"type":"array","title":"Data"},"model":{"type":"string","title":"Model"},"provider":{"type":"string","title":"Provider"},"created":{"type":"integer","title":"Created"}},"type":"object","required":["data","model","provider","created"],"title":"ImagesResponse"},"Message":{"properties":{"role":{"type":"string","title":"Role"},"content":{"anyOf":[{"type":"string"},{"items":{"$ref":"#/components/schemas/ContentPart"},"type":"array"},{"type":"null"}],"title":"Content"},"tool_calls":{"anyOf":[{"items":{"$ref":"#/components/schemas/ToolCall"},"type":"array"},{"type":"null"}],"title":"Tool Calls"},"tool_call_id":{"type":"string","title":"Tool Call Id"}},"type":"object","title":"Message"},"MessagesConfig":{"properties":{"model":{"type":"string","title":"Model","default":""},"messages":{"items":{"$ref":"#/components/schemas/Message"},"type":"array","title":"Messages","examples":[[{"content":"Hello","role":"user"}]]},"system":{"anyOf":[{"type":"string"},{"items":{},"type":"array"},{"type":"null"}],"title":"System"},"max_tokens":{"type":"integer","title":"Max Tokens","default":4096},"stream":{"type":"boolean","title":"Stream","default":false},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"top_k":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top K"},"stop_sequences":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop Sequences"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"tools":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"api_key":{"anyOf":[{"type":"string"},{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Api Key"},"conversation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Conversation"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout"},"stream_timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stream Timeout"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"image_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Name"},"images":{"anyOf":[{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array"},{"type":"null"}],"title":"Images"},"media":{"anyOf":[{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array"},{"type":"null"}],"title":"Media"},"web_search":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}],"title":"Web Search"},"response_format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Format"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","low","medium","high","x-high"]},{"type":"null"}],"title":"Reasoning Effort"},"raw":{"type":"boolean","title":"Raw","default":false},"extra_body":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra Body"},"tool_emulation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tool Emulation"}},"type":"object","required":["messages"],"title":"MessagesConfig","description":"Anthropic Messages API request body."},"ModelResponseModel":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","title":"Object","default":"model"},"created":{"type":"integer","title":"Created"},"owned_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owned By"}},"type":"object","required":["id","created","owned_by"],"title":"ModelResponseModel"},"PromptTokenDetails":{"properties":{"cached_tokens":{"type":"integer","title":"Cached Tokens"},"audio_tokens":{"type":"integer","title":"Audio Tokens"}},"type":"object","required":["cached_tokens","audio_tokens"],"title":"PromptTokenDetails"},"ProviderResponseDetailModel":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","title":"Object","default":"provider"},"created":{"type":"integer","title":"Created"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"models":{"items":{"type":"string"},"type":"array","title":"Models"},"image_models":{"items":{"type":"string"},"type":"array","title":"Image Models"},"vision_models":{"items":{"type":"string"},"type":"array","title":"Vision Models"},"params":{"items":{"type":"string"},"type":"array","title":"Params"}},"type":"object","required":["id","created","url","label","models","image_models","vision_models","params"],"title":"ProviderResponseDetailModel"},"ProviderResponseModel":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","title":"Object","default":"provider"},"created":{"type":"integer","title":"Created"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["id","created","url","label"],"title":"ProviderResponseModel"},"ResponsesConfig":{"properties":{"model":{"type":"string","title":"Model","default":""},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"media":{"anyOf":[{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array"},{"type":"null"}],"title":"Media"},"modalities":{"anyOf":[{"items":{"type":"string","enum":["text","audio"]},"type":"array"},{"type":"null"}],"title":"Modalities"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"presence_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Presence Penalty"},"frequency_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Frequency Penalty"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"stop":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Stop"},"api_key":{"anyOf":[{"type":"string"},{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Api Key"},"web_search":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}],"title":"Web Search"},"conversation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Conversation"},"timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout"},"stream_timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stream Timeout"},"tool_calls":{"items":{},"type":"array","title":"Tool Calls","default":[],"examples":[[{"function":{"arguments":{"add_text":true,"backend":"auto","max_results":5,"max_words":2500,"query":"search query","timeout":5},"name":"search_tool"},"type":"function"}]]},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","low","medium","high","x-high"]},{"type":"null"}],"title":"Reasoning Effort"},"logit_bias":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Logit Bias"},"audio":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio"},"response_format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Format"},"download_media":{"type":"boolean","title":"Download Media","default":false},"raw":{"type":"boolean","title":"Raw","default":false},"extra_body":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra Body"},"prompt_cache_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Key"},"tool_emulation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tool Emulation"},"agent_timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Timeout"},"input":{"anyOf":[{"items":{"$ref":"#/components/schemas/Message"},"type":"array"},{"type":"string"}],"title":"Input"},"stream":{"type":"boolean","title":"Stream","default":false},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"previous_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Response Id"}},"type":"object","required":["input"],"title":"ResponsesConfig"},"ToolCall":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"function":{"$ref":"#/components/schemas/ToolCallFunction"}},"type":"object","title":"ToolCall"},"ToolCallFunction":{"properties":{"name":{"type":"string","title":"Name"},"arguments":{"type":"string","title":"Arguments"}},"type":"object","title":"ToolCallFunction"},"ToolCallModel":{"properties":{"index":{"type":"integer","title":"Index","default":0},"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"function":{"$ref":"#/components/schemas/ToolFunctionModel"},"extra_content":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra Content"}},"type":"object","required":["id","type","function"],"title":"ToolCallModel"},"ToolFunctionModel":{"properties":{"name":{"type":"string","title":"Name"},"arguments":{"type":"string","title":"Arguments"}},"type":"object","required":["name","arguments"],"title":"ToolFunctionModel"},"TranscriptionResponseModel":{"properties":{"text":{"type":"string","title":"Text"},"model":{"type":"string","title":"Model"},"provider":{"type":"string","title":"Provider"}},"type":"object","required":["text","model","provider"],"title":"TranscriptionResponseModel"},"UsageModel":{"properties":{"prompt_tokens":{"type":"integer","title":"Prompt Tokens"},"completion_tokens":{"type":"integer","title":"Completion Tokens"},"total_tokens":{"type":"integer","title":"Total Tokens"},"prompt_tokens_details":{"$ref":"#/components/schemas/PromptTokenDetails"},"completion_tokens_details":{"$ref":"#/components/schemas/CompletionTokenDetails"},"cache":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache"},"estimated_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Cost"}},"type":"object","required":["prompt_tokens","completion_tokens","total_tokens","prompt_tokens_details","completion_tokens_details"],"title":"UsageModel"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}