# POST /v1/prompts/{}/generate is deprecated

Portkey API deprecated POST /v1/prompts/{id}/generate without giving a shutdown date yet.

Portkey deprecated POST /v1/prompts/{id}/generate on December 1, 2023, without a shutdown date. Calls made to this endpoint will eventually fail. The change hits any integration sending requests to the POST /v1/prompts/{id}/generate path.

## What to use instead

Call POST /v1/prompts/{promptId}/completions instead.

- API: Portkey API (api.portkey.ai)
- Kind: Endpoint removal
- Announced: December 1, 2023
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /v1/prompts/{id}/generate`
- Source: [Announcement](https://portkey.ai/docs/support/portkeys-december-migration)
- Verified: November 6, 2026, against Portkey API's own pages
- Page: https://www.okapi.bot/providers/portkey-api/breaking-changes/post-v1-prompts-generate-is-deprecated/

## Portkey API's words

> Deprecation Date API (Old) /v1/proxy /v1/complete /v1/chatComplete /v1/embed /v1/prompts/ID/generate

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
