chatgpt-api
Installation
SKILL.md
Chatgpt Api
Overview
Use this skill to operate against the authenticated ChatGPT web app backend, not the public OpenAI API. Prefer this skill when a task specifically depends on chatgpt.com web behavior, existing ChatGPT browser auth, hidden upload controls, or the exact backend-api/f/conversation payload shape.
The safest execution mode is browser-first: run requests from an already logged-in ChatGPT tab with agent-browser or equivalent browser automation. Direct HTTP replay is possible only when you already have the browser-derived auth/session material and you accept that the web app's auth layer may change.
Quick Start
- Reuse an authenticated ChatGPT browser session.
- For uploads, use the hidden file input
#upload-photosfor images or#upload-filesfor general files. - Build the
f/conversationpayload withscripts/build_conversation_payload.pywhen you need a raw JSON body. - Send the request to
https://chatgpt.com/backend-api/f/conversation. - Poll
conversation/{chat_id}/stream_statusfor normal text/reference-image generation flows. - Poll
conversation/{chat_id}/async-statusfor some longer-running image edit flows. - Fetch rendered files with
/backend-api/files/download/{file_id}or signed/backend-api/estuary/content?....