Dear Patrick,
Thank you for reaching out to the Microsoft Q&A.
To send a prompt and get a response in Python, you don't call a "Copilot API" directly. Instead, you use the Azure OpenAI Service API, which is the powerful backend that powers many of Microsoft's Copilot experiences. This gives you direct access to the same powerful models (like GPT-4).
Although guiding you on how to do this using Python is not my scope, you can also refer to this article for more information: Azure OpenAI Responses API - Azure OpenAI | Microsoft Learn.
I hope this could help. If you have any further issues, we are happy to assist.
To assist others who might have similar questions and to help us improve our support system, we kindly encourage you to "Accept the answer" if it successfully addressed your concern. Accepting an answer lets other users know that this solution worked for you, and it also helps us track the effectiveness of our support efforts.
Best regards,
Bryan Vu | Microsoft Q&A Support Specialist