{"openapi":"3.1.0","info":{"title":"ChatGPT Android Proxy","description":"OpenAI-compatible API backed by the ChatGPT Android anonymous flow","version":"2.4.0"},"paths":{"/v1/models":{"get":{"summary":"List Models","operationId":"list_models_v1_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/files":{"get":{"summary":"List Files","operationId":"list_files_v1_files_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Upload File","description":"Upload a text file (PDF, code, docs) and return a file_id.\nIsolated per user — each API key sees only its own files.\n\nAuth: Authorization: Bearer <your-api-key>\nCompatible with the OpenAI Files API.","operationId":"upload_file_v1_files_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_v1_files_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/files/{file_id}":{"get":{"summary":"Get File","operationId":"get_file_v1_files__file_id__get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete File","operationId":"delete_file_v1_files__file_id__delete","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chat/completions":{"post":{"summary":"Chat Completions","operationId":"chat_completions_v1_chat_completions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tool-calls":{"post":{"summary":"Tool Calls Endpoint","operationId":"tool_calls_endpoint_v1_tool_calls_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolCallsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/images/generations":{"post":{"summary":"Image Generations","operationId":"image_generations_v1_images_generations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/session/me":{"get":{"summary":"Session Me","description":"Anonymous user info for the current session.\nProxies to /backend-anon/me on the ChatGPT API.\nUseful for debugging — returns the anonymous user id (ua-xxx).","operationId":"session_me_v1_session_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/account":{"get":{"summary":"Account","description":"The authenticated account's plan, subscription and enabled features.\n\nProxies /backend-api/accounts/check and returns a clean summary. Requires an\naccount (CHATGPT_ACCESS_TOKEN); anonymous sessions have no account to report.","operationId":"account_v1_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/limits":{"get":{"summary":"Limits","description":"Current rate-limit / usage state, per feature.\n\naccounts/check has no limits; they live in `limits_progress` on the\nconversation flow. This calls /conversation/init (cheap, sends no message)\nand returns the per-feature remaining counts + reset times, the model caps\n(populated when you approach one), and any blocked features. Works for both\nthe authenticated account and the anonymous session.","operationId":"limits_v1_limits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/gizmos":{"get":{"summary":"Gizmos","description":"List the account's custom GPTs (gizmos). Use an id as the chat `model`\n(`\"model\": \"g-...\"`) to talk to that GPT.","operationId":"gizmos_v1_gizmos_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/gizmos/{gizmo_id}":{"get":{"summary":"Gizmo Detail","description":"Detail of one custom GPT (instructions, starters, config).","operationId":"gizmo_detail_v1_gizmos__gizmo_id__get","parameters":[{"name":"gizmo_id","in":"path","required":true,"schema":{"type":"string","title":"Gizmo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/custom-instructions":{"get":{"summary":"Get Custom Instructions","description":"The account's custom instructions (about_user, about_model, traits, ...).","operationId":"get_custom_instructions_v1_custom_instructions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Set Custom Instructions","description":"Update custom instructions. Partial: only the fields you send change; the\nrest are preserved (merged onto the current values before saving).","operationId":"set_custom_instructions_v1_custom_instructions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomInstructions"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/translate":{"post":{"summary":"Translate","description":"Translate text via ChatGPT's language-learning translate endpoint.\n\nLightweight: does NOT spend a chat message (unlike /v1/audio/speech). Give\n`text` and a `target` language code; `source` is optional (auto-detected).\nReturns { text: <translation>, target, source }.","operationId":"translate_v1_translate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/transcriptions":{"post":{"summary":"Transcriptions","description":"Speech-to-text (OpenAI-compatible). Multipart `file` = the audio.\n\nForwards to ChatGPT's /backend-api/transcribe (Whisper). The file's\ncontent-type must match its bytes (mp3 verified working; m4a/wav/webm too if\nlabeled correctly). Returns {\"text\": ...} (or plain text if\nresponse_format=text). Authenticated only.","operationId":"transcriptions_v1_audio_transcriptions_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_transcriptions_v1_audio_transcriptions_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/library":{"get":{"summary":"Library","description":"List your file library (uploaded + generated files). Authenticated.\n\nProxies /backend-api/files/library/nodes. `limit`/`cursor` paginate.\nEach item's `id` is the usable file_id (for /v1/library/{id}/download).","operationId":"library_v1_library_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/library/usage":{"get":{"summary":"Library Usage","description":"Library storage usage: used/allowed bytes + breakdown by file type.","operationId":"library_usage_v1_library_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/library/{file_id}/download":{"get":{"summary":"Library Download","description":"Download a library file. Takes the `file_id` (not the library id).\n\nThe backend hands back a presigned estuary URL that still requires the\naccount's Bearer token, so by default the proxy fetches the bytes itself and\nstreams the file back (usable without any auth on the client). Pass `?url=1`\nto instead get the raw (auth-gated) download_url.","operationId":"library_download_v1_library__file_id__download_get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"url","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/library/trash":{"delete":{"summary":"Library Empty Trash","description":"Empty the library trash -- PERMANENTLY deletes trashed files and frees the\nspace. Irreversible. (Soft-delete first with DELETE /v1/library/{library_id}.)","operationId":"library_empty_trash_v1_library_trash_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/library/{library_id}":{"delete":{"summary":"Library Delete","description":"Move a library file to trash (recoverable). Takes the `library_id`\n(libfile_...). Frees space only after emptying the trash.","operationId":"library_delete_v1_library__library_id__delete","parameters":[{"name":"library_id","in":"path","required":true,"schema":{"type":"string","title":"Library Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/library/{library_id}/restore":{"post":{"summary":"Library Restore","description":"Restore a trashed library file. Takes the `library_id` (libfile_...).","operationId":"library_restore_v1_library__library_id__restore_post","parameters":[{"name":"library_id","in":"path","required":true,"schema":{"type":"string","title":"Library Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/suggestions":{"get":{"summary":"Suggestions","description":"Suggested prompts (starters) from ChatGPT's prompt library.\n\nProxies /backend-api/prompt_library/system_hints and flattens it into a flat\nlist of {category, id, title, prompt, description}. Authenticated.","operationId":"suggestions_v1_suggestions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/projects":{"post":{"summary":"Create Project","description":"Create a ChatGPT Project (a \"g-p-...\" gizmo that groups chats with shared\ninstructions). Authenticated. There is no clean list endpoint upstream, so\nkeep the returned `id` -- get it with GET /v1/projects/{id}, delete with\nDELETE /v1/projects/{id}.","operationId":"create_project_v1_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}":{"get":{"summary":"Get Project","description":"Detail of a project (a gizmo under the hood -- same as GET /v1/gizmos/{id}).","operationId":"get_project_v1_projects__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Project","description":"Delete a project. Guarded to project ids (g-p-...) so it can't remove a real\nGPT by mistake; projects delete via the gizmo endpoint.","operationId":"delete_project_v1_projects__project_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/conversations":{"get":{"summary":"Conversations","description":"List the account's conversation history, most recent first.\n\nProxies /backend-api/conversations. Query params: `offset` (default 0),\n`limit` (default 28), `order` (default 'updated').\n\nAnonymously the vendor has nothing to proxy: /backend-anon/conversations\nanswers total=0 even for the device that owns two live conversations\n(measured 2026-08-21). So that case is served from this proxy's own index --\nsee conv_store.py -- which lists the conversations THIS proxy created and\ncan still open, and nothing else.\n\nrequire_capability stays on the authenticated path only, for the same reason\nthe detail route below carries none: the `conversations` boolean describes\nthe ACCOUNT's server-side history, and a local index of what this proxy\ncreated is a different thing. The capability set is a byte-for-byte contract\nwith the gateway, so it keeps meaning exactly what it meant.","operationId":"conversations_v1_conversations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/conversations/{conversation_id}":{"get":{"summary":"Conversation Detail","description":"A single conversation as an ordered message list.\n\nFlattens the raw ChatGPT `mapping` tree into\n`messages: [{id, role, content, create_time}]`, following creation order and\ndropping empty/system nodes.\n\nWorks anonymously, unlike the LISTING above. Measured 2026-08-20: an\nanonymous conversation is readable at /backend-anon/conversation/{id} from\nthe device that created it -- 200, with the title the backend generated and\nthe full mapping. From any other device it is 404\n`conversation_inaccessible` (\"Log in to view this conversation.\"), and\n/backend-anon/conversations answers 200 with an empty page no matter what.\n\nSo anonymously this can only return a conversation THIS proxy created: the\ndevice id is the only credential there is, and a fresh one cannot read\nanything.\n\nIt used to say a conversation whose session had been evicted was gone for\ngood. That was wrong, and remeasuring on 2026-08-21 is what showed it: a\nfresh client with no cookies at all reads the conversation back as long as\nit carries the original device id, and still does after the creating session\nis closed. Nothing expires upstream at the 30 minute mark -- the proxy was\nsimply throwing away the key along with the session. conv_store.py keeps it,\nso eviction no longer ends the conversation.\n\nNo require_capability(\"conversations\") here: that capability is about the\naccount's server-side history, which is what the listing serves. Reading\nback a conversation this proxy itself created is a different thing, and the\ncapability set is a contract with the gateway -- adding a twelfth key to\nexpress the distinction would break it.","operationId":"conversation_detail_v1_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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/from-message":{"get":{"summary":"Audio From Message","description":"Text-to-speech of an EXISTING conversation message (ChatGPT `synthesize`).\n\nThe backend only reads back a stored message, so this needs a\n`conversation_id` + `message_id` (get them from /v1/conversations/{id}) --\nit is NOT free-text TTS (`synthesize` rejects arbitrary text). Returns the\nraw audio bytes with the upstream content-type. `voice` defaults to juniper;\n`format` to mp3 (also aac). Authenticated only -- synthesize has no anonymous\nendpoint, and the conversation must belong to the account.","operationId":"audio_from_message_v1_audio_from_message_get","parameters":[{"name":"conversation_id","in":"query","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"message_id","in":"query","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"voice","in":"query","required":false,"schema":{"type":"string","default":"juniper","title":"Voice"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"mp3","title":"Format"}},{"name":"raw","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Raw"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/voices":{"get":{"summary":"List Voices","description":"The voices this proxy accepts. There was no way to ask before.\n\nThat gap is why the bug existed at all: with nothing to consult, a caller\nreasonably sends OpenAI's default `alloy`, which this backend does not\nhave. `native` are ChatGPT's own; `openai_aliases` maps OpenAI's names onto\nthem -- see OPENAI_VOICE_MAP for how little those pairings claim.","operationId":"list_voices_v1_audio_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/audio/speech":{"post":{"summary":"Audio Speech","description":"OpenAI-compatible TTS: raw audio bytes, with the correct Content-Type.\n\nIt used to return JSON carrying an mp3 URL. Every OpenAI client writes the\nresponse body straight to a file, so that shape needed special-casing this\none provider -- which is the thing the gateway in front of it exists to\navoid. The extra facts this flow produces (`exact_match` in particular: it\nmakes the model echo the input, and the model sometimes edits it) are real\nand are kept, as response headers, where a client that does not care never\nsees them and one that does can still read them. The JSON form lives on at\n/chatgpt/audio/speech.","operationId":"audio_speech_v1_audio_speech_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeechRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chatgpt/audio/speech":{"post":{"summary":"Chatgpt Audio Speech","description":"The pre-contract JSON shape, under this provider's own prefix.\n\nAnything a provider offers beyond the standard surface lives here; the\nstandard path stays the one every OpenAI client already knows.","operationId":"chatgpt_audio_speech_chatgpt_audio_speech_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeechRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_transcriptions_v1_audio_transcriptions_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"model":{"type":"string","title":"Model","default":"whisper-1"},"language":{"type":"string","title":"Language"},"response_format":{"type":"string","title":"Response Format","default":"json"}},"type":"object","required":["file"],"title":"Body_transcriptions_v1_audio_transcriptions_post"},"Body_upload_file_v1_files_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"purpose":{"type":"string","title":"Purpose","default":"assistants"}},"type":"object","required":["file"],"title":"Body_upload_file_v1_files_post"},"ChatCompletionRequest":{"properties":{"model":{"type":"string","title":"Model","default":"auto"},"messages":{"items":{"$ref":"#/components/schemas/Message"},"type":"array","title":"Messages"},"stream":{"type":"boolean","title":"Stream","default":false},"response_format":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Response Format"},"tools":{"anyOf":[{"items":{"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"anyOf":[{"type":"string"},{"type":"object"},{"type":"null"}],"title":"Tool Choice"},"tool_emulation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tool Emulation"},"tool_verify":{"type":"boolean","title":"Tool Verify","default":false},"web_search":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Web Search"},"force_use_tools":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Force Use Tools"},"force_use_canvas":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Force Use Canvas"},"thinking_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thinking Effort"},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Effort"},"service_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Tier"},"force_disable_features":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Force Disable Features"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"presence_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Presence Penalty"},"frequency_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Frequency Penalty"},"stop":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"}},"type":"object","required":["messages"],"title":"ChatCompletionRequest"},"ContentPart":{"properties":{"type":{"type":"string","title":"Type"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"file":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"File"},"image_url":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Image Url"}},"type":"object","required":["type"],"title":"ContentPart","description":"A content fragment inside a multipart message."},"CustomInstructions":{"properties":{"about_user_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"About User Message"},"about_model_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"About Model Message"},"traits_model_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Traits Model Message"},"name_user_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name User Message"},"role_user_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role User Message"},"other_user_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Other User Message"},"personality_type_selection":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personality Type Selection"},"disabled_tools":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Disabled Tools"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"traits_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Traits Enabled"},"personality_traits":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Personality Traits"}},"type":"object","title":"CustomInstructions","description":"Writable custom-instruction fields; all optional for partial updates."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImageGenerationRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"model":{"type":"string","title":"Model","default":"dall-e-3"},"n":{"type":"integer","title":"N","default":1},"size":{"type":"string","title":"Size","default":"1024x1024"},"response_format":{"type":"string","title":"Response Format","default":"url"}},"type":"object","required":["prompt"],"title":"ImageGenerationRequest"},"Message":{"properties":{"role":{"type":"string","title":"Role"},"content":{"anyOf":[{"type":"string"},{"items":{"$ref":"#/components/schemas/ContentPart"},"type":"array"},{"type":"null"}],"title":"Content","default":""},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"tool_calls":{"anyOf":[{"items":{"type":"object"},"type":"array"},{"type":"null"}],"title":"Tool Calls"},"tool_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id"}},"type":"object","required":["role"],"title":"Message"},"ProjectRequest":{"properties":{"name":{"type":"string","title":"Name"},"instructions":{"type":"string","title":"Instructions","default":""}},"type":"object","required":["name"],"title":"ProjectRequest"},"SpeechRequest":{"properties":{"input":{"type":"string","title":"Input"},"voice":{"type":"string","title":"Voice","default":"juniper"},"format":{"type":"string","title":"Format","default":"mp3"},"model":{"type":"string","title":"Model","default":"auto"}},"type":"object","required":["input"],"title":"SpeechRequest"},"ToolCallsRequest":{"properties":{"tools":{"items":{"type":"object"},"type":"array","title":"Tools"},"input":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/Message"},"type":"array"},{"type":"null"}],"title":"Messages"},"tool_choice":{"anyOf":[{"type":"string"},{"type":"object"},{"type":"null"}],"title":"Tool Choice","default":"auto"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"verify":{"type":"boolean","title":"Verify","default":false}},"type":"object","required":["tools"],"title":"ToolCallsRequest","description":"Resolve one request into function calls. Stateless: no conversation, no\nhistory, no session reuse — which is exactly why it is reliable."},"TranslateRequest":{"properties":{"text":{"type":"string","title":"Text"},"target":{"type":"string","title":"Target"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["text","target"],"title":"TranslateRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}