API Documentation Generator
Generates proper API docs from a raw function signature.
ChatGPTCode & Tech
37 words · free to use
Write clean API documentation for this function: [PASTE FUNCTION SIGNATURE AND CODE]. Include: a one-line description, parameters with types and whether required/optional, the return value and type, one realistic usage example, and any errors it can throw.
How to use this prompt
- Copy the prompt with the button above.
- Replace the parts in brackets with your own details: [PASTE FUNCTION SIGNATURE AND CODE].
- Paste it into ChatGPT and send it. It also works in other AI chat tools.
- Not quite right? Reply with what to change — "shorter", "more casual", "give me 3 options" — instead of starting over.