ChatGPT API guide

chatgpt.com

Use ChatGPT to ask questions about attached files, revisit conversations, generate images, and read completed Deep Research reports.

Actions and inputs

chatgpt ask-file

Attach local files and wait for the reply to your prompt.

Inputs Prompt, local file paths

chatgpt detail

Open and read an existing conversation.

Inputs Conversation ID or URL

chatgpt image

Generate an image or edit local images from a prompt.

Inputs Prompt, optional image paths and output directory

chatgpt deep-research-result

Read a completed Deep Research report from a conversation.

Inputs Conversation ID or URL, optional wait

Personal ChatGPT conversation

Create

Start a conversation by sending your first prompt.

Inputs Opening prompt

Read

Open your conversation and read its messages.

Inputs Conversation ID

Update

Continue your conversation with a follow-up message.

Inputs Active conversation, follow-up prompt

Delete

Delete your conversation through the ChatGPT website.

Inputs Conversation selected in history