A man allegedly used ChatGPT to generate a fake vehicle purchase invoice and handed it to police to support a fraudulent insurance claim, a court has heard.