Invoke a prompt deployment with the public API using your API key, deployment name, and variant
Use the public invoke endpoint when you want to call a prompt from your own app or service. First create a prompt deployment and variant in the dashboard, then invoke the deployment with your workspace API key.
{
"request_id": "req_019d528660dd7e22b15e5b13a1931c50",
"model": "gpt-5-nano-2025-08-07",
"duration": 4.641960144042969,
"reasoning": "**Clarifying summary request**\n\nI need to follow up on the user's request for a 50-word summary since their message was incomplete. I should ask them to clarify the text or topic they'd like summarized. I can suggest options like pasting a passage or specifying a source. I’ll also mention I can summarize up to 50 words or suggest a different length if they prefer. Let’s get that response ready!",
"response": "I’m missing the text or topic to summarize. Please paste the passage (or name the work) you want summarized, and I’ll provide exactly 50 words. If you prefer a different length, tell me the target word count. I can summarize articles, chapters, speeches, or any provided content.",
"usage": {
"prompt_tokens": {
"total_tokens": 24,
"cached_tokens": 0
},
"completion_tokens": {
"total_tokens": 187,
"reasoning_tokens": 64
},
"total_tokens": 211
},
"stop_reason": "completed"
}